Skip to content
Merged
2 changes: 1 addition & 1 deletion CATALOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ Django UI extensions (XUI). Each folder has a README.
| Ssm Inventory | [XUI-l43ailkn](extensions/XUI-l43ailkn/README.md) | Adds Inventory and Patching server tabs for EC2 instances managed by AWS Systems Manager. |
| StormForge Optimize Live | [XUI-wyauaxbl](extensions/XUI-wyauaxbl/README.md) | Adds Clusters, Namespaces and Workloads tabs, marked with the StormForge icon, to Kubernetes clusters running the StormForge agent, with StormForge's optimization score, recommendation impact, namespace and workload tables, a live node snapshot, cluster configuration, and each workload's summary, recommendation, patches and optimization settings, the level (cluster, namespace or workload) every setting is set at, drilling down from cluster to namespace to workload, and adds an Optimization tab to each EKS, AKS and GKE namespace on those clusters that shows only that namespace's workloads and applies their recommendations. |
| Technology Reference | [XUI-vwrd15py](extensions/XUI-vwrd15py/README.md) | Adds a read-only Technology Reference tab to Resource Handler and Environment pages listing the technology's custom fields, actions, and field dependencies, discovered live from the instance and exportable as one .xlsx. |
| Vulnerabilities | [XUI-wqrj0e3p](extensions/XUI-wqrj0e3p/README.md) | Finds known CVEs on Linux servers (from a software list) and Windows Server 2022 and 2025 servers (from the Windows build and installed updates) by matching them against vulnerability data on the appliance, with a tab on servers and on resources, a search across all servers, and a nightly re-match. |
| Vulnerabilities | [XUI-wqrj0e3p](extensions/XUI-wqrj0e3p/README.md) | Finds known CVEs on Linux servers (from a software list) and Windows Server 2022 and 2025 servers (from the Windows build and installed updates) by matching them against vulnerability data on the appliance, with a tab on servers and on resources, a search across all servers, a nightly re-match, and an optional action that installs updates, restarts if needed and rescans. |

## Parameters

Expand Down
2 changes: 1 addition & 1 deletion catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@
"id": "XUI-wqrj0e3p",
"type": "extensions",
"name": "Vulnerabilities",
"description": "Finds known CVEs on Linux servers (from a software list) and Windows Server 2022 and 2025 servers (from the Windows build and installed updates) by matching them against vulnerability data on the appliance, with a tab on servers and on resources, a search across all servers, and a nightly re-match.",
"description": "Finds known CVEs on Linux servers (from a software list) and Windows Server 2022 and 2025 servers (from the Windows build and installed updates) by matching them against vulnerability data on the appliance, with a tab on servers and on resources, a search across all servers, a nightly re-match, and an optional action that installs updates, restarts if needed and rescans.",
"path": "extensions/XUI-wqrj0e3p",
"readme": "extensions/XUI-wqrj0e3p/README.md",
"uses": [],
Expand Down
2 changes: 1 addition & 1 deletion extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ Django UI extensions (XUI). Each folder has a README.
| Ssm Inventory | [XUI-l43ailkn](XUI-l43ailkn/README.md) | Adds Inventory and Patching server tabs for EC2 instances managed by AWS Systems Manager. |
| StormForge Optimize Live | [XUI-wyauaxbl](XUI-wyauaxbl/README.md) | Adds Clusters, Namespaces and Workloads tabs, marked with the StormForge icon, to Kubernetes clusters running the StormForge agent, with StormForge's optimization score, recommendation impact, namespace and workload tables, a live node snapshot, cluster configuration, and each workload's summary, recommendation, patches and optimization settings, the level (cluster, namespace or workload) every setting is set at, drilling down from cluster to namespace to workload, and adds an Optimization tab to each EKS, AKS and GKE namespace on those clusters that shows only that namespace's workloads and applies their recommendations. |
| Technology Reference | [XUI-vwrd15py](XUI-vwrd15py/README.md) | Adds a read-only Technology Reference tab to Resource Handler and Environment pages listing the technology's custom fields, actions, and field dependencies, discovered live from the instance and exportable as one .xlsx. |
| Vulnerabilities | [XUI-wqrj0e3p](XUI-wqrj0e3p/README.md) | Finds known CVEs on Linux servers (from a software list) and Windows Server 2022 and 2025 servers (from the Windows build and installed updates) by matching them against vulnerability data on the appliance, with a tab on servers and on resources, a search across all servers, and a nightly re-match. |
| Vulnerabilities | [XUI-wqrj0e3p](XUI-wqrj0e3p/README.md) | Finds known CVEs on Linux servers (from a software list) and Windows Server 2022 and 2025 servers (from the Windows build and installed updates) by matching them against vulnerability data on the appliance, with a tab on servers and on resources, a search across all servers, a nightly re-match, and an optional action that installs updates, restarts if needed and rescans. |
27 changes: 25 additions & 2 deletions extensions/XUI-wqrj0e3p/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Adds a **Vulnerabilities** tab to Linux and Windows servers, and to any server labelled `Vulnerabilities`. On Linux the tab collects a list of the software installed on the server, matches it against a database of known vulnerabilities, and shows the findings: how many are critical, high, medium and low, how many are on the CISA known-exploited list, and for each package the installed version, the version that fixes it and the advisory. Users can switch between a Packages view (what to update) and a CVEs view (one row per CVE), search, filter by severity and show only exploited findings or only those with a fix. The Known vulnerabilities card also says how many vulnerabilities have a fix; a vulnerability has one when any package it affects has a fixed version, and a Windows finding always has one.

Nothing is changed on the server. The tab does not contact the server when it opens; it shows the last result. Windows servers are covered in [Windows servers](#windows-servers).
Scanning changes nothing on the server (installing updates is a separate action, see [Install updates](#install-updates)). The tab does not contact the server when it opens; it shows the last result. Windows servers are covered in [Windows servers](#windows-servers).

## How it works

Expand Down Expand Up @@ -43,6 +43,8 @@ Setup downloads about 300 MB, needs about 9 GB free while the database unpacks,

Admin > Custom Extensions > Vulnerability Search (CB Admins) searches every scanned server at once. The **Vulnerabilities** view lists each known vulnerability with its severity, whether it is on the CISA exploited list, how many servers it affects and whether a fix exists; search by CVE or advisory id, filter by severity, exploited only or with a fix, and choose a row to see the servers it affects (group, environment, OS, package, installed and fixed versions, last match). The **Servers** view lists each scanned server with its critical, high and exploited counts. The open view and vulnerability are in the page address, so a link opens the same place. Both views are paged on the server. A search for a CVE id that finds nothing means no server with a stored software list is affected: the server is not affected, has not been scanned yet, or the vulnerability is not in the database yet. The server tab has an **All servers** link to this page for CB Admins. New vulnerabilities appear here and on the server tabs without rescanning servers only when the nightly re-match job has run, so run it by hand or turn its schedule on (see Scheduled jobs).

The **Servers** view lists only servers that are current in CloudBolt: archived and deleted servers are removed from the stored findings when the page loads. It filters by group, OS build, owner and environment, sorts on every column, and searches hostname, group, environment, OS, OS build and owner. When **Offer Install updates** is on, tick servers and choose **Install updates** to start one job for all of them; it updates several servers at a time (**Servers updated at the same time** on the settings page, 1 to 20, default 5; the rest wait their turn in the same job; updates and restarts run several servers at a time; the scan after each update runs one at a time unless Vulnerability matches at once is raised.), and a run stops starting servers when the job's time limit is near (those are reported as not started). With Requires approval on the action, each server becomes its own job and this limit does not apply. The run goes through the Install Updates server action, so Requires approval and each server's permission apply. A server that is powered off, in an Unassigned group, not Linux or Windows, running a scan or an update, or waiting in an update job cannot be ticked. The most servers one selection may hold is **Servers per bulk update** on the settings page (1 to 100, default 30). Routes: `vulnerabilities/fleet/server-filters/`, `vulnerabilities/fleet/servers/select/` and `vulnerabilities/fleet/servers/patch/` (POST).

## Resource tab

A resource whose servers include a Linux or Windows server (or, when the tab is limited to labelled servers, a labelled one) gets its own **Vulnerabilities** tab. It rolls up the known vulnerabilities of the resource's own servers: a card with how many of the servers you can see have a software list (for example 4 of 6), the totals, and the same two views as the Vulnerability search page. **Vulnerabilities** lists each one with its severity, whether it is on the CISA exploited list and how many of the resource's servers it affects; choose one to see which servers. **Servers** lists each server with its critical, high and exploited counts, or why it has none ("Not scanned yet", "Powered off", "In an Unassigned group", "Scanning"). Both views are paged on the server.
Expand All @@ -64,6 +66,25 @@ Two recurring jobs are created the first time the Vulnerability Settings page op

Turn on **Scan new servers after they are built** on the settings page. The extension then adds an action to the post-provisioning hook point. After a successful build, each new server that can be scanned is scanned as its own job: the build never waits for it and never fails because of it. Turning the setting off switches the action off; it is never created while the setting is off.

## Install updates

Turn on **Install updates** on the settings page and the extension creates a server action, **Install Updates**, which installs every available update on one Linux or Windows server from the repositories or update source it is already configured with. The button of the same name then shows on the server's Vulnerabilities tab next to the scan button, and the action also appears in the server's Actions menu. Turning the setting off disables the action; its role grants and its Requires approval choice are kept. The action is offered on Linux servers and on Windows Server 2022 and 2025. A server in an Unassigned group is never offered it.

- **Who can run it.** CB Admins, and users whose role has `server.all_actions` on the server. For any other role, an admin adds **Install Updates** to the role's server actions. A new action is granted to no role.
- **Requires approval.** The action is created without it. An admin can switch it on in the action's settings; the run then waits for an approval like any other server action, and the setting is never changed again by the extension.
- **What it runs.** Red Hat Enterprise Linux and Oracle Linux 8 to 10: `dnf -y --refresh upgrade`. Amazon Linux 2023: `dnf -y --refresh upgrade --releasever=latest`. Ubuntu 22.04 and 24.04: `apt-get update`, then a non-interactive `apt-get -y dist-upgrade` that keeps the existing configuration files. Any other distribution is refused with a message and nothing is installed. The server needs its repositories reachable.
- **Restart.** The dialog has a **Restart if needed** option, on by default; a CloudBolt global preference decides whether it shows as a checkbox or as a True/False list. When an update needs a restart and the option is on, the server is restarted and the job waits for it to come back (up to the restart wait in the settings, 5 to 120 minutes, default 60); a server that is not back by then fails the job. With the option off the updates are installed, the panel says a restart is pending, and the scan afterwards still runs. The update itself is limited by the update timeout in the settings (10 to 240 minutes, default 90).
- **Windows.** Windows Server 2022 and 2025 only. The updates come from the server's configured source: WSUS when group policy sets one, otherwise Windows Update, so on WSUS only approved updates install. The work runs as a scheduled task under SYSTEM, so the credentials CloudBolt uses must be able to create one; a non-administrator WinRM credential cannot. A server with the Configuration Manager client is refused with a message and nothing is installed. A cumulative update finishes during the restart, so the server can take a long time to answer again; raise the restart wait if it fails. If more updates are offered afterwards, the job says how many; run the action again to install them.
- **Old kernels.** Only after a restart that was confirmed, old kernels are removed: on the Red Hat family `dnf -y remove --oldinstallonly`, which keeps only the newest kernel and the one running; on Ubuntu, which keeps the previous kernel as a boot fallback that its own cleanup never removes, the action removes the older kernel's packages by name, only when the server is running its newest kernel and nothing else would be removed. The setting **Remove old kernels after a restart** (on by default) turns this off; the scan then keeps listing the old kernel's vulnerabilities for as long as it stays installed.
- **What updating cannot fix.** Findings in software the package manager does not own, such as libraries bundled inside agents and tools (Go binaries, Python packages installed outside the distribution's packages). They stay listed with a fix version after the run.
- **Nothing to install.** A server whose image is already current reports "No updates were available".
- **After the update** the server is scanned again and the panel shows the vulnerabilities before and after, and a link to the job. If the scan fails the updates stay installed and the line shows the missing number as a dash.
- **Cancelling.** Cancelling the job does not stop the update on the server: a package transaction is never stopped halfway, so it runs to its end there. Run the action again to see the result.
- **After the dialog** CloudBolt returns to the server's default tab, not to Vulnerabilities, because the browser drops the tab from the address. Open the tab to follow the run; it refreshes every 5 seconds.
- **Not covered.** Windows versions other than 2022 and 2025, and any Linux distribution other than those above.

**Install updates on all servers of a resource.** The same setting also adds a resource action, **Install Updates on All Servers**, to every resource that has a Linux or Windows server. It installs the updates on the resource's servers one server at a time, in hostname order, and stops at the first server whose update fails; the servers after it are listed as not attempted. A server that needs a restart it was not allowed to do (restart-pending) is not a failure, and the run goes on. A server that cannot be updated now (historical, in an Unassigned group, unsupported, or one the person may not update) is skipped with its reason, and the skipped servers are listed in the job output. To run it a person needs permission to run the resource action on the resource (CB Admins, a role with `resource.all_actions`, or a role that has the action added) and, for every server, the same permission as for the server action; a server that fails the second check is skipped. Requires approval is set separately on the resource action in its settings and is never changed by the extension. A failed server ends the job as a failure and the remaining servers are not attempted. Servers the requester may not act on, or that are not eligible, are skipped and the run continues. A resource runs one install at a time.

## Setup

1. Sync the repository, then restart the web service (`httpd`) so the new routes load, and confirm the extension is enabled under Admin > Extensions.
Expand Down Expand Up @@ -99,6 +120,8 @@ Also tested: a database update after the first one and the nightly job re-matchi

Windows tested on the same appliance: the Microsoft data download, a check of a Windows Server 2025 on AWS through Systems Manager (standard track), the Windows tab, the search page with Linux and Windows servers together, and the nightly job with both data sources.

Not tested: Windows Server 2022, Windows over WinRM, a server on the hotpatch track, Oracle Linux, arm64 servers, a user who is not a CB Admin, either job running on its schedule, and more than a few servers at once.
Install updates tested on the same appliance, each with a restart, old kernels removed and the scan run again: Ubuntu 22.04, Amazon Linux 2023 and Red Hat Enterprise Linux 9 (a pay-as-you-go AWS image, 9.4 to 9.9) over SSH, and Windows Server 2025 over WinRM. Also a second run with nothing to install, a resource-wide run that stopped at its first failed server, a run of four servers started from the Servers view (two restarted, one had nothing to install), an Ubuntu 24.04 server on Azure through Run Command (updates only: that server could not reach CloudBolt, so it could not be scanned), and a server that did not come back from its restart (reported as failed after the restart wait). Several servers at a time, tested with the default of five: a run of six servers from the Servers view (five started together, the sixth when the first finished, four updated 218 packages each and restarted, their scans ran one after the other, 24 minutes in all), a run of two servers cancelled while the packages were installing (the job ended seven seconds later and started no restart, kernel removal or scan), and the same two servers run again to a clean finish. Not tested for Install updates: a resource-wide run that completes across several servers, Requires approval, a role other than CB Admin, WSUS, Configuration Manager, Systems Manager, a VMware server, more than one page of servers in the Servers view, several scans after an update at the same time (Vulnerability matches at once above 1), and a run that reaches the job's time limit.

Not tested: Windows Server 2022, a server on the hotpatch track, Oracle Linux, arm64 servers, a user who is not a CB Admin, either job running on its schedule, and more than a few servers at once.

`extensions/XUI-wqrj0e3p/tests` holds unit tests that run without CloudBolt: `python -B -m unittest discover -s extensions/XUI-wqrj0e3p/tests -p "test_*.py"`.
Loading