Skip to content

๐Ÿ—บ๏ธ CIS Benchmarks Tools - Strategic Roadmap & Backlog (v2.11.0)

This document outlines the strategic roadmap, architecture principles, phase-level milestones, and task-level execution status for the CIS Benchmarks Tools suite.


๐Ÿ”’ Governance & Core Standards

Note

All development, git release lifecycles, PR size limits (< 15K diff chars), and Python Standard Library (PSL ONLY) enforcement rules strictly follow workspace governance defined in .agents/AGENTS.md.


๐Ÿ“Š Executive Progress Dashboard (Phase Level)

Phase Milestone Title Target Version Status Tasks Progress
Phase 1 Consolidation & Baseline Standardization v1.0.0 Completed โœ… 5/5 100%
Phase 2 Unified Audit Engine & PSL Modularization v1.2.5 Completed โœ… 13/13 100%
Phase 3 Linux System Extensions, Multi-Language & Security v1.5.0 Completed โœ… 5/5 100%
Phase 4 Multi-Format Exporters, E2E Testing & CI/CD Pipeline v1.6.0 Completed โœ… 7/7 100%
Phase 5 Rule Spec Externalization & Offline SVG Charts Engine v1.7.0 Completed โœ… 5/5 100%
Phase 6 PR Diff Size Limits & Centralized HTML Templates v1.8.0 Completed โœ… 4/4 100%
Phase 7 Dual Local/SSH Modes & Database Connection Parameters v1.9.0 Completed โœ… 5/5 100%
Phase 8 Advanced Formatting, Rule Exclusions & Visual UI Validation v2.0.0 Completed โœ… 7/7 100%
Phase 9 Verification Commands & Remediation Procedures in Reports v2.1.0 Completed โœ… 4/4 100%
Phase 10 MariaDB Zero-Error Engine, Docker Auto-Routing & Manual Automation v2.2.0 Completed โœ… 5/5 100%
Phase 11 Universal Product Hardening, Docker Auto-Routing & Info Maximization v2.3.0 Completed โœ… 6/6 100%
Phase 12 Strict Git Traceability, Sourcery AI Reviews & Industrial Quality v2.3.0 Completed โœ… 5/5 100%
Phase 13 Universal Credential Injection, Multi-Distro Packages & Rule 1.5 Sync v2.4.0 Completed โœ… 5/5 100%
Phase 14 100% Deterministic Rule Automation & Expanded Test Suite Coverage v2.4.1 Completed โœ… 6/6 100%
Phase 15 Error Masking Elimination (2>/dev/null) & Engine Resilience v2.4.2 Completed โœ… 6/6 100%
Phase 16 Authentic CIS Spec Rule Sync & Zero Command Errors Guarantee v2.5.0 Completed โœ… 6/6 100%
Phase 17 Automated E2E Text Export Generation, Parsing & Real-Time Analysis v2.6.0 Completed โœ… 6/6 100%
Phase 18 Dedicated Docker Audit Execution & MySQL 8.0 Full Automation v2.6.2 Completed โœ… 4/4 100%
Phase 19 Context-Separated Execution & Systematic Audit Logging v2.6.3 Completed โœ… 4/4 100%
Phase 20 History Check Clean Exit & Resilient Empty Path_Command Handling v2.6.4 Completed โœ… 4/4 100%
Phase 21 Dockerfile Non-Interactive Shell Hardening & Makefile Sync v2.6.5 Completed โœ… 4/4 100%
Phase 22 PostgreSQL, MongoDB & Cassandra Testing Hardening v2.6.6 Completed โœ… 4/4 100%
Phase 23 PostgreSQL Command Safety & 100% E2E Multi-Format Compliance v2.6.7 Completed โœ… 4/4 100%
Phase 24 Unified Execution Drivers & Multi-Criteria Runtime Detection v2.6.8 Completed โœ… 4/4 100%
Phase 25 Multi-Product Audit Orchestrator, RCA Diagnostics & Reporting v2.6.9 Completed โœ… 5/5 100%
Phase 26 In-Container Docker Transport Driver & E2E Audit Execution Engine v2.7.0 Completed โœ… 4/4 100%
Phase 27 Dynamic Real-Time Timestamping, Post-Execution Publishing & MariaDB v2.8.0 Completed โœ… 4/4 100%
Phase 28 English Governance (ACTION_LOGBOOK & RCA_REGISTER) & CI/CD v2.8.1 Completed โœ… 4/4 100%
Phase 29 Commit Testing CI, PyPI Distribution Pipeline & Stable Release v2.9.1 Completed โœ… 4/4 100%
Phase 30 Ponytail Audit Remediations & Shared Core Engine Foundation v2.9.1 Completed โœ… 14/14 100%
Phase 31 Enterprise Hardening, Core Engine Delegation & v2.10.0 Release v2.10.0 Completed โœ… 7/7 100%
Phase 32 Native PSL MCP Server, 6 Agent Skills & Bilingual Portal v2.11.0 v2.11.0 Completed โœ… 3/3 100%

๐Ÿ“… Detailed Milestones & Task Execution Status

Phase 1: Consolidation & Baseline Standardization (Completed โœ… - v1.0.0)

Summary: Establish initial database audit coverage across 15 database benchmarks with standardized Docker testing environments and HTML reports.

1.1 Multi-Database Audit Scripts & Docker Environments

  • 15 Database Benchmarks Coverage: Implement standalone audit scripts for MariaDB (10.6/10.11), MySQL (8.0/8.4/9.7), PostgreSQL (16/17/18), MongoDB (7/8), and Cassandra (4.0/4.1/5.0).
  • Standardized Testing Containers: Create Dockerfiles and startup scripts (docker/Dockerfile_*, scripts/start_*.sh) for isolated local container verification.
  • Unified Testing Interface: Build Makefile orchestration targets (make test-all, make test-<target>) for single-command E2E execution.
  • Initial Audit Reports Suite: Generate and commit baseline HTML audit reports in reports/.
  • Reference Specification Storage: Integrate 22 reference Markdown benchmark specifications into CIS_DATA/.

Phase 2: Unified Audit Engine, PSL Modularization & Directory Structure (Completed โœ… - v1.2.5)

Summary: Consolidate individual audit scripts into a single unified CLI engine (audit_cis.py), automated pre-commit quality checks, and clean repository layout.

2.1 Unified Audit CLI & Programmatic API

  • Centralized CLI Execution: Build audit_cis.py with CLI flags (--target, --all, --auto-detect, --list-targets, --version).
  • Native Python API Interface: Expose run_single_audit(), list_targets(), get_target_info(), and TARGET_MAP for external Python imports.
  • Synthetic Statistics Engine: Compute global compliance scores across 887 audit controls across 18 targets.
  • Dynamic Directory Manager: Automatically create output directories for HTML and JSON reports.
  • 100% PSL Compliance: Guarantee zero external pip package dependencies (pip free).

2.2 Pre-Commit Quality & Validation Routine

  • Automated Script Bundler: Build scripts/bundle_audit_cis.py to auto-concatenate audit_cis.py on version changes.
  • Python Syntax Checker: Validate compilation (py_compile) for all project scripts.
  • AST PSL Import Sentinel: Verify AST nodes to block non-standard library imports.
  • Shell Syntax Checker: Validate syntax (bash -n) for all shell scripts.
  • Directory & File Integrity Verifier: Validate presence and non-empty size (>1 KB) of reports/, docker/, scripts/, CIS_DATA/, and rules/.
  • Executable Permissions Sentinel: Verify executable bit (chmod +x) on CLI scripts.

2.3 Structured Directory Layout

  • Dedicated Reports Directory: Group all HTML/JSON audit output files in reports/.
  • Dedicated Docker Directory: Group all 16 container build files in docker/.

Phase 3: Linux System Extensions, Multi-Language & Security (Completed โœ… - v1.5.0)

Summary: Extend audit capabilities to RHEL Linux operating systems, implement bilingual (i18n) report generation, and fix command injection vulnerabilities.

3.1 Linux Operating System Audit Modules

  • RHEL 8 / 9 / 10 Benchmark Engines: Implement audit_cis_rhel_8.py, audit_cis_rhel_9.py, and audit_cis_rhel_10.py.
  • SSH Remote Server Auditing: Support native --mode {local,ssh} and --remote user@hostname execution over SSH.

3.2 Multi-Language (i18n) Support

  • Bilingual Report Generator: Support --lang {en,fr} for CLI output and HTML audit reports.
  • Synchronized Documentation: Maintain 1:1 parity between README.md (English) and README_fr.md (French).

3.3 Subprocess Security Hardening

  • Command Injection Mitigation: Migrate all subprocess execution calls to strict parameter lists (shell=False).

Phase 4: Multi-Format Exporters, E2E Testing & CI/CD Pipeline (Completed โœ… - v1.6.0)

Summary: Add structured export formats (JSON, STIG JUnit XML, TXT), automated unit tests, and GitHub Actions CI/CD.

4.1 Multi-Format Exporters

  • Structured JSON Exporters: Export full audit metadata and control results to machine-readable JSON.
  • STIG / JUnit XML Exporters: Export STIG/JUnit XML format for enterprise SIEM/CI integration.
  • Plain-Text Summary Exporters: Generate CLI text audit summaries.
  • Responsive HTML Reports: Generate self-contained HTML reports.

4.2 Automated Testing & CI Pipeline

  • GitHub Actions Workflow: Implement .github/workflows/ci.yml for automated PR checking.
  • PSL Unit Test Suite: Build tests/test_evaluate_condition.py (14 unit tests).
  • E2E Test Runner: Build scripts/run_e2e_tests.py (make test-e2e).

Phase 5: Rule Spec Externalization & Offline SVG Charts Engine (Completed โœ… - v1.7.0)

Summary: Externalize audit recommendations into JSON files in rules/ and replace external JS chart libraries with 100% pure inline SVG PSL charts.

5.1 External Rule Specs Directory

  • JSON Specification Externalization: Extract RECOMMENDATIONS_DATA into 18 JSON files (rules/mariadb_106.json, etc.).
  • Dynamic Spec Loader: Implement load_recommendations() with embedded inline fallback.

5.2 Pure Inline SVG Chart Engine

  • Pure SVG Donut Chart: Build build_inline_svg_donut_chart() in Python PSL (zero JS).
  • Pure SVG Category Bar Chart: Build build_inline_svg_category_chart() in Python PSL.
  • 100% Offline Compatibility: Work 100% offline without CDN dependencies (Chart.js removed).

Phase 6: PR Diff Size Limit & Centralized HTML Templates (Completed โœ… - v1.8.0)

Summary: Enforce PR diff character limits (<15K chars) to avoid review bot blocking and centralize HTML report templates into common files.

6.1 PR Diff Character Size Limits (< 15,000 chars)

  • PR Size Limit Enforcement: Mandate strict 15,000 diff character limit per PR and atomic PR splitting in .agents/AGENTS.md & 03_execution_rules.md.
  • Pre-PR Character Verification: Automate diff size verification via git diff main...HEAD | wc -c < 15000.

6.2 Centralized HTML Report Templates

  • Common Template Files: Centralize HTML templates in templates/report_template.html and templates/category_report_template.html.
  • Dynamic Template Loaders: Implement load_html_template() with PSL inline fallbacks across all 18 audit scripts and audit_cis.py.

Phase 7: Dual Local/SSH Modes & Database Connection Parameters (Completed โœ… - v1.9.0)

Summary: Standardize Local & SSH Remote execution parameters (--mode, --remote, --ssh-port, --ssh-key, --sudo) and database connection options (--db-host, --db-port, --db-user, --db-password) across all audit scripts, and validate both modes in the E2E test runner.

7.1 Local & SSH Mode CLI Standardisation

  • SSH Connection Parameters: Standardize --mode {local,ssh}, --remote / --ssh, --ssh-port, --ssh-key, and --sudo across all 18 audit scripts.
  • Database Connection Options: Add --db-host / --host, --db-port / --port, --db-user / --user, and --db-password / --password CLI arguments to all audit scripts.
  • CLI Option Propagation: Update audit_cis.py to forward database and SSH options to targeted audit modules.

7.2 E2E Dual-Mode Testing Suite

  • Dual Mode E2E Test Runner: Update scripts/run_e2e_tests.py to execute and validate report generation for BOTH Local Mode and SSH Remote Mode.
  • 100% PSL Compliance: Guarantee OpenSSH command execution (ssh -o BatchMode=yes) using standard Python subprocess (zero pip packages).

Phase 8: Advanced Formatting, Rule Exclusions & Visual UI Validation (Completed โœ… - v2.0.0)

Summary: Enhance text report outputs, add thematic security metrics, upgrade HTML templates, sanitize rule commands, expand check automation, support rule exclusions, and automate visual UI browser testing.

8.1 Plain-Text Reporting & Thematic Metrics

  • 1ยฐ Enhanced Plain-Text ASCII Summary Tables: Upgrade --format txt output to generate formatted ASCII summary tables with category scores, PASS/FAIL ratios, and clear alignment.
  • 2ยฐ Thematic Security Domain Metrics: Group compliance metrics by security domain (Authentication, Access Control, Network Isolation, TLS/Encryption, Logging & Auditing).

8.2 HTML Template Polish & Rule Exclusion Engine

  • 3ยฐ Aesthetic & Functional HTML Template Upgrade: Enhance templates/report_template.html with modern UI, responsive alignment, dark mode toggle, visual icons, and zero layout overflow.
  • 6ยฐ Rule Exclusion Engine (--exclude-rules / --skip-rule): Implement CLI flags and JSON config support to skip or exclude specific control IDs or categories during audits.

8.3 Command Verification, Automation Expansion & Visual Browser Testing

  • 4ยฐ Rule Command Validation & Execution Safety: Enhance rules/*.json specifications to validate test procedure shell syntax and enforce command execution safety.
  • 5ยฐ Check Automation Expansion (Minimize Manual Checks): Convert legacy Manual inspection items into automated database queries and system command verifications.
  • 7ยฐ Automated Headless Browser Visual UI Validation: Integrate automated browser testing (headless Chromium visual QA) in E2E tests to detect layout regressions (no text overflow, no misaligned tables, no missing icons).

8.4 E2E Test Failures Remediation & Container Hardening (Completed โœ… - v2.0.0)

  • E2E Audit Reports Analysis & Failure Registry: Generated reports/analyse_tests_e2e.md detailing all FAIL, ERROR, and MANUAL controls across 19 benchmark targets.
  • Container Hardening & Startup Script Proposals: Formulated remediation_proposal.md to update Dockerfiles, startup scripts (scripts/start_*.sh), and container-aware audit check logic.
  • Dedicated Local vs SSH Remote Mode E2E Reports: Created reports/analyse_tests_e2e_local.md and reports/analyse_tests_e2e_ssh.md for mode-specific compliance analysis.

Phase 9: Verification Commands & Remediation Procedures in Reports (Completed โœ… - v2.1.0)

Summary: Systematically include audit verification commands (test_procedure / audit) and remediation procedures (remediation) across all output formats (HTML, TXT, JSON, XML) and CLI reports for all 18 benchmark products.

9.1 Multi-Format Exporters & Report Enhancements

  • Multi-Format Test Command Output: Render audit verification commands (test_procedure / audit) across TXT, XML, JSON, and HTML reports.
  • Unrestricted Remediation Procedures: Render remediation instructions (remediation) for all controls across TXT, XML, JSON, and HTML report formats regardless of compliance status.
  • RHEL Report Parity: Update RHEL 8, 9, and 10 HTML report templates and check result dictionaries with Commande de test and Procรฉdure de remรฉdiation columns.
  • Automated Engine & Reports Regeneration: Update audit_cis.py engine bundler and regenerate report outputs across all 18 targets.

Phase 10: MariaDB Zero-Error Engine, Docker Auto-Routing & Manual Automation (Completed โœ… - v2.2.0)

Summary: Fix all syntax, command, and client errors in MariaDB audit scripts, implement automated Docker container detection and routing, and maximize automated information extraction for manual checks.

10.1 MariaDB Command & SQL Fixes

  • Dual Client Compatibility (mariadb / mysql): Support both binary clients with automatic fallback.
  • Dynamic Path Resolution: Resolve dynamic datadir and plugin directory paths via multi-command fallback chains.
  • Single-Line Multi-Statement Handling: Format SQL queries to avoid syntax errors in non-interactive batch mode.

10.2 Docker Auto-Routing Engine

  • Automatic Container Detection: Auto-detect running database containers (cis_mariadb_106, cis_mariadb_1011, etc.) when executing audits in local mode.
  • Transparent docker exec Execution: Route host commands into target containers seamlessly without requiring manual --docker CLI arguments.

10.3 Manual Checks Maximization & Automation

  • Helper Command Ingestion: Run OS and DB commands on manual review items to gather diagnostic data automatically for the auditor.
  • Guidance Panel in Reports: Display dedicated manual validation guides with step-by-step checklists in HTML reports.

Phase 11: Universal Product Hardening, Docker Auto-Routing & Info Maximization (Completed โœ… - v2.3.0)

Summary: Propagate MariaDB engine enhancements, zero-error handling, and transparent container routing across all remaining target engines (MySQL, PostgreSQL, MongoDB, Cassandra).

11.1 MySQL Suite Hardening (8.0, Community 8.4/9.7, Enterprise 8.4/9.7)

  • MySQL Auto-Routing & Client Detection: Implement automated container detection and socket error resilience.
  • Command Precedence: Ensure technical errors (ERROR 1045, ERROR 2002, 127) are explicitly distinguished from security non-compliances.

11.2 PostgreSQL Suite Hardening (16, 17, 18)

  • PostgreSQL Socket & psql Execution: Automate container-routed psql execution with postgres user credentials.
  • Manual Privileges Inspection: Convert manual role/RLS inspection items into diagnostic queries.

11.3 NoSQL Suite Hardening (MongoDB 7/8 & Cassandra 4.0/4.1/5.0)

  • MongoDB mongosh Routing: Auto-detect MongoDB containers and route JavaScript evaluation commands.
  • Cassandra cqlsh Routing: Auto-detect Cassandra containers and route CQL queries.

Phase 12: Strict Git Traceability, Sourcery AI Reviews & Industrial Quality (Completed โœ… - v2.3.0)

Summary: Integrate automated Sourcery AI code reviews, formalize the multi-step PR lifecycle, sanitize command specifications, preserve unmasked stderr telemetry, and establish complete separation across the 4 execution contexts.

12.1 Git Lifecycle & Mandatory Issue-PR Rule (Validated PR #110, #112)

  • Strict 6-Step Lifecycle: Issue (gh issue create) -> Dedicated Branch (git checkout -b) -> Atomic PR < 15K diff (gh pr create) -> Merge (gh pr merge) -> Comment & Issue Closure (gh issue comment/close) -> Local synchronization.
  • GitHub Lifecycle Automation: Built PSL automation script for issue opening, merging, and closing via GitHub REST API (PR #110).
  • Team Governance in .agents/AGENTS.md: Formalized rules for maximum PR diff size (< 15,000 characters) and 100% Python Standard Library (PSL ONLY) architecture (PR #112).

12.2 Diagnostic Telemetry & Unmasked stderr Preservation (Validated PR #128)

  • Systematic Elimination of 2>/dev/null: Cleaned all 18 rules/*.json specification files to eliminate system error masking and allow transparent exit code inspection.
  • Non-Blocking Subprocess Execution: Used stdin=subprocess.DEVNULL at the Python level to prevent interactive hangs without suppressing raw error output.

12.3 4 Execution Contexts Classification & 5-State Taxonomy (Validated PR #114, #116, #118, #120)

  • detect_execution_context() Engine: Formalized 4 contexts (LOCAL_BAREMETAL, LOCAL_DOCKER, REMOTE_SSH_BAREMETAL, REMOTE_SSH_DOCKER) with dedicated test suite tests/test_execution_context.py (PR #116).
  • 5-State Compliance Taxonomy: Formal distinction between Pass (Compliant), Fail (Non-compliant), Error (Technical execution failure), Manual (Procedural review), and Not Applicable (PR #114, #118).
  • 5-Card HTML Dashboard: Added Technical Execution Errors metric card (border-l-orange-500) and bound error_count variable in SafeDict (PR #120).

12.4 JSON Specifications Sanitization & Engine Guard (Validated PR #122, #124, #126)

  • Execution Guard is_valid_executable_command(): Dynamic validation preventing unintended shell execution of descriptive natural language text (PR #124).
  • Elimination of Bash Syntax Errors: Removed unescaped apostrophes and text causing unexpected EOF in manual controls (PR #124).
  • Header Harmonization & Duplicate Removal: Cleaned report titles, contextualized status badges with FontAwesome icons, and purged duplicate versions (PR #122).
  • RHEL Datetime Import Alignment: Standardized datetime imports across RHEL 8, 9, 10 (PR #126).

12.5 Sourcery AI Code Reviews & Quality Enhancements (Validated PR #70-#132)

  • Subprocess Security Hardening (PR #80, #84, #90): Eliminated shell=True in favor of typed argument lists and hardened Docker/SSH invocations.
  • Internationalization (i18n) & Documentation (PR #92, #94, #96): Complete English translation with French mirror README_fr.md and --lang {en,fr} support.
  • Modular Architecture & Native SVG Charts (PR #103, #105, #108): Externalized JSON rules and 100% offline vector chart generation without Chart.js.
  • Continuous Test Suite Validation: 60/60 unit tests passing successfully using Python Standard Library only (PR #131, #132).

Phase 13: Universal Credential Injection, Multi-Distro Packages & Rule 1.5 Sync (Completed โœ… - v2.4.0)

Summary: Normalize command-line parameter options, inject database credentials into runtime environments, adapt package query commands across Linux distributions (apt, dnf/yum, apk), and standardize executable version checks for Rule 1.5.

13.1 CLI Standardization & Database Credential Injection (PR #144, #146, #152)

  • Normalized CLI Parameters: Unify --db-user, --db-password, --db-host, --db-port, and --db-name across all 18 database target engines.
  • Target Engine Environment Injection: Map credentials directly to native database client variables (MYSQL_PWD, PGPASSWORD, CQLSH_HOST, etc.) in run_command and Docker execution.
  • Unified CLI Parsing: Support both short (-u, -p, -H, -P, -d) and long option flags uniformly.

13.2 Multi-Distribution Package Detection & Remediation (PR #148, #156)

  • Cross-Distro Package Inquiries: Reconcile Rule 1.2 package verification for Debian (dpkg), RHEL/Fedora (rpm), and Alpine (apk).
  • Executable Rule 1.5 Version Check: Standardize SQL-based SHOW server_version queries replacing natural language.
  • Distribution-Agnostic Remediation Guidance: Recommend appropriate package management commands in audit reports (apt purge, dnf erase, apk del).

Phase 14: 100% Deterministic Rule Automation & Expanded Test Suite Coverage (Completed โœ… - v2.4.1)

Summary: Convert all remaining manual controls across all database benchmark rule files into deterministic automated controls, sanitize NoneType stderr evaluation and truthy path handling, and expand automated test suite to 70 tests.

14.1 Complete Rule Automation Across All Targets (PR #168-#196)

  • Cassandra 4.0, 4.1 & 5.0 Automation (PR #168, #170): 100% automated controls with deterministic CQL queries.
  • MongoDB 7 & 8 Automation (PR #172, #174): 100% automated controls with deterministic mongosh queries.
  • MariaDB 10.6 & 10.11 Automation (PR #176, #178): 100% automated controls with deterministic SQL queries.
  • PostgreSQL 16, 17 & 18 Automation (PR #180, #182, #184, #186, #188, #190): 100% automated controls across all categories.
  • MySQL 8.0, 8.4 & 9.7 Automation (PR #192, #194, #196): 100% automated controls with zero command errors.

14.2 Engine Resilience & Test Suite Expansion (PR #158, #198-#218)

  • NoneType-Safe Evaluation: Guard evaluate_condition against None values for stdout and stderr.
  • Truthy Path Command Handling: Replace "path_command" in rec with rec.get("path_command") to eliminate NoneType iterable errors.
  • Expanded Test Suite (PR #158): 70 unit and E2E tests covering credential injection, package queries, rule syntax, AST PSL conformity, and Docker audits.
  • Zero Command Error Guarantee: 0 command errors (Status Error: 0) and 0 manual controls across all 18 targets in Docker mode.

Phase 15: Error Masking Elimination (2>/dev/null), POSIX Conditions & Multi-Engine Resilience (Completed โœ… - v2.4.2)

Summary: Completely eliminate the 2>/dev/null anti-pattern across all 18 rule JSON specifications and Python engine audit scripts, replacing silent error suppression with robust POSIX conditionals (test -f, test -d, for loops) and transparent exit-code/stderr diagnostics.

15.1 Rule Specification Sanitization (PR #224-#244)

  • MySQL & MariaDB Rule Sanitization (PR #224, #226, #232, #234, #236): Replace 2>/dev/null error-masking with explicit file/directory conditional checks across MySQL 8.0, 8.4, 9.7 and MariaDB 10.6, 10.11.
  • PostgreSQL, MongoDB & Cassandra Rule Sanitization (PR #228, #238, #240, #242): Replace 2>/dev/null with POSIX conditionals across PostgreSQL 16/17/18, MongoDB 7/8, and Cassandra 4.0/4.1/5.0.
  • RHEL OS Rule Sanitization (PR #244): Eliminate 2>/dev/null across RHEL 8, 9, and 10 benchmarks.

15.2 Audit Engine Refactoring & E2E Validation (PR #230, #246-#274)

  • MySQL & MariaDB Engine Refactoring (PR #246, #248, #250, #252, #254, #256, #258, #260, #262, #264, #266): Remove 2>/dev/null and deduplicate context detection in MySQL and MariaDB engines.
  • PostgreSQL, MongoDB, Cassandra & RHEL Engine Refactoring (PR #268, #270, #272, #274): Remove 2>/dev/null error suppression across all database and OS audit scripts.
  • Continuous Zero-Error Verification (PR #230): Automated test asserting 0 manual and 0 error controls across all 18 targets with 71 passing tests.

Phase 16: Authentic CIS Benchmark Specification Synchronization & Zero Command Errors Guarantee (Completed โœ… - v2.5.0)

Summary: Perform a 100% complete synchronization of all 18 benchmark JSON rule files with the authentic CIS markdown specifications in CIS_DATA/. Restores the exact distribution of 564 Automated and 323 Manual controls across 887 total rules, with guaranteed 0 command errors (Status: Error == 0) across all targets in Docker execution mode.

16.1 MySQL Benchmark Rules Synchronization (PR #278, #280, #282, #284, #286, #288, #290, #292, #294)

  • MySQL 8.0 CIS Rules Sync (PR #278, #280): Synchronize rules/mysql_80.json with authentic CIS v1.5.0 spec (45 Automated, 25 Manual).
  • MySQL Community 8.4 CIS Rules Sync (PR #282, #284): Synchronize rules/mysql_community_84.json with authentic CIS v1.1.0 spec (48 Automated, 31 Manual).
  • MySQL Enterprise 8.4 CIS Rules Sync (PR #286, #288): Synchronize rules/mysql_enterprise_84.json with authentic CIS v1.1.0 spec (44 Automated, 26 Manual).
  • MySQL Community 9.7 CIS Rules Sync (PR #290): Synchronize rules/mysql_community_97.json with authentic CIS v1.0.0 spec (45 Automated, 25 Manual).
  • MySQL Enterprise 9.7 CIS Rules Sync (PR #292, #294): Synchronize rules/mysql_enterprise_97.json with authentic CIS v1.0.0 spec (44 Automated, 26 Manual).

16.2 MariaDB, PostgreSQL, MongoDB & Cassandra Rules Synchronization (PR #296-#320)

  • MariaDB 10.6 & 10.11 CIS Rules Sync (PR #296, #298, #300, #302): Synchronize rules/mariadb_106.json (45 Auto, 29 Manual) and rules/mariadb_1011.json (45 Auto, 30 Manual).
  • PostgreSQL 16, 17 & 18 CIS Rules Sync (PR #304, #306, #308, #310, #312, #314): Synchronize rules/postgresql_16.json (42 Auto, 29 Manual), rules/postgresql_17.json (43 Auto, 28 Manual), and rules/postgresql_18.json (43 Auto, 28 Manual).
  • MongoDB 7 & 8 CIS Rules Sync (PR #316): Synchronize rules/mongodb_7.json and rules/mongodb_8.json (12 Auto, 11 Manual each).
  • Cassandra 4.0, 4.1 & 5.0 CIS Rules Sync (PR #318, #320): Synchronize rules/cassandra_40.json, rules/cassandra_41.json, rules/cassandra_50.json (12 Auto, 8 Manual each).

16.3 Test Suite & Quality Assurance (PR #322)

  • Zero Command Error & CIS Distribution Verification (PR #322): Update test_zero_command_errors_and_automation.py and test_mariadb_audit_engine.py to validate exact authentic CIS manual counts per target and assert 0 command errors.
  • Unified Audit Bundling & Release v2.5.0 (PR #324): Re-bundle audit_cis.py (v2.5.0) and run full pre-commit validation.

Phase 17: Automated E2E Text Export Generation, Parsing & Real-Time Error Analysis (Completed โœ… - v2.6.0)

Summary: Harmonize .txt text exporters across all 18 benchmark audit engines to include clean ASCII summary tables, formatted control blocks, and structured headers. Add automated text report parsing and real-time execution error detection on every E2E execution, guaranteeing continuous zero command execution errors (Error == 0).

17.1 Text Exporters Harmonization Across 18 Audit Engines (PR #326, #328, #330, #332, #334, #336)

  • MySQL Text Exporters (PR #326, #328): Harmonize text format exporter with ASCII summary tables across MySQL 8.0, Community 8.4, Enterprise 8.4, Community 9.7, Enterprise 9.7.
  • MariaDB & PostgreSQL Text Exporters (PR #328, #330, #332): Harmonize text format exporter with ASCII summary tables across MariaDB 10.6, 10.11 and PostgreSQL 16, 17, 18.
  • MongoDB, Cassandra & RHEL Text Exporters (PR #332, #334, #336): Harmonize text format exporter with ASCII summary tables across MongoDB 7, 8, Cassandra 4.0, 4.1, 5.0, and RHEL 8, 9, 10.

17.2 Automated E2E Text Export Test Suite (PR #338)

  • E2E Text Export Parsing & Verification Suite (PR #338): Implement tests/test_e2e_text_export_analysis.py validating that every audit engine generates valid .txt exports with header metrics, ASCII summary tables, 0 command errors, and authentic CIS manual distribution.
  • Docker Integration Testing (PR #338): Add text format forwarding tests and live Docker execution tests in tests/test_e2e_docker_audits.py.

17.3 E2E Test Runner & Real-Time Analysis Engine (PR #340, #342)

  • Real-time Error Detection in E2E Runner (PR #340): Enhance scripts/run_e2e_tests.py with immediate text export parsing and zero-error verification upon report generation.
  • Dynamic Versioning & Helper Scripts (PR #340): Update scripts/analyze_e2e_reports.py to dynamically load repository version from VERSION and add scripts/enhance_txt_exporters.py.
  • Release v2.6.0 Finalization (PR #342): Bundle unified audit_cis.py (v2.6.0), synchronize documentation and release.

Phase 18: Dedicated Docker Audit Execution & MySQL 8.0 Full Automation (Completed โœ… - v2.6.2)

Summary: Enhance MySQL 8.0 CIS audit execution when targeting Docker containers or local environments. Accurately detect execution context (Local Docker (mysql80-test)), forward database connection parameters (db_user, db_password, etc.) into all run_command invocations, harden MYSQL_CMD for container environments, clean dummy manual echoes in rules/mysql_80.json, and eliminate command execution errors.

18.1 Rule Spec Sanitization & Minimal Environment Hardening (PR #344)

  • Rule Spec Sanitization (PR #344): Clean dummy echo 'Contrรดle Manuel' entries in rules/mysql_80.json (10 controls cleaned).
  • Crontab Fallback Hardening (PR #344): Harden Rule 2.1.1 test procedure to check /etc/crontab and ps -ef gracefully when crontab binary is missing in minimal Docker containers (Part 1 of #343).

18.2 Docker Execution Context & Database Parameter Routing (PR #345)

  • Execution Context Detection & Reporting (PR #345): Call detect_execution_context() in main() and propagate context label (Local Docker (mysql80-test)) to HTML/JSON/XML report metadata.
  • Database Parameter Forwarding (PR #345): Propagate db_user, db_password, db_host, db_port, db_name, defaults_file, and auth_db into all run_command(...) invocations within perform_checks().
  • Client Command Resilience & Fallbacks (PR #345): Harden MYSQL_CMD with --defaults-extra-file=/root/.my.cnf and root container credentials fallback (closes #343).

Phase 19: Context-Separated Execution & Systematic Audit Logging (Completed โœ… - v2.6.3)

Summary: Separate command execution into 3 distinct contexts (Local/SSH/Docker) with dedicated command sets per rule, and add a systematic logging system that generates a .log companion file alongside each audit report.

19.1 Context-Aware Command Selection Engine (PR #347)

  • get_context_command() function (PR #347): Selects test_procedure_docker / test_procedure_ssh / test_procedure based on execution context type (LOCAL_DOCKER, REMOTE_SSH_BAREMETAL, etc.).
  • perform_checks() context integration (PR #347): Updated to accept exec_context parameter and resolve pre_condition, path_command, test_procedure_template, and test_procedure through context-aware lookup.

19.2 Docker-Specific OS Command Variants (PR #348)

  • OS command Docker variants (PR #348): Added test_procedure_docker for rules 1.4 and 1.7 (systemctl โ†’ ps, /proc/*/environ โ†’ env). MySQL client swaps not needed since run_command() handles docker exec wrapping.

19.3 Systematic Audit Logging (PR #350)

  • PSL logging module (PR #350): setup_audit_logger() with FileHandler (DEBUG) + StreamHandler (INFO/DEBUG), credential masking via _sanitize_log_cmd().
  • run_command() instrumentation (PR #350): Logs every command (sanitized), stdout, stderr, return code, and execution duration.
  • perform_checks() instrumentation (PR #350): WARNING for manual controls, ERROR for failures, DEBUG for pass/fail results.
  • CLI --verbose/-v flag (PR #350): Enables DEBUG level on console for real-time command details (closes #349).

Phase 20: History Check Clean Exit & Resilient Empty Path_Command Handling (Completed โœ… - v2.6.4)

Summary: Eliminate false negative failures on command history checks (.mysql_history, .psql_history) by ensuring loop procedures exit cleanly with status code 0, and prevent false positive execution errors when database path commands return empty output with returncode 0.

20.1 Command History Loop Resilience (PR #353)

  • History Command Loop Exit Code (PR #353): Appended ; true to history check loop procedures across all MariaDB (10.6/10.11), MySQL (8.0/8.4/9.7), and PostgreSQL (16/17/18) rule specification files.
  • Expected Output Validation (PR #353): Confirmed that clean empty output evaluates to Pass when no history file exists and Fail when history files are detected.

20.2 Resilient Empty Path_Command Handling (PR #353)

  • perform_checks() Path Returncode Logic (PR #353): Updated perform_checks() across all database audit engines to cleanly evaluate empty output with returncode 0 as Not Applicable instead of raising an execution Error.
  • Audit Engine Unit Testing (PR #353): Added dedicated unit tests in tests/test_mariadb_audit_engine.py validating empty path_command handling and history rule syntax (closes #352).

Phase 21: Dockerfile Non-Interactive Shell Hardening & Makefile Sync (Completed โœ… - v2.6.5)

Summary: Harden system service account shells (mysql) in Docker testing containers to satisfy CIS Rule 1.5, and synchronize Makefile audit and report targets.

21.1 Non-Interactive Service Account Shells (PR #357)

  • Dockerfile Service Account Hardening (PR #357): Enforced usermod -s /sbin/nologin mysql across all MariaDB and MySQL Dockerfiles.
  • Startup Script Shell Hardening (PR #357): Added usermod -s /sbin/nologin mysql to scripts/start_mariadb.sh and scripts/start_mysql.sh.

21.2 Makefile Audit Output Synchronization (PR #357)

  • Makefile Flag Alignment (PR #357): Updated all database audit targets in Makefile to pass -o /datas/$(REPORT) for automated report retrieval.
  • Unit Testing Validation (PR #357): Created tests/test_docker_hardening_and_service_shells.py validating Dockerfile and startup script configurations (closes #356).

Phase 22: PostgreSQL, MongoDB & Cassandra Testing Hardening (Completed โœ… - v2.6.6)

Summary: Harden startup scripts and configuration templates for PostgreSQL, MongoDB, and Cassandra to satisfy CIS requirements in testing containers.

22.1 Multi-Database Testing Configuration Hardening (PR #360)

  • PostgreSQL CIS Configuration (PR #360): Added log_error_verbosity = verbose, %t in log_line_prefix, SSL enablement, and psql history file disabling to scripts/start_postgresql.sh.
  • MongoDB Configuration Hardening (PR #360): Hardened /etc/mongod.conf with authorization: enabled, requireTLS, and auditLog configuration in scripts/start_mongodb.sh.
  • Cassandra Configuration Hardening (PR #360): Ensured system.log creation and PasswordAuthenticator/CassandraAuthorizer in scripts/start_cassandra.sh.
  • Unit Testing Suite Expansion (PR #360): Added tests/test_pg_mongo_cassandra_hardening.py to validate multi-database testing configuration integrity (closes #359).

Phase 23: PostgreSQL Command Safety & 100% E2E Multi-Format Compliance (Completed โœ… - v2.6.7)

Summary: Sanitize PostgreSQL rules and engines with proper psql wrappers, eliminate raw SQL execution errors in shell, and achieve 100% E2E test pass across all 15 targets in all 4 formats (HTML, JSON, XML, TXT).

23.1 PostgreSQL Rule and Engine Sanitization (PR #362)

  • PostgreSQL Rules Sanitization (PR #362): Sanitized rules/postgresql_16.json, 17.json, 18.json by wrapping all raw SELECT and SHOW commands in sudo -n -u postgres psql -t -c and removing trailing invalid shell expressions.
  • Audit Engine SQL Auto-Wrap Safety (PR #362): Enhanced perform_checks() in PostgreSQL audit engines to auto-wrap raw SQL queries and forward all connection/container parameters.
  • Command Safety Unit Tests (PR #362): Added tests/test_postgresql_command_safety.py validating that rule definitions contain no raw SQL or invalid trailing operators.
  • 100% E2E Multi-Format Pass (PR #362): Verified 15/15 target success across HTML, JSON, XML, and TXT report formats in automated runner (closes #361).

Phase 24: Unified Execution Drivers & Multi-Criteria Runtime Detection (Completed โœ… - v2.6.8)

Summary: Implement robust execution driver abstraction (LocalExecutor, DockerExecutor, SSHExecutor, RemoteSSHContainerExecutor) with multi-criteria heuristic runtime detector (RuntimeDetector), zero-credential secret scrubbing (SecretSanitizer), and rich execution metadata restitution in HTML, JSON, XML, and TXT reports.

24.1 Unified Polymorphic Execution Drivers & Heuristic Runtime Detection (PR #374)

  • Modular Execution Drivers (execution_drivers.py) (PR #374): Implemented BaseExecutor, LocalExecutor, DockerExecutor, SSHExecutor, and RemoteSSHContainerExecutor using 100% Python Standard Library (PSL ONLY).
  • Multi-Criteria Runtime Detector (RuntimeDetector) (PR #374): Built 6-probe inspection mechanism checking /.dockerenv, /run/.containerenv, /proc/1/cgroup (cgroups v1 and v2), /proc/self/mountinfo, environment variables, rootless status, and container sandbox root inodes.
  • Zero-Leak Secret Sanitizer (SecretSanitizer) (PR #374): Scrubber for passwords (-p, MYSQL_PWD, PGPASSWORD), tokens, and secret flags in execution logging and output.
  • Engine & HTML Report Restitution (PR #374): Integrated execution context cards into MariaDB 10.6 and MariaDB 10.11 engines and report templates, backed by 107 unit tests in test_execution_drivers.py, test_mariadb_audit_engine.py, and test_audit_cis_cli.py (closes #373).

Phase 25: Multi-Product Audit Orchestrator, RCA Diagnostics & Report Persistence (Completed โœ… - v2.6.9)

Summary: Implement autonomous multi-product audit orchestrator (AuditOrchestrator), Root Cause Analysis diagnostic engine (CommandFailureClassifier), environmental fault isolation, and unified report generation across all 18 database and OS targets in reports/.

25.1 Multi-Product Audit Orchestration & Pipeline

  • Universal Catalog Discovery (audit_orchestrator.py): Automatic discovery and polymorphic execution across all 18 canonical targets (MySQL 8.0/8.4/9.7, MariaDB 10.6/10.11, PostgreSQL 16/17/18, MongoDB 7/8, Cassandra 4.0/4.1/5.0, RHEL 8/9/10).
  • Non-Blocking Resilience & Parallel Worker Pool: Thread pool management (concurrent.futures), fault isolation guaranteeing continuous pipeline execution when individual targets encounter environment errors.
  • Execution Telemetry & Structured Logging: Per-target execution duration, start/end timestamps, compliance scores, and format persistence.

25.2 Root Cause Analysis (RCA) Diagnostic Engine

  • Command Failure Classifier (audit_diagnostics.py): Automatic categorization of failures across 8 standardized categories (MISSING_BINARY, PERMISSION_DENIED, AUTH_FAILURE, CONNECTION_ERROR, TIMEOUT, SYNTAX_ERROR, SECURITY_NON_COMPLIANCE, MANUAL_ASSESSMENT_REQUIRED).
  • Strict Distinction of Tooling vs Security Defects: Guarantees zero false positives and prevents technical execution errors from being falsely classified as compliant or non-compliant.
  • Multi-Format RCA Persistence (scripts/generate_rca_reports.py): Automatic generation of reports/analyse_diagnostique_rca.md, .json, and interactive HTML dashboard (analyse_diagnostique_rca.html).
  • Comprehensive Fault Injection Test Suite: 129 unit tests passing across tests/test_audit_diagnostics.py, tests/test_audit_orchestrator.py, and tests/test_audit_resilience_and_rca.py (closes #385).

Phase 26: In-Container Docker Transport Driver & E2E Audit Execution Engine (Completed โœ… - v2.7.0)

Summary: Implement high-fidelity in-container Docker transport driver (DockerContainerExecutor), dynamic container discovery and health inspection (docker_transport.py), in-container POSIX abstraction (in_container_inspector.py), and programmable E2E audit execution engine (docker_e2e_engine.py) guaranteeing zero-host command leakages.

26.1 Docker Transport Resolution & Dynamic Discovery

  • Docker Daemon Health Probing (DockerDaemonProbe): Validates Docker daemon status, version, driver, and container counts.
  • Dynamic Container Discovery (DockerContainerDiscovery): Discovers running and dormant containers by exact name, product hints, or image tags.
  • Deterministic Transport Routing (DockerTransportResolver): Container-first priority routing preventing unintended host bare-metal fallbacks.

26.2 High-Fidelity In-Container Execution & POSIX Inspection

  • Enhanced In-Container Driver (DockerContainerExecutor): Streamlined docker exec execution with TTY/no-TTY control, UID/GID non-root execution, working directory (-w), and error categorization.
  • In-Container POSIX & Data Accessor (InContainerInspector): Direct in-container file reading (read_file), POSIX metadata inspection (stat_path), network namespace listening port checks, and query evaluation without host volume mounts.
  • In-Container E2E Execution Engine (docker_e2e_engine.py): Complete in-container orchestration with artifact injection, report extraction, and Markdown compliance dashboards.
  • Adversarial Isolation Test Suite: 156 unit tests passing with full non-regression, zero host leakage, and error classification (closes #395).

Phase 27: Dynamic Real-Time Timestamping, Post-Execution Publishing & MariaDB 10.6 Reporting (Completed โœ… - v2.8.0)

Summary: Implement timezone-aware real-time dynamic timestamping (temporal_metadata.py), crash-resilient post-execution publishing pipeline with atomic disk writes (post_execution_publisher.py), clean dynamic HTML template rendering without hardcoded mock data (templates/report_template.html), and full integration into the MariaDB 10.6 engine and multi-target orchestrator.

27.1 Real-Time Dynamic Timestamping & Timezone Management

  • Timezone-Aware Temporal Metadata (temporal_metadata.py): Precise start/end tracking, millisecond duration calculation, ISO 8601 formatting, localized display (DD/MM/YYYY HH:MM:SS TZ), and UTC offset.
  • Sub-2s Clock Delta Assertions: Unit tests verifying that generated timestamps match real-time system clock within 2s tolerance.

27.2 Crash-Resilient Post-Execution Publishing Pipeline

  • Atomic Disk Writing (atomic_write_text): Temporary file creation, flush/fsync, and os.replace preventing corrupted or incomplete report files.
  • Unconditional Reporting Hook (AuditReportPublisher): Guaranteed report generation and export in try...finally blocks across all requested formats even during unexpected execution crashes.

27.3 Clean HTML/CSS Template & MariaDB 10.6 Reporting Engine

  • Elimination of Mock Values (templates/report_template.html): Removed hardcoded percentage bars and replaced with dynamic thematic security cards computed from category scores.
  • Execution Timeline Header: Rendered explicit scan start date, execution duration, and timezone badge for clear human validation.
  • MariaDB 10.6 & Orchestrator Integration: Fully connected audit_cis_mariadb_106.py, audit_orchestrator.py, and docker_e2e_engine.py (closes #404).

Phase 28: English Governance & Cross-Platform Windows Execution (Completed โœ… - v2.8.1)

Summary: Establish strict English-only repository policy across documentation, issues, and PRs, implement the living governance registers (docs/ACTION_LOGBOOK.md and docs/RCA_REGISTER.md), and ensure cross-platform compatibility on Windows platforms.

28.1 Mandatory English-Only Governance & Living Registers

  • Living Action Logbook (docs/ACTION_LOGBOOK.md): Track ongoing and completed actions with full traceability across issues, branches, and PRs.
  • RCA Register (docs/RCA_REGISTER.md): Document root cause analyses, technical dead-ends, approximations, and future roadmap ideas in English.
  • English-Only Policy Enforcement: Systematically enforce English across GitHub issues, PRs, commit messages, and source code docstrings.

28.2 Cross-Platform Execution & Windows Hardening

  • Windows Bytecode & Console Resilience: Address Windows UTF-8 console output and filesystem locking during pre-commit routines (RCA-005, RCA-019).
  • CI/CD Quality Gates Alignment: Enforce pre-commit validation and test suite execution across Windows and Linux environments.

Phase 29: Commit Testing CI, PyPI Distribution Pipeline & Stable Release (Completed โœ… - v2.9.1)

Summary: Implement GitHub Actions commit testing on pushes to all branches and pull requests, configure standardized pyproject.toml packaging with console entrypoints (audit-cis, audit_cis), create automated GitHub Actions PyPI publishing workflow (pypi-publish.yml) supporting repository secrets, enforce the post-merge issue closure with comment governance rule, and publish a verified stable release (v2.9.1).

29.1 PyPI Packaging & PSL Distribution

  • Standard pyproject.toml Configuration: Zero external runtime dependencies (dependencies = [], PSL only), setuptools build backend, metadata, and dynamic version sync.
  • Console Scripts: Defined entrypoints audit-cis and audit_cis pointing to audit_cis:main.
  • Distribution Asset Ingestion (MANIFEST.in): Ensured rules/*.json, templates/*.html, VERSION, README.md, and LICENSE are included in source distributions.

29.2 CI Commit Testing & Automated PyPI Publishing

  • Commit Testing Workflows: Updated ci.yml, unit-tests.yml, lint.yml, and security.yml to trigger on all pushed commits across all branches and PRs.
  • Automated PyPI Publishing Workflow (.github/workflows/pypi-publish.yml): Automated build and publication to PyPI on release creation and tagged pushes (v*), supporting PYPI_API_TOKEN / PYPI_TOKEN.
  • Stable Release Packaging (release.yml): Integrated python -m build into release workflow to attach sdist and wheels to GitHub releases alongside standalone tar.gz and single-file CLI script.

29.3 Release Quality, Asset Integrity & PyPI OIDC Publishing Fix (v2.9.1)

  • OIDC Publishing Correction: Removed conflicting password argument in pypi-publish.yml OIDC step to allow unhindered OIDC minting when API token is omitted.
  • Distribution Asset Attachment: Verified and attached full release assets (wheel, sdist, standalone script, and complete archive) for v2.9.1.

Phase 30: Ponytail Audit Remediations & Shared Core Engine Foundation (Completed โœ… - v2.9.1)

Summary: Remediate all 14 Ponytail Audit findings across Milestones M1โ€“M5 (PRs #476โ€“#621), establish the shared core audit engine foundation (cis_core_engine.py), eliminate script bloat (IMP-005), enhance process security (ps aux credential protection), harmonize core specifications (PRs #623โ€“#626), and synchronize documentation and roadmap (PRs #628โ€“#634).

30.1 Milestone M1: Execution Integrity & RHEL Fixes (PRs #476โ€“#483)

  • Finding 4 (RCA-014): Normalize RHEL module names with underscores in orchestrator imports and rule file mappings (audit_cis_rhel_8.py, etc.) (PR #478).
  • Finding 1 (RCA-011): Fix RHEL 8/9/10 HTML report SVG category chart argument signature mismatch and populate dynamic category scores (PRs #476, #480).
  • Finding 2 (RCA-012): Propagate docker_container parameter to run_command() in PostgreSQL, MongoDB, and Cassandra engines (PRs #482, #483).

30.2 Milestone M2: Security, Credentials & Isolation (PRs #485โ€“#514)

  • Finding 3 (RCA-013): Prevent dropping database credentials and SSH options across CLI dispatch, perform_checks(), and run_command() (PRs #485โ€“#503, #505).
  • Finding 5 (RCA-016): Mitigate shell injection and host variable expansion in Docker and SSH execution drivers using typed argument lists (PR #507).
  • Finding 6 (RCA-017): Protect database passwords against process table (ps aux) inspection by passing credentials via environment variables (MYSQL_PWD, PGPASSWORD, CIS_DB_PASSWORD) (PRs #509, #511).
  • Finding 7 (RCA-018): Eliminate fake Docker container synthesis on bare-metal local mode audits (PR #514).

30.3 Milestone M3: Engine Robustness, Syntax Integrity & Dynamic Scoring (PRs #516โ€“#605)

  • Finding 8 (RCA-019, RCA-020): Fix Windows console UTF-8 crashes and repair SSH warning-cleaning regex that corrupted JSON/XML reports across all 18 targets (PRs #516, #517, #519โ€“#575).
  • Finding 11 (RCA-021): Eliminate unreachable duplicate subprocess.run and exception handling blocks in MariaDB audit scripts (PR #577).
  • Finding 10 (APP-004): Replace hardcoded recommendation dictionaries with dynamic rule category discovery and safe key access across 15 database engines (PRs #579โ€“#605).

30.4 Milestone M4: Maintenance, Governance & Architecture (PRs #607โ€“#615)

  • Finding 14 (IMP-006): Document SSH audit connection overhead and formalize the deliberate architectural trade-off rejecting ControlMaster in favor of stateless robustness (PR #607).
  • Finding 12 (IMP-005): Decommission 65 legacy scripts to archive/scripts/, whitelist 13 essential production tools in scripts/, and add automated inventory governance tests (PRs #609, #611).
  • Finding 13 (IDEA-007): Catalog all 18 canonical targets and achieve 100% CLI matrix parameter forwarding test coverage (PRs #613, #615).

30.5 Milestone M5, Core Specifications M1 & Documentation M2 (PRs #617โ€“#634)

  • Finding 9 (IDEA-006): Establish cis_core_engine.py providing BaseAuditEngine, AuditScoresTuple, dual-unpacking backwards compatibility, and shared offline SVG chart generators (PR #617).
  • CI Matrix & Security Hardening (RCA-023): Remediate Bandit SAST scan on archive (RCA-022) and update Python matrix for active versions (PR #621).
  • Milestone 1 Specifications: Establish complete 6-file specification suite under documentation/specifications/, harmonize execution rules (03_execution_rules.md) and best practices (04_best_practices.md) (PRs #623โ€“#626).
  • Milestone 2 Documentation: Synchronize ROADMAP dashboard, translate Phase 12, renumber backlog items 1-23, update Active Quality Controls, and synchronize READMEs (PRs #628โ€“#634).

Phase 31: Enterprise Hardening, Core Engine Delegation & v2.10.0 Release (Completed โœ… - v2.10.0)

Summary: Remediate 12 Ponytail findings (PRs #643โ€“#703), certify test readiness (TEST_READY.md), and publish release v2.10.0. - [x] M1A/B (PRs #643, #653): SSH cwd, single-probe detector, diagnostic timeout accuracy, relative links, bundling (F5, 6, 8, 9, 11). - [x] M2 (PR #655): Scoring formula \(\frac{\text{Pass}}{\text{Pass} + \text{Fail}} \times 100\), numeric regex, None-safe checks (F3, 10). - [x] M3A-C (PRs #657โ€“#663): Process credentials (ps aux clean), manual dedup, dead code removal, RHEL error taxonomy (F1, 2, 4, 12). - [x] M4 (PRs #665โ€“#701): cis_core_engine.py delegation and offline fallback templates across all 18 targets (F7). - [x] M5/M6 (PRs #703, #705): Test readiness (314 tests, TEST_READY.md), release notes, and GitHub Release v2.10.0 (Issue #704).


Phase 32: Native PSL MCP Server, 6 Agent Skills & Bilingual Portal (Completed โœ… - v2.11.0)

Summary: Ship native PSL MCP server, 6 per-technology agent skills, enriched EN/FR docs, and v2.11.0 release. - [x] Native MCP Server (PRs #838, #840): mcp_server.py (cis-mcp-server, 5 tools, 3 cis:// resources, --check). - [x] 6 Agent Skills & CLI (PRs #846โ€“#850): .agents/skills/cis-* (18 targets, 887 controls) and scripts/install_agent_skills.py. - [x] EN/FR Docs & v2.11.0 Release (PRs #826โ€“#836, #842โ€“#844, #852โ€“#854): 6 Tutorials, 10 How-To Guides, Skills Catalog, release.yml, 367+ tests.


๐Ÿ”ฎ Future Roadmap (Upcoming Phases)

Phase 31: CIS GitHub Benchmark & Code Scanning Exporters (Planned)

  • IDEA-001 CIS GitHub Benchmark v1.2.0: Implement audit_cis_github.py auditing repository settings, branch protection rules, permissions, and GitHub Actions workflow security against official CIS GitHub Benchmark recommendations.
  • IDEA-003 SARIF v2.1.0 Exporter: Add --format sarif native exporter to cis_core_engine.py and standalone engines, enabling direct ingestion into GitHub Advanced Security Code Scanning.

Phase 32: Phased Core Engine Adoption (Planned)

  • IDEA-006 Phased Migration: Incrementally refactor all 18 standalone audit engines to inherit from BaseAuditEngine in cis_core_engine.py, reducing ~19,000 lines of duplicated logic while preserving standalone script portability through embedded PSL fallbacks.