← all work

Continuous control monitoring: test once, comply many

A unified control library mapped to ISO 27001, NIST CSF 2.0, SOC 2, PCI DSS 4.0 and DORA, with a Python engine that tests the whole control population against system evidence and reports audit readiness for all five in one run.

Role
Control design and Python engine
Period
2026
Status
Public, synthetic evidence
  • Python 3.10 (stdlib)
  • ISO 27001:2022
  • NIST CSF 2.0
  • SOC 2
  • PCI DSS 4.0
  • DORA
  • JSON
  • unittest
Problem
Point-in-time, sample-based audits miss failures between audits, and each framework gets tested separately for the same controls.
Key decision
Rationalise into fifteen unified controls with a crosswalk, and test 100% of the population from system exports with a deterministic engine.
Result
One run produces readiness per framework, named exceptions such as an active leaver account or a 36-day-old critical vulnerability, and JSON for GRC platforms.

Architecture

Continuous control monitoring engineEXTIdP / HR exportsusers · leavers · MFAEXTEDR · scanner · SIEM…coverage and findingsEXTBackup · TPRM · LMSrestores · vendors · trai…DBUnified control libra…15 controls × 5 frameworksJOBccm_engine.pystdlib only · determinist…SVCReport + JSONMarkdown · ServiceNow IRM…DBRisk registerfailures → risks with SLAsContinuous control monitoring engineEXTIdP / HR exportsusers · leavers · MFAEXTEDR · scanner · SIEM…coverage and findingsEXTBackup · TPRM · LMSrestores · vendors · trainingDBUnified control libra…15 controls × 5 frameworksJOBccm_engine.pystdlib only · deterministicSVCReport + JSONMarkdown · ServiceNow IRM / ArcherDBRisk registerfailures → risks with SLAs
System exports are tested against fifteen unified controls. Results roll up to ISO 27001, NIST CSF 2.0, SOC 2, PCI DSS 4.0 and DORA with a weakest-link rule, and come out as a report and JSON. Hover, tap or tab through the components; control flows are dashed.
Components and flows as text
ComponentKindTechnologyFlows out
IdP / HR exportsexternal serviceusers · leavers · MFA→ ccm_engine.py: evidence
EDR · scanner · SIEM · CSPMexternal servicecoverage and findings→ ccm_engine.py: evidence
Backup · TPRM · LMSexternal servicerestores · vendors · training→ ccm_engine.py: evidence
Unified control librarydatastore15 controls × 5 frameworks→ ccm_engine.py: controls + crosswalk
ccm_engine.pyscheduled jobstdlib only · deterministic→ Report + JSON: readiness per framework
Report + JSONserviceMarkdown · ServiceNow IRM / Archer→ Risk register: exceptions
Risk registerdatastorefailures → risks with SLAs—

Decisions

  1. D-01accepted

    Weakest-link roll-up

    A framework requirement is rated effective only when every mapped control is effective.

    Options considered

    • Average scores: looks better, hides the failing control.
    • Weakest link: conservative and defensible to an auditor.

    Trade-off accepted

    Readiness percentages look low until the weakest controls are fixed.

    UCF methodology ↗ · ccm_engine.py ↗

  2. D-02accepted

    Exceptions are visible, not hidden

    Approved risk acceptances are removed from the failure count but always listed in the report.

    Options considered

    • Silently suppress accepted risks.
    • Exclude them from scoring and show them.

    Trade-off accepted

    Reports are longer.

    reports/ccm_report.md ↗

  3. D-03accepted

    Deterministic and dependency-free

    Standard library only; the same evidence always gives the same result, so an auditor can reproduce it.

    Options considered

    • A GRC platform plugin.
    • A small, reproducible script with tests.

    Trade-off accepted

    Evidence connectors are exports rather than live APIs.

    tests/ ↗

Failure modes

FailureDetectionHandlingEvidence
An evidence export is stale or missingThe control is reported as ineffective, not passedMissing evidence never counts as successccm_engine.py

What I would change next

  • Pull evidence directly from Entra ID and Defender APIs.

Evidence index

Links point to the public repository.