Skip to content

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_*.py embed fallback rules and inline SVG helpers.
  • Core Delegation: Checkouts delegate scoring, conditions, and exports to cis_core_engine.py.
  • 4-Tier Transports: execution_drivers.py routes LocalExecutor, DockerExecutor, SSHExecutor, and RemoteSSHContainerExecutor.
  • Telemetry & Dry-Run: CommandFailureClassifier isolates env errors. sarif_exporter.py emits SARIF v2.1.0. remediation_generator.py forces dry_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, and PGPASSWORD inject via env (never argv). SecretSanitizer scrubs logs.
  • SSHExecutor rejects ControlMaster for Windows safety and concurrency isolation.
  • calculate_scores excludes Manual, Not Applicable, and Error from \(\text{Attempted} = \text{Pass} + \text{Fail}\).