clustermax 0.3.1.dev2026112696__tar.gz → 0.3.1.dev2026112898__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.dev2026112696 → clustermax-0.3.1.dev2026112898}/PKG-INFO +32 -3
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/README.md +31 -2
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/clustermax.egg-info/PKG-INFO +32 -3
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/clustermax.egg-info/SOURCES.txt +1 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/audit_profiles.py +2 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/audit_report.py +75 -3
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/audit_runner.py +1 -4
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/criteria_links.py +5 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/minimum_links.py +4 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/minimum_refresh.py +71 -11
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/progress.py +1 -20
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/audit-common.sh +224 -18
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/audit_findings.py +321 -40
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/_fanout.py +8 -20
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/fabric/virtio-net-check.py +480 -38
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/gpu/vboost.py +80 -16
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/platform_config.py +63 -3
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/gpu_runtime_exposure.py +41 -10
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/hbm_memory_exposure.py +58 -30
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/hugepages.py +16 -9
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/k8s_scheduling.py +23 -3
- clustermax-0.3.1.dev2026112898/cmax/scripts/1-audit/checks/system/kubernetes_nodes_proxy.py +229 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/storage_config.py +56 -19
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/cluster-audit-k8s.sh +22 -7
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/cluster-audit-slurm.sh +106 -4
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/cluster-audit-standalone.sh +24 -1
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/container-check.sh +28 -1
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/criteria-checks.json +173 -1
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/host-check.sh +78 -30
- clustermax-0.3.1.dev2026112898/cmax/scripts/1-audit/host_fleet.py +363 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/merge_audit.py +1 -1
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/minimum-versions.json +752 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/monitoring-k8s.sh +75 -4
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/pwnescape-host-facts.sh +82 -51
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/pwnescape.py +71 -8
- clustermax-0.3.1.dev2026112898/cmax/scripts/1-audit/sctp_sendall.py +210 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/security-fleet.sh +55 -16
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/security_fleet.py +4 -3
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/security_version_audit.py +500 -108
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/security.py +206 -9
- clustermax-0.3.1.dev2026112696/cmax/scripts/1-audit/checks/system/kubernetes_nodes_proxy.py +0 -238
- clustermax-0.3.1.dev2026112696/cmax/scripts/1-audit/host_fleet.py +0 -281
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/LICENSE +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/clustermax.egg-info/dependency_links.txt +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/clustermax.egg-info/entry_points.txt +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/clustermax.egg-info/requires.txt +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/clustermax.egg-info/top_level.txt +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/__init__.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/_version.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/audit_cli.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/audit_review.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/banner.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/cli.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/cmax.yaml +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/host_role.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/logo.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/minimum_sync.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/obs_check.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/obs_discovery.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/report_style.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/runtime_paths.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/bad_epoll.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/fabric/nccl-ib-qps-check.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/fabric/nccl-topology-file-check.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/fabric/nic-topology-check.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/fabric/vf-interface-exposure.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/arm-smmu-virtualization-check.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/ingress_nginx_cve_2025_1974.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/tenant_pod_defaults.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/checks/system/vm-iommu-check.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/gpu_profiles.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/k8s-control.sh +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/k8s_runtime_software.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/kubernetes_quantities.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/kvm_svm.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/minimum_versions.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/plan_audit.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/run.sh +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/run_checks.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/run_legacy_audit.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/ubuntu_kernel_cves.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/scripts/1-audit/validate_audit.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/target_selection.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/cmax/yaml_support.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/pyproject.toml +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/setup.cfg +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/setup.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/tests/test_host_isolation.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/tests/test_minimum_pages.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/tests/test_nightly_version.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/tests/test_select_tests.py +0 -0
- {clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/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.dev2026112898
|
|
4
4
|
Summary: ClusterMAX GPU cluster audit and security CLI
|
|
5
5
|
Author: SemiAnalysis
|
|
6
6
|
Maintainer: SemiAnalysis
|
|
@@ -197,6 +197,15 @@ The following results have explicit assessment scopes:
|
|
|
197
197
|
Later trains can pass for the mapped ConnectX-8 and BlueField-3 firmware
|
|
198
198
|
families. Older LTS floors remain separate. Unknown products do not inherit
|
|
199
199
|
that range merely because their version is higher.
|
|
200
|
+
- **containerd:** The check grades the upstream release number of containerd
|
|
201
|
+
on each GPU host. On Kubernetes, the kubelet report
|
|
202
|
+
(`containerRuntimeVersion`) is the evidence when the host has no containerd
|
|
203
|
+
binary in its `PATH`, as on K3s and RKE2. A release must meet the minimum of
|
|
204
|
+
its branch and must be outside every advisory range. Thus a branch that
|
|
205
|
+
receives no more fixes fails, and the finding names the nearest fixed release
|
|
206
|
+
on a maintained branch. A distribution package that has a backported fix
|
|
207
|
+
under an older release number can fail. Provider evidence is then necessary.
|
|
208
|
+
A host without containerd is not applicable.
|
|
200
209
|
- **Virtio-Net:** Verified current NIC mode passes the current-exposure check.
|
|
201
210
|
Stored firmware remains unassessed when unreadable. Recheck it before enabling
|
|
202
211
|
DPU mode. A NIC-mode sample cannot clear missing or mixed fleet evidence.
|
|
@@ -252,25 +261,45 @@ audit_profile:
|
|
|
252
261
|
- audit.out
|
|
253
262
|
- audit.values.json
|
|
254
263
|
checks:
|
|
264
|
+
- audit.out
|
|
265
|
+
- audit.values.json
|
|
266
|
+
- securityVersions.amdDriver.status
|
|
255
267
|
- securityVersions.nvidiaDriver.status
|
|
256
268
|
- securityVersions.nvidiaContainerToolkit.status
|
|
257
269
|
- securityVersions.cudaToolkit.status
|
|
258
270
|
- securityVersions.runc.status
|
|
271
|
+
- securityVersions.containerd.status
|
|
259
272
|
- securityVersions.docker.status
|
|
260
273
|
- securityVersions.connectxFirmware.status
|
|
261
274
|
- securityVersions.dcgm.status
|
|
262
275
|
- securityVersions.dcgmExporter.status
|
|
276
|
+
- securityVersions.snap4Container.status
|
|
263
277
|
- securityVersions.virtioNetBluefield.status
|
|
264
278
|
- securityVersions.virtioNetBluefield.exposure
|
|
265
279
|
- securityVersions.dpuHostIsolation.status
|
|
266
280
|
- security.januscape.status
|
|
267
281
|
- security.kvmSvm.status
|
|
268
282
|
- security.guestKernel.newerInstalled
|
|
283
|
+
- security.ubuntuNobleKernelMinimum.status
|
|
284
|
+
- security.guestKernel.ubuntuCveStatus
|
|
269
285
|
- security.fragnesia.status
|
|
286
|
+
- security.badEpoll.status
|
|
287
|
+
- security.sctpSendall.status
|
|
288
|
+
- security.pwnescape.status
|
|
289
|
+
- qemu-virtio-serial
|
|
290
|
+
- vmscape
|
|
291
|
+
- observability-isolation
|
|
270
292
|
- bmc-ipmi
|
|
293
|
+
- kubernetes-nodes-proxy
|
|
294
|
+
- ingress-nginx-cve-2025-1974
|
|
271
295
|
- ufm-profile
|
|
272
296
|
- pcie-passthrough
|
|
273
297
|
- nvlink-boundary
|
|
298
|
+
- mig-side-channel
|
|
299
|
+
- gpu-ecc-rowhammer
|
|
300
|
+
- nvidia-cdi-hook-monitoring
|
|
301
|
+
- ray-dashboard-exposure
|
|
302
|
+
- aistore
|
|
274
303
|
```
|
|
275
304
|
|
|
276
305
|
The resolved plan enables only `audit.audit`. It uses the standard artifact
|
|
@@ -439,8 +468,8 @@ Each harness has one collector, `cmax/scripts/1-audit/cluster-audit-<harness>.sh
|
|
|
439
468
|
verdict for each security check. The collector sources
|
|
440
469
|
`cmax/scripts/1-audit/security-fleet.sh`, which grades host-level minimums
|
|
441
470
|
on every GPU host, not only the sampled worker: the GPU driver, NVIDIA
|
|
442
|
-
Container Toolkit, runc, Docker, ConnectX firmware, DCGM, and the
|
|
443
|
-
advisories. Each check reports the worst host, names it, and lists every host's
|
|
471
|
+
Container Toolkit, runc, containerd, Docker, ConnectX firmware, DCGM, and the
|
|
472
|
+
kernel advisories. Each check reports the worst host, names it, and lists every host's
|
|
444
473
|
result. ConnectX devices are listed as `host/device`. A GPU host the audit
|
|
445
474
|
cannot read leaves a passing check unknown. Kubernetes reuses the BMC host-root
|
|
446
475
|
pod on each node; Slurm runs a short one-GPU step on each GPU node with
|
|
@@ -177,6 +177,15 @@ The following results have explicit assessment scopes:
|
|
|
177
177
|
Later trains can pass for the mapped ConnectX-8 and BlueField-3 firmware
|
|
178
178
|
families. Older LTS floors remain separate. Unknown products do not inherit
|
|
179
179
|
that range merely because their version is higher.
|
|
180
|
+
- **containerd:** The check grades the upstream release number of containerd
|
|
181
|
+
on each GPU host. On Kubernetes, the kubelet report
|
|
182
|
+
(`containerRuntimeVersion`) is the evidence when the host has no containerd
|
|
183
|
+
binary in its `PATH`, as on K3s and RKE2. A release must meet the minimum of
|
|
184
|
+
its branch and must be outside every advisory range. Thus a branch that
|
|
185
|
+
receives no more fixes fails, and the finding names the nearest fixed release
|
|
186
|
+
on a maintained branch. A distribution package that has a backported fix
|
|
187
|
+
under an older release number can fail. Provider evidence is then necessary.
|
|
188
|
+
A host without containerd is not applicable.
|
|
180
189
|
- **Virtio-Net:** Verified current NIC mode passes the current-exposure check.
|
|
181
190
|
Stored firmware remains unassessed when unreadable. Recheck it before enabling
|
|
182
191
|
DPU mode. A NIC-mode sample cannot clear missing or mixed fleet evidence.
|
|
@@ -232,25 +241,45 @@ audit_profile:
|
|
|
232
241
|
- audit.out
|
|
233
242
|
- audit.values.json
|
|
234
243
|
checks:
|
|
244
|
+
- audit.out
|
|
245
|
+
- audit.values.json
|
|
246
|
+
- securityVersions.amdDriver.status
|
|
235
247
|
- securityVersions.nvidiaDriver.status
|
|
236
248
|
- securityVersions.nvidiaContainerToolkit.status
|
|
237
249
|
- securityVersions.cudaToolkit.status
|
|
238
250
|
- securityVersions.runc.status
|
|
251
|
+
- securityVersions.containerd.status
|
|
239
252
|
- securityVersions.docker.status
|
|
240
253
|
- securityVersions.connectxFirmware.status
|
|
241
254
|
- securityVersions.dcgm.status
|
|
242
255
|
- securityVersions.dcgmExporter.status
|
|
256
|
+
- securityVersions.snap4Container.status
|
|
243
257
|
- securityVersions.virtioNetBluefield.status
|
|
244
258
|
- securityVersions.virtioNetBluefield.exposure
|
|
245
259
|
- securityVersions.dpuHostIsolation.status
|
|
246
260
|
- security.januscape.status
|
|
247
261
|
- security.kvmSvm.status
|
|
248
262
|
- security.guestKernel.newerInstalled
|
|
263
|
+
- security.ubuntuNobleKernelMinimum.status
|
|
264
|
+
- security.guestKernel.ubuntuCveStatus
|
|
249
265
|
- security.fragnesia.status
|
|
266
|
+
- security.badEpoll.status
|
|
267
|
+
- security.sctpSendall.status
|
|
268
|
+
- security.pwnescape.status
|
|
269
|
+
- qemu-virtio-serial
|
|
270
|
+
- vmscape
|
|
271
|
+
- observability-isolation
|
|
250
272
|
- bmc-ipmi
|
|
273
|
+
- kubernetes-nodes-proxy
|
|
274
|
+
- ingress-nginx-cve-2025-1974
|
|
251
275
|
- ufm-profile
|
|
252
276
|
- pcie-passthrough
|
|
253
277
|
- nvlink-boundary
|
|
278
|
+
- mig-side-channel
|
|
279
|
+
- gpu-ecc-rowhammer
|
|
280
|
+
- nvidia-cdi-hook-monitoring
|
|
281
|
+
- ray-dashboard-exposure
|
|
282
|
+
- aistore
|
|
254
283
|
```
|
|
255
284
|
|
|
256
285
|
The resolved plan enables only `audit.audit`. It uses the standard artifact
|
|
@@ -419,8 +448,8 @@ Each harness has one collector, `cmax/scripts/1-audit/cluster-audit-<harness>.sh
|
|
|
419
448
|
verdict for each security check. The collector sources
|
|
420
449
|
`cmax/scripts/1-audit/security-fleet.sh`, which grades host-level minimums
|
|
421
450
|
on every GPU host, not only the sampled worker: the GPU driver, NVIDIA
|
|
422
|
-
Container Toolkit, runc, Docker, ConnectX firmware, DCGM, and the
|
|
423
|
-
advisories. Each check reports the worst host, names it, and lists every host's
|
|
451
|
+
Container Toolkit, runc, containerd, Docker, ConnectX firmware, DCGM, and the
|
|
452
|
+
kernel advisories. Each check reports the worst host, names it, and lists every host's
|
|
424
453
|
result. ConnectX devices are listed as `host/device`. A GPU host the audit
|
|
425
454
|
cannot read leaves a passing check unknown. Kubernetes reuses the BMC host-root
|
|
426
455
|
pod on each node; Slurm runs a short one-GPU step on each GPU node with
|
{clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/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.dev2026112898
|
|
4
4
|
Summary: ClusterMAX GPU cluster audit and security CLI
|
|
5
5
|
Author: SemiAnalysis
|
|
6
6
|
Maintainer: SemiAnalysis
|
|
@@ -197,6 +197,15 @@ The following results have explicit assessment scopes:
|
|
|
197
197
|
Later trains can pass for the mapped ConnectX-8 and BlueField-3 firmware
|
|
198
198
|
families. Older LTS floors remain separate. Unknown products do not inherit
|
|
199
199
|
that range merely because their version is higher.
|
|
200
|
+
- **containerd:** The check grades the upstream release number of containerd
|
|
201
|
+
on each GPU host. On Kubernetes, the kubelet report
|
|
202
|
+
(`containerRuntimeVersion`) is the evidence when the host has no containerd
|
|
203
|
+
binary in its `PATH`, as on K3s and RKE2. A release must meet the minimum of
|
|
204
|
+
its branch and must be outside every advisory range. Thus a branch that
|
|
205
|
+
receives no more fixes fails, and the finding names the nearest fixed release
|
|
206
|
+
on a maintained branch. A distribution package that has a backported fix
|
|
207
|
+
under an older release number can fail. Provider evidence is then necessary.
|
|
208
|
+
A host without containerd is not applicable.
|
|
200
209
|
- **Virtio-Net:** Verified current NIC mode passes the current-exposure check.
|
|
201
210
|
Stored firmware remains unassessed when unreadable. Recheck it before enabling
|
|
202
211
|
DPU mode. A NIC-mode sample cannot clear missing or mixed fleet evidence.
|
|
@@ -252,25 +261,45 @@ audit_profile:
|
|
|
252
261
|
- audit.out
|
|
253
262
|
- audit.values.json
|
|
254
263
|
checks:
|
|
264
|
+
- audit.out
|
|
265
|
+
- audit.values.json
|
|
266
|
+
- securityVersions.amdDriver.status
|
|
255
267
|
- securityVersions.nvidiaDriver.status
|
|
256
268
|
- securityVersions.nvidiaContainerToolkit.status
|
|
257
269
|
- securityVersions.cudaToolkit.status
|
|
258
270
|
- securityVersions.runc.status
|
|
271
|
+
- securityVersions.containerd.status
|
|
259
272
|
- securityVersions.docker.status
|
|
260
273
|
- securityVersions.connectxFirmware.status
|
|
261
274
|
- securityVersions.dcgm.status
|
|
262
275
|
- securityVersions.dcgmExporter.status
|
|
276
|
+
- securityVersions.snap4Container.status
|
|
263
277
|
- securityVersions.virtioNetBluefield.status
|
|
264
278
|
- securityVersions.virtioNetBluefield.exposure
|
|
265
279
|
- securityVersions.dpuHostIsolation.status
|
|
266
280
|
- security.januscape.status
|
|
267
281
|
- security.kvmSvm.status
|
|
268
282
|
- security.guestKernel.newerInstalled
|
|
283
|
+
- security.ubuntuNobleKernelMinimum.status
|
|
284
|
+
- security.guestKernel.ubuntuCveStatus
|
|
269
285
|
- security.fragnesia.status
|
|
286
|
+
- security.badEpoll.status
|
|
287
|
+
- security.sctpSendall.status
|
|
288
|
+
- security.pwnescape.status
|
|
289
|
+
- qemu-virtio-serial
|
|
290
|
+
- vmscape
|
|
291
|
+
- observability-isolation
|
|
270
292
|
- bmc-ipmi
|
|
293
|
+
- kubernetes-nodes-proxy
|
|
294
|
+
- ingress-nginx-cve-2025-1974
|
|
271
295
|
- ufm-profile
|
|
272
296
|
- pcie-passthrough
|
|
273
297
|
- nvlink-boundary
|
|
298
|
+
- mig-side-channel
|
|
299
|
+
- gpu-ecc-rowhammer
|
|
300
|
+
- nvidia-cdi-hook-monitoring
|
|
301
|
+
- ray-dashboard-exposure
|
|
302
|
+
- aistore
|
|
274
303
|
```
|
|
275
304
|
|
|
276
305
|
The resolved plan enables only `audit.audit`. It uses the standard artifact
|
|
@@ -439,8 +468,8 @@ Each harness has one collector, `cmax/scripts/1-audit/cluster-audit-<harness>.sh
|
|
|
439
468
|
verdict for each security check. The collector sources
|
|
440
469
|
`cmax/scripts/1-audit/security-fleet.sh`, which grades host-level minimums
|
|
441
470
|
on every GPU host, not only the sampled worker: the GPU driver, NVIDIA
|
|
442
|
-
Container Toolkit, runc, Docker, ConnectX firmware, DCGM, and the
|
|
443
|
-
advisories. Each check reports the worst host, names it, and lists every host's
|
|
471
|
+
Container Toolkit, runc, containerd, Docker, ConnectX firmware, DCGM, and the
|
|
472
|
+
kernel advisories. Each check reports the worst host, names it, and lists every host's
|
|
444
473
|
result. ConnectX devices are listed as `host/device`. A GPU host the audit
|
|
445
474
|
cannot read leaves a passing check unknown. Kubernetes reuses the BMC host-root
|
|
446
475
|
pod on each node; Slurm runs a short one-GPU step on each GPU node with
|
{clustermax-0.3.1.dev2026112696 → clustermax-0.3.1.dev2026112898}/clustermax.egg-info/SOURCES.txt
RENAMED
|
@@ -57,6 +57,7 @@ cmax/scripts/1-audit/pwnescape.py
|
|
|
57
57
|
cmax/scripts/1-audit/run.sh
|
|
58
58
|
cmax/scripts/1-audit/run_checks.py
|
|
59
59
|
cmax/scripts/1-audit/run_legacy_audit.py
|
|
60
|
+
cmax/scripts/1-audit/sctp_sendall.py
|
|
60
61
|
cmax/scripts/1-audit/security-fleet.sh
|
|
61
62
|
cmax/scripts/1-audit/security_fleet.py
|
|
62
63
|
cmax/scripts/1-audit/security_version_audit.py
|
|
@@ -27,11 +27,13 @@ AUDIT_CATEGORIES = (
|
|
|
27
27
|
"securityVersions.nvidiaContainerToolkit.status",
|
|
28
28
|
"securityVersions.cudaToolkit.status",
|
|
29
29
|
"securityVersions.runc.status",
|
|
30
|
+
"securityVersions.containerd.status",
|
|
30
31
|
"securityVersions.docker.status",
|
|
31
32
|
"securityVersions.connectxFirmware.status",
|
|
32
33
|
"securityVersions.dcgm.status",
|
|
33
34
|
"securityVersions.dcgmExporter.status",
|
|
34
35
|
"securityVersions.virtioNetBluefield.status",
|
|
36
|
+
"securityVersions.snap4Container.status",
|
|
35
37
|
"aistore",
|
|
36
38
|
}
|
|
37
39
|
),
|
|
@@ -102,6 +102,9 @@ _PASS_ASSESSMENTS = {
|
|
|
102
102
|
"securityVersions.runc.status": (
|
|
103
103
|
"The runc version meets the published security minimum."
|
|
104
104
|
),
|
|
105
|
+
"securityVersions.containerd.status": (
|
|
106
|
+
"The containerd version meets the published security minimum."
|
|
107
|
+
),
|
|
105
108
|
"securityVersions.docker.status": (
|
|
106
109
|
"The Docker Engine version meets the published security minimum."
|
|
107
110
|
),
|
|
@@ -117,6 +120,9 @@ _PASS_ASSESSMENTS = {
|
|
|
117
120
|
"securityVersions.virtioNetBluefield.status": (
|
|
118
121
|
"The BlueField VIRTIO-Net controller meets the published security minimum."
|
|
119
122
|
),
|
|
123
|
+
"securityVersions.snap4Container.status": (
|
|
124
|
+
"The BlueField SNAP-4 container meets the published security minimum for its release train."
|
|
125
|
+
),
|
|
120
126
|
"securityVersions.dpuHostIsolation.status": (
|
|
121
127
|
"The host cannot reach the BlueField DPU control plane through the checked interfaces."
|
|
122
128
|
),
|
|
@@ -308,6 +314,7 @@ def _title(key: str) -> str:
|
|
|
308
314
|
"Rdma": "RDMA",
|
|
309
315
|
"Hca": "HCA",
|
|
310
316
|
"Dpu": "DPU",
|
|
317
|
+
"Snap4": "SNAP-4",
|
|
311
318
|
"Dcgm": "DCGM",
|
|
312
319
|
"Smmu": "SMMU",
|
|
313
320
|
"Iommu": "IOMMU",
|
|
@@ -356,6 +363,9 @@ _REPRODUCTION_COMMANDS = {
|
|
|
356
363
|
"on the audited worker: `docker version --format '{{.Server.Version}}'`"
|
|
357
364
|
),
|
|
358
365
|
"securityVersions.runc.status": "on the audited worker: `runc --version`",
|
|
366
|
+
"securityVersions.containerd.status": (
|
|
367
|
+
"on the audited worker: `containerd --version`"
|
|
368
|
+
),
|
|
359
369
|
"securityVersions.dcgm.status": "on the audited worker: `dcgmi --version`",
|
|
360
370
|
"security.fragnesia.status": "on the audited worker: `uname -r`",
|
|
361
371
|
"security.ubuntuNobleKernelMinimum.status": "on the audited worker: `uname -r`",
|
|
@@ -377,6 +387,11 @@ _REPRODUCTION_COMMANDS = {
|
|
|
377
387
|
"on the audited worker: `uname -r`; `cat /proc/version_signature`; "
|
|
378
388
|
"`dpkg-query -W 'linux-image-*'`; inspect `/sys/kernel/livepatch`"
|
|
379
389
|
),
|
|
390
|
+
"security.sctpSendall.status": (
|
|
391
|
+
"on every worker: `uname -r`; `cat /proc/version_signature`; "
|
|
392
|
+
"`dpkg-query -W 'linux-image-*'`; inspect `/sys/kernel/livepatch`; "
|
|
393
|
+
"request provider patch evidence for a custom or vendor kernel"
|
|
394
|
+
),
|
|
380
395
|
"software.nvhpc.status": (
|
|
381
396
|
"on the audited worker: run `nvc --version`, `nvc++ --version`, and "
|
|
382
397
|
"`nvfortran --version`; inspect the selected SDK release tree for NCCL, "
|
|
@@ -391,6 +406,11 @@ _REPRODUCTION_COMMANDS = {
|
|
|
391
406
|
"custom-columns='NAMESPACE:.metadata.namespace,NAME:.metadata.name,"
|
|
392
407
|
"IMAGES:.spec.containers[*].image' | grep -i dcgm-exporter`"
|
|
393
408
|
),
|
|
409
|
+
"securityVersions.snap4Container.status": (
|
|
410
|
+
"on each BlueField-3 DPU in DPU mode (locally or over RShim with "
|
|
411
|
+
"`ssh ubuntu@192.168.100.2`): `sudo crictl ps` and `sudo crictl images "
|
|
412
|
+
"| grep doca_snap`, or `grep -i 'image:.*doca_snap' /etc/kubelet.d/*`"
|
|
413
|
+
),
|
|
394
414
|
"securityVersions.dpuHostIsolation.status": (
|
|
395
415
|
"on every BlueField GPU worker: read `INTERNAL_CPU_RSHIM` with "
|
|
396
416
|
"`sudo -n mlxconfig -d <PCI-address> q`, inspect `/dev/rshim*`, and "
|
|
@@ -487,6 +507,14 @@ _CONTEXT_OBSERVATION_KEYS = frozenset(
|
|
|
487
507
|
}
|
|
488
508
|
)
|
|
489
509
|
|
|
510
|
+
# Fleet kernel checks whose graders write the same block shape, and the CVE
|
|
511
|
+
# that each check grades.
|
|
512
|
+
_HOST_KERNEL_CVES = {
|
|
513
|
+
"security.pwnescape.status": "CVE-2026-99999",
|
|
514
|
+
"security.sctpSendall.status": "CVE-2026-46227",
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
|
|
490
518
|
def _nested(data: dict[str, Any], path: str) -> Any:
|
|
491
519
|
current: Any = data
|
|
492
520
|
for part in path.split("."):
|
|
@@ -534,6 +562,30 @@ def _version_observation(audit: dict[str, Any], key: str, value: Any) -> Any:
|
|
|
534
562
|
"""Show the evidence that lets an operator interpret each check."""
|
|
535
563
|
if key == "containers.pyxisRuntimeWorks":
|
|
536
564
|
version = _nested(audit, "containers.pyxisVersion") or "unknown"
|
|
565
|
+
cli = _nested(audit, "containers.pyxisCliAvailable")
|
|
566
|
+
containers = _nested(audit, "containers")
|
|
567
|
+
if not isinstance(containers, dict):
|
|
568
|
+
containers = {}
|
|
569
|
+
error = containers.get("pyxisRuntimeError")
|
|
570
|
+
error_text = error.strip() if isinstance(error, str) else ""
|
|
571
|
+
# An explicit attempt flag is authoritative. An older audit omits the
|
|
572
|
+
# flag and stores pyxisRuntimeError only after the worker command fails.
|
|
573
|
+
if "pyxisRuntimeAttempted" in containers:
|
|
574
|
+
attempted = containers.get("pyxisRuntimeAttempted") is True
|
|
575
|
+
else:
|
|
576
|
+
attempted = bool(error_text)
|
|
577
|
+
if cli is True and value is not True and attempted:
|
|
578
|
+
# The options exist, and the worker container test failed.
|
|
579
|
+
shown = error_text or "no output"
|
|
580
|
+
return (
|
|
581
|
+
f"CLI available true; container test failed ({shown}); "
|
|
582
|
+
f"installed version {version}"
|
|
583
|
+
)
|
|
584
|
+
if cli is True and value is not True:
|
|
585
|
+
return (
|
|
586
|
+
"CLI available true; worker container test did not run; "
|
|
587
|
+
f"installed version {version}"
|
|
588
|
+
)
|
|
537
589
|
return f"CLI available {str(value).lower()}; installed version {version}"
|
|
538
590
|
if key == "containers.workerCheckOk":
|
|
539
591
|
worker = _nested(audit, "containers.workerNode") or "unknown"
|
|
@@ -615,8 +667,9 @@ def _version_observation(audit: dict[str, Any], key: str, value: Any) -> Any:
|
|
|
615
667
|
"minimum version not applicable; newest installed version "
|
|
616
668
|
f"{kernel.get('newestInstalled', 'unknown')}"
|
|
617
669
|
)
|
|
618
|
-
if key
|
|
619
|
-
|
|
670
|
+
if key in _HOST_KERNEL_CVES:
|
|
671
|
+
cve = _HOST_KERNEL_CVES[key]
|
|
672
|
+
advisory = _nested(audit, key.removesuffix(".status"))
|
|
620
673
|
if isinstance(advisory, dict):
|
|
621
674
|
from cmax import security
|
|
622
675
|
return (
|
|
@@ -627,7 +680,7 @@ def _version_observation(audit: dict[str, Any], key: str, value: Any) -> Any:
|
|
|
627
680
|
f"{security.pwnescape_fleet_coverage(advisory)}; "
|
|
628
681
|
if advisory.get("scope") == "fleet" else ""
|
|
629
682
|
)
|
|
630
|
-
+ f"
|
|
683
|
+
+ f"{cve}; {advisory.get('reason', '')}"
|
|
631
684
|
)
|
|
632
685
|
if key == "security.kvmSvm.status":
|
|
633
686
|
advisory = _nested(audit, "security.kvmSvm")
|
|
@@ -1237,6 +1290,25 @@ def evaluate(
|
|
|
1237
1290
|
or key in _CONTEXT_OBSERVATION_KEYS
|
|
1238
1291
|
else effective
|
|
1239
1292
|
)
|
|
1293
|
+
if (
|
|
1294
|
+
key == "gpu_controls.vboost.status"
|
|
1295
|
+
and _normalize_sentinel(effective) == "not_checked"
|
|
1296
|
+
):
|
|
1297
|
+
# No worker was read. The gpu_controls.vboost.allowed row warns
|
|
1298
|
+
# for it, so this row must not pass.
|
|
1299
|
+
checks.append(
|
|
1300
|
+
AuditCheck(
|
|
1301
|
+
key,
|
|
1302
|
+
_title(key),
|
|
1303
|
+
check_category,
|
|
1304
|
+
SKIPPED,
|
|
1305
|
+
display_observed,
|
|
1306
|
+
"No GPU worker was checked for vboost; the vBoost allowed "
|
|
1307
|
+
"row reports this.",
|
|
1308
|
+
references=_with_criteria_reference(key),
|
|
1309
|
+
)
|
|
1310
|
+
)
|
|
1311
|
+
continue
|
|
1240
1312
|
if _is_not_applicable(audit, key, effective):
|
|
1241
1313
|
checks.append(
|
|
1242
1314
|
AuditCheck(
|
|
@@ -57,10 +57,7 @@ def run(
|
|
|
57
57
|
raise AuditError(str(exc)) from exc
|
|
58
58
|
|
|
59
59
|
runner = runtime_paths.audit_runner(runtime_root)
|
|
60
|
-
|
|
61
|
-
# `cmax audit security --output-dir` flag uses. Without it, the audit writes
|
|
62
|
-
# to a fresh timestamped directory.
|
|
63
|
-
audit_dir = Path(output_dir) if output_dir else _audit_dir()
|
|
60
|
+
audit_dir = Path(output_dir).resolve() if output_dir else _audit_dir()
|
|
64
61
|
audit_dir.mkdir(parents=True, exist_ok=bool(output_dir))
|
|
65
62
|
env = {
|
|
66
63
|
**os.environ,
|
|
@@ -89,10 +89,12 @@ _CHECK_ANCHORS = {
|
|
|
89
89
|
"securityVersions.nvidiaContainerToolkit.status": _SECURITY_CONTAINER_TOOLKIT,
|
|
90
90
|
"securityVersions.cudaToolkit.status": _SECURITY_PATCHING,
|
|
91
91
|
"securityVersions.runc.status": _SECURITY_PATCHING,
|
|
92
|
+
"securityVersions.containerd.status": _SECURITY_PATCHING,
|
|
92
93
|
"securityVersions.docker.status": _SECURITY_PATCHING,
|
|
93
94
|
"securityVersions.connectxFirmware.status": _SECURITY_PATCHING,
|
|
94
95
|
"securityVersions.dcgm.status": _SECURITY_PATCHING,
|
|
95
96
|
"securityVersions.dcgmExporter.status": _SECURITY_PATCHING,
|
|
97
|
+
"securityVersions.snap4Container.status": _SECURITY_PATCHING,
|
|
96
98
|
"securityVersions.virtioNetBluefield.status": _SECURITY_PATCHING,
|
|
97
99
|
"securityVersions.virtioNetBluefield.exposure": _SECURITY_ISOLATION,
|
|
98
100
|
"securityVersions.dpuHostIsolation.status": _SECURITY_ISOLATION,
|
|
@@ -104,6 +106,9 @@ _CHECK_ANCHORS = {
|
|
|
104
106
|
"security.fragnesia.status": _SECURITY_PATCHING,
|
|
105
107
|
"security.badEpoll.status": _SECURITY_PATCHING,
|
|
106
108
|
"security.pwnescape.status": _SECURITY_PATCHING,
|
|
109
|
+
"security.sctpSendall.status": _SECURITY_PATCHING,
|
|
110
|
+
"gpu_controls.vboost.status": "lifecycle",
|
|
111
|
+
"networking.rdmaType": "networking",
|
|
107
112
|
"containers.nvidiaContainerToolkit": _LIFECYCLE_DRIVERS,
|
|
108
113
|
"containers.workerCheckOk": "orchestration",
|
|
109
114
|
"containers.pyxisRuntimeWorks": _ORCHESTRATION_PYXIS,
|
|
@@ -17,10 +17,12 @@ _COMPONENT_ANCHORS = frozenset(
|
|
|
17
17
|
"connectxFirmware",
|
|
18
18
|
"virtioNetBluefield",
|
|
19
19
|
"runc",
|
|
20
|
+
"containerd",
|
|
20
21
|
"docker",
|
|
21
22
|
"rocm",
|
|
22
23
|
"dcgm",
|
|
23
24
|
"dcgmExporter",
|
|
25
|
+
"snap4Container",
|
|
24
26
|
"ubuntuNoble",
|
|
25
27
|
}
|
|
26
28
|
)
|
|
@@ -31,9 +33,11 @@ _SECURITY_CHECK_COMPONENTS = {
|
|
|
31
33
|
"cuda-toolkit": "cudaToolkit",
|
|
32
34
|
"dcgm-exporter": "dcgmExporter",
|
|
33
35
|
"runc": "runc",
|
|
36
|
+
"containerd": "containerd",
|
|
34
37
|
"docker": "docker",
|
|
35
38
|
"connectx-firmware": "connectxFirmware",
|
|
36
39
|
"virtio-net-bluefield": "virtioNetBluefield",
|
|
40
|
+
"snap4-container": "snap4Container",
|
|
37
41
|
"fragnesia": "ubuntuNoble",
|
|
38
42
|
}
|
|
39
43
|
|
|
@@ -7,7 +7,7 @@ machine-readable upstream sources only:
|
|
|
7
7
|
|
|
8
8
|
* NVIDIA CSAF bulletins (GPU driver, ConnectX / BlueField firmware, CUDA
|
|
9
9
|
Toolkit, Container Toolkit) from the NVIDIA/product-security repository
|
|
10
|
-
* OSV for the runc branch
|
|
10
|
+
* OSV for the runc and containerd branch ladders
|
|
11
11
|
* Canonical's Ubuntu Security Notices for complete Noble package floors,
|
|
12
12
|
plus Ubuntu OSV records for named vulnerability-specific checks
|
|
13
13
|
* The Docker Engine release notes that Docker authors as markdown in the
|
|
@@ -230,9 +230,19 @@ RUNC_ADVISORY = (
|
|
|
230
230
|
"https://github.com/opencontainers/runc/security/advisories/GHSA-9493-h29p-rfm2"
|
|
231
231
|
)
|
|
232
232
|
|
|
233
|
+
# containerd 2.x changed its Go module path, and OSV files each advisory range
|
|
234
|
+
# under the module that holds the affected release. Both modules are one
|
|
235
|
+
# product on a host, so one ladder reads both.
|
|
236
|
+
CONTAINERD_PACKAGES = (
|
|
237
|
+
"github.com/containerd/containerd",
|
|
238
|
+
"github.com/containerd/containerd/v2",
|
|
239
|
+
)
|
|
240
|
+
CONTAINERD_ADVISORY = "https://github.com/containerd/containerd/security/advisories"
|
|
241
|
+
|
|
233
242
|
NVIDIA_DRIVER_RELEASE_REPO = "NVIDIA/open-gpu-kernel-modules"
|
|
234
243
|
NVIDIA_CONTAINER_TOOLKIT_RELEASE_REPO = "NVIDIA/nvidia-container-toolkit"
|
|
235
244
|
RUNC_RELEASE_REPO = "opencontainers/runc"
|
|
245
|
+
CONTAINERD_RELEASE_REPO = "containerd/containerd"
|
|
236
246
|
DCGM_EXPORTER_RELEASE_REPO = "NVIDIA/dcgm-exporter"
|
|
237
247
|
|
|
238
248
|
# Upstream Linux kernel CVEs that the audit grades per stable branch. The Linux
|
|
@@ -1809,8 +1819,27 @@ def osv_package_vulns(
|
|
|
1809
1819
|
)
|
|
1810
1820
|
|
|
1811
1821
|
|
|
1812
|
-
def
|
|
1813
|
-
"""
|
|
1822
|
+
def _go_module_major(package: str) -> int | None:
|
|
1823
|
+
"""Return the major version that a Go module path pins, if any.
|
|
1824
|
+
|
|
1825
|
+
A module at major version 2 or later carries a ``/vN`` path suffix. A
|
|
1826
|
+
module without the suffix holds the 0.x and 1.x releases.
|
|
1827
|
+
"""
|
|
1828
|
+
match = re.search(r"/v(\d+)$", package)
|
|
1829
|
+
return int(match.group(1)) if match else None
|
|
1830
|
+
|
|
1831
|
+
|
|
1832
|
+
def osv_ladder(
|
|
1833
|
+
packages: Sequence[str],
|
|
1834
|
+
release_repo: str,
|
|
1835
|
+
advisory: str,
|
|
1836
|
+
fetch: Fetcher | None = None,
|
|
1837
|
+
) -> dict:
|
|
1838
|
+
"""Highest fixed release per major.minor across every GHSA advisory.
|
|
1839
|
+
|
|
1840
|
+
``packages`` names every Go module path of one product. A product that
|
|
1841
|
+
changed its module path at a major version has one OSV package per path,
|
|
1842
|
+
and the ladder reads all of them.
|
|
1814
1843
|
|
|
1815
1844
|
Beside the ladder, the block records ``advisoryRanges``: the SEMVER
|
|
1816
1845
|
affected ranges of every advisory that contributed to it. The audit is
|
|
@@ -1822,14 +1851,25 @@ def runc_ladder(fetch: Fetcher | None = None) -> dict:
|
|
|
1822
1851
|
A GIT range carries commit hashes, and a hash split on dots would enter
|
|
1823
1852
|
the ladder as a branch key that no observed version can ever parse to,
|
|
1824
1853
|
which the audit reads as an unusable table.
|
|
1854
|
+
|
|
1855
|
+
OSV writes ``introduced: 0`` for a range that starts at the first release
|
|
1856
|
+
of its module. For a ``/vN`` module that release is N.0.0, not 0. The
|
|
1857
|
+
recorded range therefore starts at ``N.0.0-0``, the lowest pre-release of
|
|
1858
|
+
N.0.0. Without that, a range from the v2 module would hold every 1.x
|
|
1859
|
+
release, and the audit would name an advisory that 1.x never had.
|
|
1825
1860
|
"""
|
|
1861
|
+
names = tuple(packages)
|
|
1826
1862
|
ladder: dict[str, str] = {}
|
|
1827
1863
|
advisories: list[str] = []
|
|
1828
1864
|
advisory_ranges: dict[str, list[dict[str, str]]] = {}
|
|
1829
1865
|
candidates: dict[str, list[tuple[str, dict[str, Any] | None]]] = {}
|
|
1830
1866
|
sources: dict[str, dict[str, Any]] = {}
|
|
1831
|
-
|
|
1832
|
-
|
|
1867
|
+
vulns: dict[str, dict] = {}
|
|
1868
|
+
for package in names:
|
|
1869
|
+
for vuln in osv_package_vulns(package, RUNC_ECOSYSTEM, fetch=fetch):
|
|
1870
|
+
# One advisory that affects two module paths arrives once per query.
|
|
1871
|
+
vulns.setdefault(vuln.get("id", ""), vuln)
|
|
1872
|
+
for vuln_id, vuln in vulns.items():
|
|
1833
1873
|
if not vuln_id.startswith("GHSA-"):
|
|
1834
1874
|
continue # GO- entries duplicate the GHSA record.
|
|
1835
1875
|
if vuln.get("withdrawn"):
|
|
@@ -1847,15 +1887,20 @@ def runc_ladder(fetch: Fetcher | None = None) -> dict:
|
|
|
1847
1887
|
sources[vuln_id] = source
|
|
1848
1888
|
ranges: list[dict[str, str]] = []
|
|
1849
1889
|
for affected in vuln.get("affected", []):
|
|
1850
|
-
|
|
1890
|
+
package = affected.get("package", {}).get("name")
|
|
1891
|
+
if package not in names:
|
|
1851
1892
|
continue
|
|
1893
|
+
major = _go_module_major(package)
|
|
1894
|
+
first_release = "0" if major is None else f"{major}.0.0-0"
|
|
1852
1895
|
for entry in affected.get("ranges", []):
|
|
1853
1896
|
if entry.get("type") not in ("SEMVER", "ECOSYSTEM"):
|
|
1854
1897
|
continue
|
|
1855
|
-
introduced =
|
|
1898
|
+
introduced = first_release
|
|
1856
1899
|
for event in entry.get("events", []):
|
|
1857
1900
|
if event.get("introduced"):
|
|
1858
1901
|
introduced = str(event["introduced"])
|
|
1902
|
+
if introduced == "0":
|
|
1903
|
+
introduced = first_release
|
|
1859
1904
|
continue
|
|
1860
1905
|
last_affected = event.get("last_affected")
|
|
1861
1906
|
if last_affected:
|
|
@@ -1888,7 +1933,7 @@ def runc_ladder(fetch: Fetcher | None = None) -> dict:
|
|
|
1888
1933
|
minimum_availability: dict[str, dict[str, Any]] = {}
|
|
1889
1934
|
for key, fixed in sorted(ladder.items()):
|
|
1890
1935
|
availability = github_release_availability(
|
|
1891
|
-
|
|
1936
|
+
release_repo, f"v{fixed}", fixed, fetch=fetch
|
|
1892
1937
|
)
|
|
1893
1938
|
source = sources.get(minimum_sources.get(key, ""))
|
|
1894
1939
|
if source and source.get("released"):
|
|
@@ -1902,10 +1947,11 @@ def runc_ladder(fetch: Fetcher | None = None) -> dict:
|
|
|
1902
1947
|
"advisoryRanges": {
|
|
1903
1948
|
vuln_id: advisory_ranges[vuln_id] for vuln_id in sorted(advisory_ranges)
|
|
1904
1949
|
},
|
|
1905
|
-
"advisory":
|
|
1950
|
+
"advisory": advisory,
|
|
1906
1951
|
"source": {
|
|
1907
1952
|
"feed": "osv",
|
|
1908
|
-
"package":
|
|
1953
|
+
"package": names[0],
|
|
1954
|
+
**({"packages": list(names)} if len(names) > 1 else {}),
|
|
1909
1955
|
"ecosystem": RUNC_ECOSYSTEM,
|
|
1910
1956
|
"url": OSV_QUERY_URL,
|
|
1911
1957
|
},
|
|
@@ -1916,6 +1962,18 @@ def runc_ladder(fetch: Fetcher | None = None) -> dict:
|
|
|
1916
1962
|
return result
|
|
1917
1963
|
|
|
1918
1964
|
|
|
1965
|
+
def runc_ladder(fetch: Fetcher | None = None) -> dict:
|
|
1966
|
+
"""Highest fixed runc release per major.minor. See ``osv_ladder``."""
|
|
1967
|
+
return osv_ladder((RUNC_PACKAGE,), RUNC_RELEASE_REPO, RUNC_ADVISORY, fetch=fetch)
|
|
1968
|
+
|
|
1969
|
+
|
|
1970
|
+
def containerd_ladder(fetch: Fetcher | None = None) -> dict:
|
|
1971
|
+
"""Highest fixed containerd release per major.minor. See ``osv_ladder``."""
|
|
1972
|
+
return osv_ladder(
|
|
1973
|
+
CONTAINERD_PACKAGES, CONTAINERD_RELEASE_REPO, CONTAINERD_ADVISORY, fetch=fetch
|
|
1974
|
+
)
|
|
1975
|
+
|
|
1976
|
+
|
|
1919
1977
|
def ubuntu_notice_url(notice_id: str) -> str:
|
|
1920
1978
|
return f"{UBUNTU_NOTICE_URL}{notice_id}.json"
|
|
1921
1979
|
|
|
@@ -3929,6 +3987,7 @@ def build_minimums(
|
|
|
3929
3987
|
)
|
|
3930
3988
|
nvhpc_future = pool.submit(nvhpc_release_window, fetch=fetch)
|
|
3931
3989
|
runc_future = pool.submit(runc_ladder, fetch=fetch)
|
|
3990
|
+
containerd_future = pool.submit(containerd_ladder, fetch=fetch)
|
|
3932
3991
|
docker_future = pool.submit(docker_minimums, fetch=fetch)
|
|
3933
3992
|
# The two AMD readers share one bulletin catalog reader and stay in
|
|
3934
3993
|
# their usual order: ROCm, then the GPU driver.
|
|
@@ -3992,6 +4051,7 @@ def build_minimums(
|
|
|
3992
4051
|
"virtioNetBluefield": nvidia_virtio_net_minimums(nvidia_documents),
|
|
3993
4052
|
**({"snap4Container": snap4} if snap4 else {}),
|
|
3994
4053
|
"runc": runc_future.result(),
|
|
4054
|
+
"containerd": containerd_future.result(),
|
|
3995
4055
|
"docker": docker_future.result(),
|
|
3996
4056
|
"rocm": amd_future.result()[0],
|
|
3997
4057
|
"amdDriver": amd_future.result()[1],
|
|
@@ -4079,7 +4139,7 @@ def verify(doc: dict, existing: dict | None = None) -> None:
|
|
|
4079
4139
|
wider upstream query, or a parsing regression that lowered one
|
|
4080
4140
|
would turn a vulnerable fleet green, so it is a hard error rather than a
|
|
4081
4141
|
warning. The rule covers every keyed minimum (driver branches, ConnectX
|
|
4082
|
-
firmware trains, Instinct ROCm programs, runc ladder rungs,
|
|
4142
|
+
firmware trains, Instinct ROCm programs, runc and containerd ladder rungs,
|
|
4083
4143
|
release lines) and the single-value `minimum` components.
|
|
4084
4144
|
"""
|
|
4085
4145
|
problems: list[str] = []
|