ClusterMAX
This repo is for cmax, a CLI tool that we use to audit GPU clusters and standalone machines during research for ClusterMAX.
The initial release is a small subset of our full test suite. It supports our recent article on neocloud security that precedes ClusterMAX 3.0.
This version of the cmax CLI provides the following commands:
| Command |
Function |
cmax audit security |
This command runs a focused, read-only security audit. |
cmax audit |
This command runs a full cluster audit covering more than just security. |
cmax audit review |
This command reviews a saved audit output without running new checks. |
Install ClusterMAX
The security release preparation checklist
describes the added checks and publication gates. PR validation does not publish
a stable package.
Stable publication uses a manually dispatched, approved workflow. It verifies
the PyPI upload before creating the matching GitHub tag and Release from the
same commit and artifacts. Nightly publication does not create GitHub Releases.
ClusterMAX requires Python 3.10 or later. Install the current release:
uv venv
source .venv/bin/activate
uv pip install clustermax
cmax -v
You can also use the --pre option to install the latest nightly release:
uv pip install --pre -U clustermax
Use -h to see available options when using the CLI:
cmax -h
cmax audit -h
cmax audit security -h
The prepared stable release is 0.3.0. Subsequent nightly releases use the
0.3.1.devYYYYMMDDNN format, which sorts after 0.3.0 when --pre is enabled.
The version change in this branch does not publish either channel.
Public documentation
The ClusterMAX website explains the rating system. The evaluation criteria list our full checklist, while the expectations page lists or clearest expectations for Slurm, Kubernetes, standalone machines, monitoring dashboards, and health checks.
Run a security audit
The current minimum-version table lists the software and firmware versions used for grading, with vendor advisories behind each value. Its machine-readable form is the table cmax audit security fetches on startup (skip with --no-fetch-minimums). The minimum-versions-publish workflow deploys that one file to the GitHub Pages site of this repository. Its refreshed stamp moves every day after a successful refresh, and its changed stamp moves only when a minimum value changes. The command line keeps the last fetched table in ~/.cache/clustermax/, so an offline run grades against that copy instead of the older table inside the package. When the fetch fails and the table in use was last refreshed more than 7 days ago, the audit gives a warning.
The read-only Bad Epoll check, security.badEpoll.status, checks the running
kernel against CVE-2026-46242.
It maps Ubuntu 24.04 GA 6.8 generic, Ubuntu 22.04 HWE 6.8 generic, Ubuntu
24.04 NVIDIA 6.17 (nvidia and nvidia-64k), and Ubuntu 26.04 GA 7.0 generic
packages. Each source package uses
its own fixed-version minimum. It requires matching running-kernel signature and installed-package
evidence. A newer installed kernel does not clear a failure until it is running.
Unsupported flavors, missing evidence, and active or unreadable livepatch state
produce an unknown result that requires provider patch evidence. The check does
not run an exploit or attest that a provider's kernel is genuine. An explicitly
pinned minimum table without the mapping produces an unknown result.
The read-only AMD KVM host check, security.kvmSvm.status, grades
CVE-2026-99312, which
affects AMD KVM hosts that enable nested virtualization. On a physical AMD
host with kvm_amd loaded and nested=1, an upstream kernel passes when it
meets the fixed release of its own stable branch. The linuxKvmSvm row of the
minimum table holds those releases, and the daily refresh generates the row
from the CVE record of the Linux kernel CNA. An affected branch with no fixed
release fails. An Intel host, a host with nested=0, and an AMD host with no
KVM module and no /dev/kvm are not applicable. A guest, a distribution
kernel, and an active or unreadable livepatch state produce an unknown result
that requires provider patch evidence. On Slurm and Kubernetes, the check
grades every host that the audit reads. The check does not run an exploit.
References: the
kernel fix commit,
the NVD entry, and the
DigitalOcean vendor advisory.
See docs/kvm-svm-cve-2026-99312.md.
Security collection distinguishes the host, GPU Operator containers, and active
GPU workloads on the sampled worker. Driver detection can read the loaded
kernel module when nvidia-smi is outside the host search path. Toolkit
detection also checks the GPU Operator installation directory. CUDA Toolkit
versions come from nvcc or toolkit metadata, never the driver compatibility
version or an image tag.
The network probe prefers a verified privileged host-root mount when available.
It can enumerate PCI devices through sysfs if lspci is missing. It uses
read-only mlxconfig -e queries and grades only the Current column. Defaults
and next-boot settings do not establish current isolation. It does not install
tools or start mst.
Missing permissions, incomplete scans, and unassessed firmware trains remain
unknown. A completed topology scan alone does not prove exclusive ownership
of the physical NVLink domain.
Held installed kernels participate in the reboot check. Missing installed-kernel
inventory cannot produce a PASS. The NVIDIA 6.17 and Ubuntu 26.04 mappings also
check Fragnesia and Dirty Frag
against the source-package minimum. A newer downloaded table cannot silently remove
the kernel mappings shipped with this client. If it lacks those mappings,
the client reports the mismatch and retains its installed table.
On Ubuntu 22.04 and 24.04, the generic and generic-64k kernels built from
the GA linux source package (5.15 and 6.8) are also graded per CVE against
the Ubuntu tracker for
CVE-2026-64531 and
CVE-2026-64378.
CVE-2026-46227 (SCTP
SCTP_SENDALL container escape) and
CVE-2026-98432 (IPv4
inet_opt use-after-free in ip_options_build()) are graded on Ubuntu 22.04,
24.04, and 26.04 for every kernel source package that the tracker lists on
that release: GA, HWE, cloud (AWS, Azure, GCP, Oracle, IBM, GKE), NVIDIA, lowlatency, FIPS,
realtime, and the others. The minimum table has one row per source package.
The kernel family and the flavor in the running release string select the
row. A needed, pending, deferred, or ignored (for example, end of life)
tracker state fails because Ubuntu has not released a fix for that kernel. A
released state compares the running ABI with the published fixed ABI after
the standard bulletin grace period. A kernel with no row is unknown, because the
audit cannot check it: for example a custom or mainline build, a package newer
than the table, or a release string the audit cannot read. A kernel that
matches more than one row is also unknown. riscv64 kernels have no row of
their own, because their generic flavor name cannot be told apart from the
amd64 and arm64 kernels. The two CVEs above check only the GA kernel, so they
do not make other kernels unknown.
The daily refresh also discovers Ubuntu kernel CVEs before a fix exists. It
reads the Ubuntu CVE tracker repository
(ubuntu-cve-tracker) for
linux CVEs published since 2026-10-01 and within the last 30 days, and
reads the CVSS v3 score from Canonical's OSV record of each CVE. It adds each CVE that Ubuntu rates critical, or
high with a CVSS v3 score of 9.0 or more, and that the tracker lists for the
GA linux package on 22.04, 24.04, or 26.04. A discovered CVE gets the same
per-kernel rows as the CVEs above, under the key linuxCve<year>_<number>, and
each row carries "discovered": true. The audit reads the kernel CVE groups
from the minimum table, so it grades a discovered CVE without a client change.
A discovered CVE stays in the table after it leaves the 30-day window, so a
later fix is still graded. A needs-triage row of a discovered CVE makes that
kernel unknown. The refresh pull request lists each new discovered CVE for
review. A fetched table that lacks a kernel CVE group of the installed table
is rejected, and the client keeps its installed table. The refresh fails if
the table grows above 3 MiB, so it stays below the 4 MiB client fetch limit.
An absent host Docker installation or an absent CUDA Toolkit in the inspected
scope remains not applicable. This differs from an unreadable tool or failed
probe, which remains unknown. A complete bare-metal PCI scan with no VFIO
assignment makes that sampled host's passthrough check not applicable. UFM
control settings require provider evidence. The tenant profile skips this
provider-side check until a control record is supplied. A skip does not certify
the fabric. Shared InfiniBand fabrics still need the provider's security review.
The following results have explicit assessment scopes:
- BMC/IPMI: A PASS means the completed local read commands returned no
usable management data. A generic IPMI error response remains recorded as
error-response, not an access-denied response. Missing tools, timeouts and
incomplete node coverage remain unknown. Network BMC interfaces are not tested.
- NVLink: A complete topology scan plus an operator ownership attestation
can pass. Set
CLUSTERMAX_NVLINK_DOMAIN_EXCLUSIVE_ATTESTED=true only when the
entire observed physical domain belongs to the allocation. GPU counts alone
do not establish ownership. The evidence records the attestation source.
- ConnectX firmware: The parser preserves NVIDIA's explicit GA
"46.3008 or newer" range.
Later trains can pass for the mapped ConnectX-8 and BlueField-3 firmware
families. Older LTS floors remain separate. Unknown products do not inherit
that range merely because their version is higher.
- Virtio-Net: Verified current NIC mode passes the current-exposure check.
Stored firmware remains unassessed when unreadable. Recheck it before enabling
DPU mode. A NIC-mode sample cannot clear missing or mixed fleet evidence.
- DPU host policy: An enabled RShim path can fail the configured restriction
policy without proving DPU login or an exploit. Runtime locks, permissions and
ownership need separate checks. The audit does not start RShim or change modes.
On BlueField-3, the Arm OS does not boot in NIC mode
(NVIDIA mode documentation).
The security profile selects the version and isolation checks from the complete audit. Use -s or --show to list the applicable checks before the audit runs:
$ cmax audit security --show
[versions] Minimum versions
securityVersions.nvidiaDriver.status: Security Versions / NVIDIA Driver
...
[isolation] Security isolation
security.januscape.status: Security / Januscape
security.kvmSvm.status: Security / KVM SVM
...
Use --dry-run -o yaml to show the resolved plan. This will be useful for future releases of the clustermax CLI. The following example selects a standalone virtual machine: