clustermax 0.3.1.dev2026112595__tar.gz → 0.3.1.dev2026112696__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/PKG-INFO +11 -8
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/README.md +10 -7
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/clustermax.egg-info/PKG-INFO +11 -8
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/clustermax.egg-info/SOURCES.txt +1 -3
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/audit_cli.py +34 -18
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/audit_report.py +13 -1
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/cli.py +12 -11
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/host_role.py +12 -13
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/minimum_refresh.py +317 -122
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/minimum_sync.py +2 -2
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/cluster-audit-k8s.sh +8 -1
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/cluster-audit-slurm.sh +5 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/cluster-audit-standalone.sh +3 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/kvm_svm.py +7 -3
- clustermax-0.3.1.dev2026112696/cmax/scripts/1-audit/minimum-versions.json +70897 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/minimum_versions.py +2 -2
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/run_legacy_audit.py +13 -9
- clustermax-0.3.1.dev2026112595/cmax/scripts/1-audit/cluster-audit-slurm-security.sh → clustermax-0.3.1.dev2026112696/cmax/scripts/1-audit/security-fleet.sh +102 -461
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/security.py +1 -1
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/target_selection.py +14 -6
- clustermax-0.3.1.dev2026112595/cmax/scripts/1-audit/cluster-audit-k8s-security.sh +0 -8
- clustermax-0.3.1.dev2026112595/cmax/scripts/1-audit/cluster-audit-standalone-security.sh +0 -8
- clustermax-0.3.1.dev2026112595/cmax/scripts/1-audit/minimum-versions.json +0 -24323
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/LICENSE +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/clustermax.egg-info/dependency_links.txt +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/clustermax.egg-info/entry_points.txt +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/clustermax.egg-info/requires.txt +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/clustermax.egg-info/top_level.txt +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/__init__.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/_version.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/audit_profiles.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/audit_review.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/audit_runner.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/banner.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/cmax.yaml +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/criteria_links.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/logo.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/minimum_links.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/obs_check.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/obs_discovery.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/progress.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/report_style.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/runtime_paths.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/audit-common.sh +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/audit_findings.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/bad_epoll.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/_fanout.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/fabric/nccl-ib-qps-check.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/fabric/nccl-topology-file-check.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/fabric/nic-topology-check.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/fabric/vf-interface-exposure.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/fabric/virtio-net-check.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/gpu/vboost.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/platform_config.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/arm-smmu-virtualization-check.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/gpu_runtime_exposure.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/hbm_memory_exposure.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/hugepages.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/ingress_nginx_cve_2025_1974.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/k8s_scheduling.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/kubernetes_nodes_proxy.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/storage_config.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/tenant_pod_defaults.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/checks/system/vm-iommu-check.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/container-check.sh +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/criteria-checks.json +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/gpu_profiles.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/host-check.sh +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/host_fleet.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/k8s-control.sh +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/k8s_runtime_software.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/kubernetes_quantities.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/merge_audit.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/monitoring-k8s.sh +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/plan_audit.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/pwnescape-host-facts.sh +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/pwnescape.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/run.sh +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/run_checks.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/security_fleet.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/security_version_audit.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/ubuntu_kernel_cves.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/scripts/1-audit/validate_audit.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/cmax/yaml_support.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/pyproject.toml +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/setup.cfg +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/setup.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/tests/test_host_isolation.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/tests/test_minimum_pages.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/tests/test_nightly_version.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/tests/test_select_tests.py +0 -0
- {clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/tests/test_stable_release.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clustermax
|
|
3
|
-
Version: 0.3.1.
|
|
3
|
+
Version: 0.3.1.dev2026112696
|
|
4
4
|
Summary: ClusterMAX GPU cluster audit and security CLI
|
|
5
5
|
Author: SemiAnalysis
|
|
6
6
|
Maintainer: SemiAnalysis
|
|
@@ -78,7 +78,7 @@ The [ClusterMAX website](https://clustermax.semianalysis.com/) explains the rati
|
|
|
78
78
|
|
|
79
79
|
## Run a security audit
|
|
80
80
|
|
|
81
|
-
The current [minimum-version table](https://www.clustermax.ai/minimum-versions) lists the software and firmware versions used for grading, with vendor advisories behind each value. Its [machine-readable form](https://semianalysisai.github.io/ClusterMAX/minimum-versions.json) is the table `cmax audit
|
|
81
|
+
The current [minimum-version table](https://www.clustermax.ai/minimum-versions) lists the software and firmware versions used for grading, with vendor advisories behind each value. Its [machine-readable form](https://semianalysisai.github.io/ClusterMAX/minimum-versions.json) is the table that every `cmax audit` run fetches on startup, for the full audit and for each category (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.
|
|
82
82
|
|
|
83
83
|
The read-only Bad Epoll check, `security.badEpoll.status`, checks the running
|
|
84
84
|
kernel against [CVE-2026-46242](https://ubuntu.com/security/CVE-2026-46242).
|
|
@@ -274,9 +274,8 @@ audit_profile:
|
|
|
274
274
|
```
|
|
275
275
|
|
|
276
276
|
The resolved plan enables only `audit.audit`. It uses the standard artifact
|
|
277
|
-
files, progress wrapper, and report formatter.
|
|
278
|
-
|
|
279
|
-
version inventory, and backend fabric checks that its report needs.
|
|
277
|
+
files, progress wrapper, and report formatter. It runs the same collector as
|
|
278
|
+
`cmax audit`. The security profile only filters the report.
|
|
280
279
|
|
|
281
280
|
Every live audit reports its target before it collects data. An interactive
|
|
282
281
|
run requires confirmation. The default answer cancels the audit with exit code
|
|
@@ -324,9 +323,9 @@ Run Slurm audits from a login node and Kubernetes audits from a machine with `ku
|
|
|
324
323
|
|
|
325
324
|
The mismatch menu defaults to cancel. Select `c` and then confirm with `y` to continue on this host. Select `r` to review sanitized detection details and the [public issue form](https://github.com/SemiAnalysisAI/ClusterMAX/issues/new). The CLI does not upload anything. Review the preview before sharing it, and do not attach credentials, cluster names, hostnames, or raw logs.
|
|
326
325
|
|
|
327
|
-
`--
|
|
326
|
+
Three options skip the mismatch menu. Each one prints the warning and runs on this host: a target flag such as `--standalone` or `--slurm`, `--run-here` (which also covers an auto-detected target), and `--yes` (which also accepts every other confirmation). Without a terminal, a mismatched run stops unless one of them is present. `--allow-cluster-node` is the old name of `--run-here` and still works.
|
|
328
327
|
|
|
329
|
-
For Slurm on Kubernetes, including Slinky, the CLI shows the Slurm role separately from the runtime context. When auto-detection finds both interfaces reachable, it asks which interface to use. `--yes` keeps the auto-detected interface, and `--slurm` or `--k8s` selects one. Without a terminal, the run stops unless one of these is present. An explicit interface skips this choice
|
|
328
|
+
For Slurm on Kubernetes, including Slinky, the CLI shows the Slurm role separately from the runtime context. When auto-detection finds both interfaces reachable, it asks which interface to use. `--yes` keeps the auto-detected interface, and `--slurm` or `--k8s` selects one. Without a terminal, the run stops unless one of these is present. An explicit interface skips this choice and also answers the host role check.
|
|
330
329
|
|
|
331
330
|
The regression tests use synthetic signals to cover cancellation, reporting, overrides, mixed interfaces, and failed access checks. They do not establish live cluster qualification.
|
|
332
331
|
|
|
@@ -434,7 +433,11 @@ in-band BMC. Verify that tenants cannot schedule privileged pods or mount host
|
|
|
434
433
|
IPMI devices. On Slurm and standalone hosts the probe runs as the tenant user,
|
|
435
434
|
so an exposed BMC stays CRITICAL.
|
|
436
435
|
|
|
437
|
-
|
|
436
|
+
Each harness has one collector, `cmax/scripts/1-audit/cluster-audit-<harness>.sh`.
|
|
437
|
+
`cmax audit` and `cmax audit security` run the same collector, and the
|
|
438
|
+
`security` scope only filters the report, so both commands give the same
|
|
439
|
+
verdict for each security check. The collector sources
|
|
440
|
+
`cmax/scripts/1-audit/security-fleet.sh`, which grades host-level minimums
|
|
438
441
|
on every GPU host, not only the sampled worker: the GPU driver, NVIDIA
|
|
439
442
|
Container Toolkit, runc, Docker, ConnectX firmware, DCGM, and the kernel
|
|
440
443
|
advisories. Each check reports the worst host, names it, and lists every host's
|
|
@@ -58,7 +58,7 @@ The [ClusterMAX website](https://clustermax.semianalysis.com/) explains the rati
|
|
|
58
58
|
|
|
59
59
|
## Run a security audit
|
|
60
60
|
|
|
61
|
-
The current [minimum-version table](https://www.clustermax.ai/minimum-versions) lists the software and firmware versions used for grading, with vendor advisories behind each value. Its [machine-readable form](https://semianalysisai.github.io/ClusterMAX/minimum-versions.json) is the table `cmax audit
|
|
61
|
+
The current [minimum-version table](https://www.clustermax.ai/minimum-versions) lists the software and firmware versions used for grading, with vendor advisories behind each value. Its [machine-readable form](https://semianalysisai.github.io/ClusterMAX/minimum-versions.json) is the table that every `cmax audit` run fetches on startup, for the full audit and for each category (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.
|
|
62
62
|
|
|
63
63
|
The read-only Bad Epoll check, `security.badEpoll.status`, checks the running
|
|
64
64
|
kernel against [CVE-2026-46242](https://ubuntu.com/security/CVE-2026-46242).
|
|
@@ -254,9 +254,8 @@ audit_profile:
|
|
|
254
254
|
```
|
|
255
255
|
|
|
256
256
|
The resolved plan enables only `audit.audit`. It uses the standard artifact
|
|
257
|
-
files, progress wrapper, and report formatter.
|
|
258
|
-
|
|
259
|
-
version inventory, and backend fabric checks that its report needs.
|
|
257
|
+
files, progress wrapper, and report formatter. It runs the same collector as
|
|
258
|
+
`cmax audit`. The security profile only filters the report.
|
|
260
259
|
|
|
261
260
|
Every live audit reports its target before it collects data. An interactive
|
|
262
261
|
run requires confirmation. The default answer cancels the audit with exit code
|
|
@@ -304,9 +303,9 @@ Run Slurm audits from a login node and Kubernetes audits from a machine with `ku
|
|
|
304
303
|
|
|
305
304
|
The mismatch menu defaults to cancel. Select `c` and then confirm with `y` to continue on this host. Select `r` to review sanitized detection details and the [public issue form](https://github.com/SemiAnalysisAI/ClusterMAX/issues/new). The CLI does not upload anything. Review the preview before sharing it, and do not attach credentials, cluster names, hostnames, or raw logs.
|
|
306
305
|
|
|
307
|
-
`--
|
|
306
|
+
Three options skip the mismatch menu. Each one prints the warning and runs on this host: a target flag such as `--standalone` or `--slurm`, `--run-here` (which also covers an auto-detected target), and `--yes` (which also accepts every other confirmation). Without a terminal, a mismatched run stops unless one of them is present. `--allow-cluster-node` is the old name of `--run-here` and still works.
|
|
308
307
|
|
|
309
|
-
For Slurm on Kubernetes, including Slinky, the CLI shows the Slurm role separately from the runtime context. When auto-detection finds both interfaces reachable, it asks which interface to use. `--yes` keeps the auto-detected interface, and `--slurm` or `--k8s` selects one. Without a terminal, the run stops unless one of these is present. An explicit interface skips this choice
|
|
308
|
+
For Slurm on Kubernetes, including Slinky, the CLI shows the Slurm role separately from the runtime context. When auto-detection finds both interfaces reachable, it asks which interface to use. `--yes` keeps the auto-detected interface, and `--slurm` or `--k8s` selects one. Without a terminal, the run stops unless one of these is present. An explicit interface skips this choice and also answers the host role check.
|
|
310
309
|
|
|
311
310
|
The regression tests use synthetic signals to cover cancellation, reporting, overrides, mixed interfaces, and failed access checks. They do not establish live cluster qualification.
|
|
312
311
|
|
|
@@ -414,7 +413,11 @@ in-band BMC. Verify that tenants cannot schedule privileged pods or mount host
|
|
|
414
413
|
IPMI devices. On Slurm and standalone hosts the probe runs as the tenant user,
|
|
415
414
|
so an exposed BMC stays CRITICAL.
|
|
416
415
|
|
|
417
|
-
|
|
416
|
+
Each harness has one collector, `cmax/scripts/1-audit/cluster-audit-<harness>.sh`.
|
|
417
|
+
`cmax audit` and `cmax audit security` run the same collector, and the
|
|
418
|
+
`security` scope only filters the report, so both commands give the same
|
|
419
|
+
verdict for each security check. The collector sources
|
|
420
|
+
`cmax/scripts/1-audit/security-fleet.sh`, which grades host-level minimums
|
|
418
421
|
on every GPU host, not only the sampled worker: the GPU driver, NVIDIA
|
|
419
422
|
Container Toolkit, runc, Docker, ConnectX firmware, DCGM, and the kernel
|
|
420
423
|
advisories. Each check reports the worst host, names it, and lists every host's
|
{clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/clustermax.egg-info/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: clustermax
|
|
3
|
-
Version: 0.3.1.
|
|
3
|
+
Version: 0.3.1.dev2026112696
|
|
4
4
|
Summary: ClusterMAX GPU cluster audit and security CLI
|
|
5
5
|
Author: SemiAnalysis
|
|
6
6
|
Maintainer: SemiAnalysis
|
|
@@ -78,7 +78,7 @@ The [ClusterMAX website](https://clustermax.semianalysis.com/) explains the rati
|
|
|
78
78
|
|
|
79
79
|
## Run a security audit
|
|
80
80
|
|
|
81
|
-
The current [minimum-version table](https://www.clustermax.ai/minimum-versions) lists the software and firmware versions used for grading, with vendor advisories behind each value. Its [machine-readable form](https://semianalysisai.github.io/ClusterMAX/minimum-versions.json) is the table `cmax audit
|
|
81
|
+
The current [minimum-version table](https://www.clustermax.ai/minimum-versions) lists the software and firmware versions used for grading, with vendor advisories behind each value. Its [machine-readable form](https://semianalysisai.github.io/ClusterMAX/minimum-versions.json) is the table that every `cmax audit` run fetches on startup, for the full audit and for each category (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.
|
|
82
82
|
|
|
83
83
|
The read-only Bad Epoll check, `security.badEpoll.status`, checks the running
|
|
84
84
|
kernel against [CVE-2026-46242](https://ubuntu.com/security/CVE-2026-46242).
|
|
@@ -274,9 +274,8 @@ audit_profile:
|
|
|
274
274
|
```
|
|
275
275
|
|
|
276
276
|
The resolved plan enables only `audit.audit`. It uses the standard artifact
|
|
277
|
-
files, progress wrapper, and report formatter.
|
|
278
|
-
|
|
279
|
-
version inventory, and backend fabric checks that its report needs.
|
|
277
|
+
files, progress wrapper, and report formatter. It runs the same collector as
|
|
278
|
+
`cmax audit`. The security profile only filters the report.
|
|
280
279
|
|
|
281
280
|
Every live audit reports its target before it collects data. An interactive
|
|
282
281
|
run requires confirmation. The default answer cancels the audit with exit code
|
|
@@ -324,9 +323,9 @@ Run Slurm audits from a login node and Kubernetes audits from a machine with `ku
|
|
|
324
323
|
|
|
325
324
|
The mismatch menu defaults to cancel. Select `c` and then confirm with `y` to continue on this host. Select `r` to review sanitized detection details and the [public issue form](https://github.com/SemiAnalysisAI/ClusterMAX/issues/new). The CLI does not upload anything. Review the preview before sharing it, and do not attach credentials, cluster names, hostnames, or raw logs.
|
|
326
325
|
|
|
327
|
-
`--
|
|
326
|
+
Three options skip the mismatch menu. Each one prints the warning and runs on this host: a target flag such as `--standalone` or `--slurm`, `--run-here` (which also covers an auto-detected target), and `--yes` (which also accepts every other confirmation). Without a terminal, a mismatched run stops unless one of them is present. `--allow-cluster-node` is the old name of `--run-here` and still works.
|
|
328
327
|
|
|
329
|
-
For Slurm on Kubernetes, including Slinky, the CLI shows the Slurm role separately from the runtime context. When auto-detection finds both interfaces reachable, it asks which interface to use. `--yes` keeps the auto-detected interface, and `--slurm` or `--k8s` selects one. Without a terminal, the run stops unless one of these is present. An explicit interface skips this choice
|
|
328
|
+
For Slurm on Kubernetes, including Slinky, the CLI shows the Slurm role separately from the runtime context. When auto-detection finds both interfaces reachable, it asks which interface to use. `--yes` keeps the auto-detected interface, and `--slurm` or `--k8s` selects one. Without a terminal, the run stops unless one of these is present. An explicit interface skips this choice and also answers the host role check.
|
|
330
329
|
|
|
331
330
|
The regression tests use synthetic signals to cover cancellation, reporting, overrides, mixed interfaces, and failed access checks. They do not establish live cluster qualification.
|
|
332
331
|
|
|
@@ -434,7 +433,11 @@ in-band BMC. Verify that tenants cannot schedule privileged pods or mount host
|
|
|
434
433
|
IPMI devices. On Slurm and standalone hosts the probe runs as the tenant user,
|
|
435
434
|
so an exposed BMC stays CRITICAL.
|
|
436
435
|
|
|
437
|
-
|
|
436
|
+
Each harness has one collector, `cmax/scripts/1-audit/cluster-audit-<harness>.sh`.
|
|
437
|
+
`cmax audit` and `cmax audit security` run the same collector, and the
|
|
438
|
+
`security` scope only filters the report, so both commands give the same
|
|
439
|
+
verdict for each security check. The collector sources
|
|
440
|
+
`cmax/scripts/1-audit/security-fleet.sh`, which grades host-level minimums
|
|
438
441
|
on every GPU host, not only the sampled worker: the GPU driver, NVIDIA
|
|
439
442
|
Container Toolkit, runc, Docker, ConnectX firmware, DCGM, and the kernel
|
|
440
443
|
advisories. Each check reports the worst host, names it, and lists every host's
|
{clustermax-0.3.1.dev2026112595 → clustermax-0.3.1.dev2026112696}/clustermax.egg-info/SOURCES.txt
RENAMED
|
@@ -35,11 +35,8 @@ cmax/yaml_support.py
|
|
|
35
35
|
cmax/scripts/1-audit/audit-common.sh
|
|
36
36
|
cmax/scripts/1-audit/audit_findings.py
|
|
37
37
|
cmax/scripts/1-audit/bad_epoll.py
|
|
38
|
-
cmax/scripts/1-audit/cluster-audit-k8s-security.sh
|
|
39
38
|
cmax/scripts/1-audit/cluster-audit-k8s.sh
|
|
40
|
-
cmax/scripts/1-audit/cluster-audit-slurm-security.sh
|
|
41
39
|
cmax/scripts/1-audit/cluster-audit-slurm.sh
|
|
42
|
-
cmax/scripts/1-audit/cluster-audit-standalone-security.sh
|
|
43
40
|
cmax/scripts/1-audit/cluster-audit-standalone.sh
|
|
44
41
|
cmax/scripts/1-audit/container-check.sh
|
|
45
42
|
cmax/scripts/1-audit/criteria-checks.json
|
|
@@ -60,6 +57,7 @@ cmax/scripts/1-audit/pwnescape.py
|
|
|
60
57
|
cmax/scripts/1-audit/run.sh
|
|
61
58
|
cmax/scripts/1-audit/run_checks.py
|
|
62
59
|
cmax/scripts/1-audit/run_legacy_audit.py
|
|
60
|
+
cmax/scripts/1-audit/security-fleet.sh
|
|
63
61
|
cmax/scripts/1-audit/security_fleet.py
|
|
64
62
|
cmax/scripts/1-audit/security_version_audit.py
|
|
65
63
|
cmax/scripts/1-audit/ubuntu_kernel_cves.py
|
|
@@ -47,7 +47,7 @@ AUDIT_DEFAULTS = {
|
|
|
47
47
|
"fetch_minimums": True,
|
|
48
48
|
"verbose": 0,
|
|
49
49
|
"assume_yes": False,
|
|
50
|
-
"
|
|
50
|
+
"run_here": False,
|
|
51
51
|
"review_source": None,
|
|
52
52
|
"review_commands": [],
|
|
53
53
|
"review_no_interactive": False,
|
|
@@ -86,12 +86,23 @@ def add_confirmation_options(parser: argparse.ArgumentParser, *, suppress: bool
|
|
|
86
86
|
"host role and interface checks, without a prompt."
|
|
87
87
|
),
|
|
88
88
|
)
|
|
89
|
+
parser.add_argument(
|
|
90
|
+
"--run-here",
|
|
91
|
+
action="store_true",
|
|
92
|
+
dest="run_here",
|
|
93
|
+
default=_default(suppress, False),
|
|
94
|
+
help=(
|
|
95
|
+
"Run on this host even when it looks like a cluster node that the "
|
|
96
|
+
"target does not fit. The host role warning still prints."
|
|
97
|
+
),
|
|
98
|
+
)
|
|
99
|
+
# The old name. Existing scripts keep working; help shows only --run-here.
|
|
89
100
|
parser.add_argument(
|
|
90
101
|
"--allow-cluster-node",
|
|
91
102
|
action="store_true",
|
|
92
|
-
dest="
|
|
103
|
+
dest="run_here",
|
|
93
104
|
default=_default(suppress, False),
|
|
94
|
-
help=
|
|
105
|
+
help=argparse.SUPPRESS,
|
|
95
106
|
)
|
|
96
107
|
|
|
97
108
|
|
|
@@ -105,6 +116,24 @@ def _add_verbose(parser: argparse.ArgumentParser, *, suppress: bool) -> None:
|
|
|
105
116
|
)
|
|
106
117
|
|
|
107
118
|
|
|
119
|
+
def _add_fetch_minimums(parser: argparse.ArgumentParser, *, suppress: bool) -> None:
|
|
120
|
+
parser.add_argument(
|
|
121
|
+
"--no-fetch-minimums",
|
|
122
|
+
action="store_false",
|
|
123
|
+
dest="fetch_minimums",
|
|
124
|
+
default=_default(suppress, True),
|
|
125
|
+
help=(
|
|
126
|
+
"Do not read the published minimum version table from "
|
|
127
|
+
"https://semianalysisai.github.io/ClusterMAX/minimum-versions.json "
|
|
128
|
+
"before the audit runs. By default every audit fetches that "
|
|
129
|
+
"table, stores it in a user cache directory, and grades against it. "
|
|
130
|
+
"A fetch failure prints a warning, and the audit continues against "
|
|
131
|
+
"the last fetched table or the installed table. This flag keeps a "
|
|
132
|
+
"saved result reproducible on a host with no outbound network access."
|
|
133
|
+
),
|
|
134
|
+
)
|
|
135
|
+
|
|
136
|
+
|
|
108
137
|
def _add_run_options(parser: argparse.ArgumentParser, *, show_help: str) -> None:
|
|
109
138
|
parser.add_argument(
|
|
110
139
|
"--show",
|
|
@@ -114,6 +143,7 @@ def _add_run_options(parser: argparse.ArgumentParser, *, show_help: str) -> None
|
|
|
114
143
|
)
|
|
115
144
|
add_target_options(parser, suppress=True, dest="profile_target")
|
|
116
145
|
add_confirmation_options(parser, suppress=True)
|
|
146
|
+
_add_fetch_minimums(parser, suppress=True)
|
|
117
147
|
_add_verbose(parser, suppress=True)
|
|
118
148
|
|
|
119
149
|
|
|
@@ -132,6 +162,7 @@ def add_audit_parser(
|
|
|
132
162
|
)
|
|
133
163
|
add_target_options(audit)
|
|
134
164
|
add_confirmation_options(audit)
|
|
165
|
+
_add_fetch_minimums(audit, suppress=False)
|
|
135
166
|
_add_verbose(audit, suppress=False)
|
|
136
167
|
|
|
137
168
|
commands = audit.add_subparsers(dest="profile", title="commands", metavar="COMMAND")
|
|
@@ -171,21 +202,6 @@ def add_audit_parser(
|
|
|
171
202
|
default=argparse.SUPPRESS,
|
|
172
203
|
help="Return exit code 0 when the report has critical findings.",
|
|
173
204
|
)
|
|
174
|
-
security.add_argument(
|
|
175
|
-
"--no-fetch-minimums",
|
|
176
|
-
action="store_false",
|
|
177
|
-
dest="fetch_minimums",
|
|
178
|
-
default=argparse.SUPPRESS,
|
|
179
|
-
help=(
|
|
180
|
-
"Do not read the published minimum version table from "
|
|
181
|
-
"https://semianalysisai.github.io/ClusterMAX/minimum-versions.json "
|
|
182
|
-
"before the audit runs. By default the security audit fetches that "
|
|
183
|
-
"table, stores it in a user cache directory, and grades against it. "
|
|
184
|
-
"A fetch failure prints a warning, and the audit continues against "
|
|
185
|
-
"the last fetched table or the installed table. This flag keeps a "
|
|
186
|
-
"saved result reproducible on a host with no outbound network access."
|
|
187
|
-
),
|
|
188
|
-
)
|
|
189
205
|
if security_options is not None:
|
|
190
206
|
security_options(security)
|
|
191
207
|
|
|
@@ -1014,6 +1014,16 @@ def _security_extension_specs(harness: str | None = None) -> list[AuditCheckSpec
|
|
|
1014
1014
|
]
|
|
1015
1015
|
|
|
1016
1016
|
|
|
1017
|
+
def _target_is_guest(values: dict[str, Any]) -> bool:
|
|
1018
|
+
"""Return whether the collector found that the audited host is a VM guest.
|
|
1019
|
+
|
|
1020
|
+
A container on a VM has the same tenant boundary as the VM, so the
|
|
1021
|
+
collected evidence decides the skip. The target flag alone does not.
|
|
1022
|
+
"""
|
|
1023
|
+
audit = values.get("audit_data") if isinstance(values.get("audit_data"), dict) else values
|
|
1024
|
+
return _nested(audit, "security.virtualization.guest") is True
|
|
1025
|
+
|
|
1026
|
+
|
|
1017
1027
|
def _security_extension_checks(
|
|
1018
1028
|
values: dict[str, Any],
|
|
1019
1029
|
harness: str | None = None,
|
|
@@ -1049,7 +1059,9 @@ def _security_extension_checks(
|
|
|
1049
1059
|
)
|
|
1050
1060
|
)
|
|
1051
1061
|
continue
|
|
1052
|
-
if check.id == "pcie-passthrough" and
|
|
1062
|
+
if check.id == "pcie-passthrough" and (
|
|
1063
|
+
environment == "vm" or _target_is_guest(values)
|
|
1064
|
+
):
|
|
1053
1065
|
checks.append(
|
|
1054
1066
|
AuditCheck(
|
|
1055
1067
|
check.id,
|
|
@@ -23,7 +23,7 @@ class _TopLevelArgumentParser(argparse.ArgumentParser):
|
|
|
23
23
|
|
|
24
24
|
# Host role guard (see cmax.host_role). Every command that runs against a
|
|
25
25
|
# target adds its options with _add_target_confirmation_options, which adds
|
|
26
|
-
# --
|
|
26
|
+
# --run-here and names the work for the guard messages, and selects
|
|
27
27
|
# its target with target_selection.prepare_target, which runs the guard.
|
|
28
28
|
# Commands that start no work on a target are listed here. A test walks the
|
|
29
29
|
# whole parser tree, so a new or ported command that neither adds the options
|
|
@@ -37,7 +37,7 @@ HOST_ROLE_EXEMPT_COMMANDS = frozenset({
|
|
|
37
37
|
def host_role_unguarded_commands(parser: argparse.ArgumentParser) -> list[str]:
|
|
38
38
|
"""Return commands that skip the host role guard by mistake.
|
|
39
39
|
|
|
40
|
-
A command is covered when it has --
|
|
40
|
+
A command is covered when it has --run-here (added by
|
|
41
41
|
_add_target_confirmation_options) or is in HOST_ROLE_EXEMPT_COMMANDS.
|
|
42
42
|
An exemption that names no command is reported too, so the list stays
|
|
43
43
|
current when a command is renamed or removed.
|
|
@@ -53,7 +53,7 @@ def host_role_unguarded_commands(parser: argparse.ArgumentParser) -> list[str]:
|
|
|
53
53
|
if root:
|
|
54
54
|
return
|
|
55
55
|
seen.add(current.prog)
|
|
56
|
-
guarded = "--
|
|
56
|
+
guarded = "--run-here" in current._option_string_actions
|
|
57
57
|
if not guarded and current.prog not in HOST_ROLE_EXEMPT_COMMANDS:
|
|
58
58
|
found.append(current.prog)
|
|
59
59
|
|
|
@@ -68,7 +68,7 @@ def host_role_unguarded_commands(parser: argparse.ArgumentParser) -> list[str]:
|
|
|
68
68
|
def _add_target_confirmation_options(
|
|
69
69
|
parser: argparse.ArgumentParser, *, noun: str = "audit"
|
|
70
70
|
) -> None:
|
|
71
|
-
"""Add --yes and --
|
|
71
|
+
"""Add --yes and --run-here and name the work for the guard."""
|
|
72
72
|
parser.set_defaults(host_role_noun=noun)
|
|
73
73
|
audit_cli.add_confirmation_options(parser)
|
|
74
74
|
|
|
@@ -136,7 +136,7 @@ def _resolve_audit_target(
|
|
|
136
136
|
command=command,
|
|
137
137
|
noun=noun,
|
|
138
138
|
assume_yes=args.assume_yes,
|
|
139
|
-
|
|
139
|
+
run_here=getattr(args, "run_here", False),
|
|
140
140
|
)
|
|
141
141
|
if selected.harness != "k8s":
|
|
142
142
|
restore_kubeconfig()
|
|
@@ -196,11 +196,6 @@ def _run_security(
|
|
|
196
196
|
else:
|
|
197
197
|
print(rendered, end="" if rendered.endswith("\n") else "\n")
|
|
198
198
|
return 0
|
|
199
|
-
# The fetch is on by default. `sync_minimum_table` never raises, so a
|
|
200
|
-
# host with no outbound network access prints one warning and grades
|
|
201
|
-
# against the installed table, exactly as before.
|
|
202
|
-
if args.fetch_minimums:
|
|
203
|
-
security.sync_minimum_table(repo=args.repo)
|
|
204
199
|
return _run_audit(
|
|
205
200
|
args,
|
|
206
201
|
parser,
|
|
@@ -243,7 +238,7 @@ def _run_audit(
|
|
|
243
238
|
except (security.SecurityAuditError, ValueError) as exc:
|
|
244
239
|
parser.error(str(exc))
|
|
245
240
|
|
|
246
|
-
from cmax import audit_runner
|
|
241
|
+
from cmax import audit_runner, security
|
|
247
242
|
|
|
248
243
|
try:
|
|
249
244
|
target = _resolve_audit_target(
|
|
@@ -254,6 +249,12 @@ def _run_audit(
|
|
|
254
249
|
)
|
|
255
250
|
if target is None:
|
|
256
251
|
return AUDIT_CANCEL_EXIT
|
|
252
|
+
# Every audit grades version checks, so every audit reads the same
|
|
253
|
+
# minimum table. The fetch is on by default. `sync_minimum_table`
|
|
254
|
+
# never raises, so a host with no outbound network access prints one
|
|
255
|
+
# warning and grades against the last fetched or installed table.
|
|
256
|
+
if args.fetch_minimums:
|
|
257
|
+
security.sync_minimum_table(repo=args.repo)
|
|
257
258
|
runner_options = dict(
|
|
258
259
|
repo=args.repo,
|
|
259
260
|
verbosity=_audit_verbosity(args.verbose),
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
The target says what a command runs against. The host role says where the
|
|
4
4
|
command runs. A standalone run on a cluster node covers only that node, and a
|
|
5
5
|
Slurm run from a compute node starts work from a job instead of a login node.
|
|
6
|
-
`confirm`
|
|
6
|
+
`confirm` asks about these runs before any work starts, unless the operator
|
|
7
|
+
already accepted them.
|
|
7
8
|
|
|
8
9
|
The guard is not specific to the audit. Every cmax command that runs against
|
|
9
10
|
a target declares a host role policy in the CLI (see `cmax.cli`), and
|
|
10
11
|
`cmax.target_selection.prepare_target` calls `confirm` for it. A new command
|
|
11
|
-
gets the same checks, wording, and `--
|
|
12
|
+
gets the same checks, wording, and `--run-here` option without code
|
|
12
13
|
of its own.
|
|
13
14
|
"""
|
|
14
15
|
|
|
@@ -290,7 +291,7 @@ def guard(
|
|
|
290
291
|
return Guard(
|
|
291
292
|
note=(
|
|
292
293
|
"If this kubelet belongs to a local kind, minikube, or k3d "
|
|
293
|
-
"cluster on this host, pass --
|
|
294
|
+
"cluster on this host, pass --run-here or --yes."
|
|
294
295
|
if local_cluster else ""
|
|
295
296
|
),
|
|
296
297
|
reason=(
|
|
@@ -346,12 +347,13 @@ def confirm(
|
|
|
346
347
|
reader: Callable[[str], str],
|
|
347
348
|
stream: TextIO,
|
|
348
349
|
terminal: bool,
|
|
349
|
-
|
|
350
|
-
assume_yes: bool = False,
|
|
350
|
+
accepted_by: str = "",
|
|
351
351
|
) -> None:
|
|
352
352
|
"""Ask a second time when the target does not fit the role of this host.
|
|
353
353
|
|
|
354
|
-
|
|
354
|
+
accepted_by names the option that already answered this question:
|
|
355
|
+
`--run-here`, the target flag, or `--yes`. The warning still
|
|
356
|
+
prints, so the report scope is clear.
|
|
355
357
|
Raises HostRoleRefused in a non-interactive run and HostRoleCancelled when
|
|
356
358
|
the operator does not confirm.
|
|
357
359
|
"""
|
|
@@ -370,19 +372,16 @@ def confirm(
|
|
|
370
372
|
f" If the detection is wrong, review sanitized details before filing: {ISSUE_URL}",
|
|
371
373
|
file=stream,
|
|
372
374
|
)
|
|
373
|
-
if
|
|
374
|
-
print(" Host role check: accepted with
|
|
375
|
-
return
|
|
376
|
-
if assume_yes:
|
|
377
|
-
print(" Host role check: accepted with --yes", file=stream)
|
|
375
|
+
if accepted_by:
|
|
376
|
+
print(f" Host role check: accepted with {accepted_by}", file=stream)
|
|
378
377
|
return
|
|
379
378
|
if not terminal:
|
|
380
379
|
raise HostRoleRefused(
|
|
381
380
|
f"{found.reason} {found.instead}. "
|
|
382
381
|
+ (f"{found.note} " if found.note else "")
|
|
383
|
-
+ "To run here anyway, pass --
|
|
382
|
+
+ "To run here anyway, pass the target flag, --run-here, or --yes."
|
|
384
383
|
)
|
|
385
|
-
print(" To skip this question, pass --
|
|
384
|
+
print(" To skip this question, pass the target flag, --run-here, or --yes.", file=stream)
|
|
386
385
|
while True:
|
|
387
386
|
try:
|
|
388
387
|
answer = reader(
|