Four-Tier PSL Audit Architecture¶
CIS Benchmarks Tools Suite (v2.10.0) decouples rules, transports,
diagnostics, and exporters in 100% Python Standard Library (PSL ONLY).
Dual-Mode Design & Topology¶
- Standalone Scripts:
audit_cis_*.pyembed fallback rules and inline SVG helpers. - Core Delegation: Checkouts delegate scoring, conditions, and exports to
cis_core_engine.py. - 4-Tier Transports:
execution_drivers.pyroutesLocalExecutor,DockerExecutor,SSHExecutor, andRemoteSSHContainerExecutor. - Telemetry & Dry-Run:
CommandFailureClassifierisolates env errors.sarif_exporter.pyemits SARIF v2.1.0.remediation_generator.pyforcesdry_run=True.
flowchart LR
CLI["audit_cis.py"] --> CORE["cis_core_engine.py"]
CORE --> DRV["execution_drivers.py"]
DRV --> TGT["Local / Docker / SSH"]
TGT --> DIAG["audit_diagnostics.py"]
DIAG --> EXP["SVG HTML / JSON / SARIF"]
Credential & Scoring Boundaries¶
CIS_DB_PASSWORD,MYSQL_PWD, andPGPASSWORDinject via env (never argv).SecretSanitizerscrubs logs.SSHExecutorrejectsControlMasterfor Windows safety and concurrency isolation.calculate_scoresexcludesManual,Not Applicable, andErrorfrom \(\text{Attempted} = \text{Pass} + \text{Fail}\).