What Compliance Readiness Actually Means
The gap between "being compliant" and "being able to demonstrate compliance" costs organizations millions of euros in audit failures, remediation cycles, and regulatory fines. Understanding this gap is the foundation of Phase 6.
The Proof Problem
By the time you reach Phase 6, you have done substantial work. Your data stays in the EU (Phase 4). Your access controls enforce least privilege (Phase 5). Your network egress is controlled (Phase 1). You have mapped what leaves your perimeter and why (Phase 2). In technical terms, you may be genuinely sovereign.
None of that matters to an auditor without documentation.
This is not bureaucratic pedantry. When the Dutch Autoriteit Persoonsgegevens investigates a data incident, they do not accept your word that controls were in place. When DORA supervisors review your ICT risk framework, they require written evidence of procedures tested on specific dates. When your insurance underwriter assesses your cyber policy, they price risk based on documented processes, not your architecture diagram.
Compliant ≠ Compliance-ready. An organization can have excellent technical controls and fail an audit because it cannot produce evidence that those controls existed and functioned on a specific date in the past. Retrospective documentation is treated as fabrication. Evidence must be contemporaneous.
What Regulators Actually Ask
Most organizations prepare for audits by documenting their current state. This fundamentally misunderstands the audit process. Regulators are not asking "what is your current configuration?" — they are asking "what was your configuration on the date of the incident, and how do you know?"
| What Organizations Think Auditors Want | What Auditors Actually Ask |
|---|---|
| A current network diagram | "Show me the diagram that was in place on March 15th, with version history" |
| A list of who has access | "Show me who had access to this system at 14:32 on the incident date" |
| Your data processing policy | "Show me the policy as it existed during the processing period in question" |
| A description of your backups | "Show me the last 12 months of backup completion logs with restoration tests" |
| A vendor contract | "Show me evidence that you verified vendor compliance quarterly as your policy requires" |
| An incident response procedure | "Show me the last drill, its date, participants, findings, and what you changed" |
The Regulatory Landscape Driving Phase 6
European organizations are operating in an increasingly dense regulatory environment. Four major frameworks are directly relevant to digital sovereignty and each carries real penalties:
ABRO (Autoriteit voor de Bescherming van Rechten Online) is in 2024 opgericht als zelfstandig bestuursorgaan onder het Ministerie van Economische Zaken. Het is de enige Europese toezichthouder die specifiek voor de EU Data Act is aangesteld als nationale autoriteit. Dat maakt ABRO de primaire handhavingsinstantie voor organisaties in Nederland die cloud services afnemen of aanbieden — en daarmee direct relevant voor de switching rights documentatie in Section 4.5 en vendor contract compliance in Section 4.10. Documenteer uw correspondentie met en meldingen aan ABRO als compliance-bewijs in uw evidence repository.
Compliance as Sovereignty Documentation
The S23k doctrine positions compliance not as a bureaucratic burden but as the formal documentation of your sovereignty posture. Every control you implemented in Phases 1 through 5 has a corresponding compliance artifact that proves it existed, functioned, and was maintained. Phase 6 is the systematic creation and management of that artifact layer.
An organization with Level 3 compliance maturity does not scramble when an audit notice arrives. The evidence package is already assembled, version-controlled, and traceable to specific control implementations. The audit becomes a retrieval exercise, not a reconstruction effort.
Compliance evidence is not generated for auditors. It is generated as a natural output of running sovereign operations correctly. If your processes produce evidence automatically, you are operating correctly. If you generate evidence only when asked, you are operating reactively — and reactive evidence is legally fragile.
The Three Failure Modes
Organizations fail compliance audits in three predictable ways, and understanding them drives the entire structure of Phase 6:
Controls exist technically but are not documented. The firewall rule is in place but no change ticket exists. The backup ran but no completion log was retained. The access review happened but was verbal. Result: auditor finds no evidence, treats control as non-existent, issues finding.
Documentation exists but is outdated. The risk assessment is 18 months old. The vendor contract was reviewed but the DPA was never updated when GDPR SCC templates changed. The network diagram shows the pre-migration topology. Result: auditor finds documentation inconsistent with reality, treats both as unreliable.
Documentation exists and is current but was never tested. The incident response procedure has never been drilled. The backup has never been restored. The business continuity plan has never been activated. Result: auditor correctly identifies that untested procedures provide no assurance of actual resilience.
Compliance Maturity Levels 0–4
Where does your organization actually stand? Level 3 is the minimum viable compliance posture for organizations operating under NIS2, DORA, or GDPR in a supervisory authority-active jurisdiction.
Level 4 requires significant investment in GRC platforms and automation infrastructure that is cost-justified primarily for financial institutions under DORA and very large entities. Level 3 is achievable with open-source tooling, scheduled scripts, and disciplined process design — and satisfies all major European regulatory frameworks. The Implementation Guides in Section 4 target Level 3.
Interactive Compliance Readiness Assessment
Six questions covering the core dimensions of regulatory compliance readiness. Each question scores 0–10. Maximum: 60 points. Answer based on your current evidenced state, not your intended state.
Phase 6 Compliance Assessment
Score each question 0 (none) to 10 (fully implemented and tested). Be honest — this assessment is for your own gap analysis.
Implementation Guides
Twenty implementation sections covering every dimension of compliance readiness. Each section follows the S23k tooling doctrine: native platform tools first, then commercial, then open-source, then custom scripts.
Before implementing any specific control documentation, you need a systematic architecture for how evidence is created, stored, versioned, and retrieved. An evidence architecture answers three questions: Where does evidence live? Who can access and modify it? How long is it retained?
The S23k Evidence Architecture model uses a three-tier structure: immutable collection (raw evidence captured at source), structured repository (normalized and catalogued evidence), and audit package (assembled evidence packages for specific frameworks or investigations).
Tooling — Native Platform Tools
Tooling — Third-Party Commercial
Tooling — Open Source
Directory Structure — Evidence Repository
# S23k Compliance Evidence Repository Structure mkdir -p /compliance/{controls,evidence,audit-packages,vendors,policies} mkdir -p /compliance/controls/{nis2,dora,gdpr,iso27001,soc2} mkdir -p /compliance/evidence/{access-reviews,audit-logs,pen-tests,\ incident-response,vendor-assessments,data-residency,config-snapshots} mkdir -p /compliance/audit-packages/{active,archived} mkdir -p /compliance/policies/{current,versioned,superseded} # Initialize git for version control of compliance documents cd /compliance git init git checkout -b main cat > .gitignore << 'EOF' # Exclude large log archives — stored in immutable object storage evidence/audit-logs/raw/ *.log.gz *.tmp EOF # Create evidence manifest template cat > evidence/MANIFEST.md << 'EOF' # Evidence Manifest — [CONTROL-ID] ## Metadata - Control: [NIS2-ART21 | GDPR-ART30 | ISO27001-A.x.x] - Date Collected: [ISO 8601] - Collected By: [automated | [name]] - Collection Method: [script name / tool] - Retention Until: [date] - Immutable Copy: [S3/Azure Blob URI] ## Evidence Files | File | Description | Hash (SHA-256) | |------|-------------|----------------| | ... | ... | ... | EOF echo "Evidence repository initialized."
Retention Matrix
| Evidence Type | Minimum Retention | Regulatory Driver | Storage Tier |
|---|---|---|---|
| Access logs (privileged) | 5 years | NIS2, DORA | Immutable cold storage |
| Data processing records (RoPA) | Duration of processing + 3 years | GDPR Art. 30 | Version-controlled + backup |
| Security incident reports | 5 years | NIS2 Art. 23, DORA | Immutable, signed |
| Penetration test reports | 3 years | ISO 27001, DORA TLPT | Encrypted, access-controlled |
| Vendor assessments | Contract duration + 3 years | DORA Ch. V, GDPR Art. 28 | GRC platform |
| Training completion records | 3 years after employment ends | NIS2 Art. 20, ISO 27001 | HR system + compliance backup |
| Configuration snapshots | 2 years | Internal audit baseline | Version control + cold archive |
NIS2 Article 21 mandates ten specific risk management measures for essential and important entities. Each measure requires not just implementation but documented evidence of implementation. Board members are personally liable under Article 20(1) for failure to implement and oversee these measures.
NIS2 applies to essential entities (energy, transport, banking, health, digital infrastructure, public administration) and important entities (postal, waste management, chemicals, food, manufacturing, digital providers, research). If you supply services to any of these or operate in the Netherlands/EU with 50+ employees or €10M+ revenue in these sectors, assume you are in scope.
The Ten Article 21 Measures
| Art. 21 Measure | Required Evidence | Review Frequency |
|---|---|---|
| (a) Risk analysis & information security policies | Dated risk assessment, policy document with approval signatures, version history | Annual minimum |
| (b) Incident handling | IR procedure, contact list (current), last drill report with findings | Test bi-annually |
| (c) Business continuity & crisis management | BCP document, BCM test report, RTO/RPO targets vs. actuals | Annual test |
| (d) Supply chain security | Vendor register with risk ratings, assessment schedule, contract compliance matrix | Quarterly review |
| (e) Security in network & info systems acquisition | Secure development policy, SSDLC evidence, vendor security requirements in contracts | Per project |
| (f) Effectiveness of cybersecurity measures | Pen test reports, vulnerability scan results, remediation tracking | Annual minimum |
| (g) Cyber hygiene & training | Training completion records, phishing test results, awareness program documentation | Annual minimum |
| (h) Cryptography & encryption policies | Encryption standards document, key management procedure, algorithm inventory | Bi-annual review |
| (i) Human resources security & access control | Access review records, offboarding checklist completions, privileged account inventory | Quarterly access review |
| (j) Multi-factor authentication | MFA coverage report, accounts exempt list with justification, exception approvals | Monthly monitoring |
NIS2 Evidence Collection Script
#!/usr/bin/env python3 # s23k-nis2-evidence-collector.py # Collects point-in-time evidence for NIS2 Article 21 compliance # Run: python3 s23k-nis2-evidence-collector.py --output /compliance/evidence/ import json, subprocess, datetime, hashlib, os, argparse from pathlib import Path def get_timestamp(): return datetime.datetime.utcnow().isoformat() + "Z" def hash_file(path): sha256 = hashlib.sha256() with open(path, 'rb') as f: for chunk in iter(lambda: f.read(8192), b''): sha256.update(chunk) return sha256.hexdigest() def collect_evidence(output_dir: str): Path(output_dir).mkdir(parents=True, exist_ok=True) manifest = { "collection_timestamp": get_timestamp(), "collector": "s23k-nis2-evidence-collector", "framework": "NIS2 Article 21", "evidence_items": [] } # Collect system access - privileged accounts (Linux) priv_output = output_dir + "/privileged_accounts.txt" with open(priv_output, 'w') as f: f.write(f"# Privileged Account Snapshot — {get_timestamp()}\n\n") f.write("## Sudoers\n") result = subprocess.run(['getent', 'group', 'sudo'], capture_output=True, text=True) f.write(result.stdout + "\n") result = subprocess.run(['getent', 'group', 'wheel'], capture_output=True, text=True) f.write(result.stdout + "\n") f.write("## Root-equivalent UIDs\n") result = subprocess.run(['awk', '-F:', '$3 == 0 {print $1}', '/etc/passwd'], capture_output=True, text=True) f.write(result.stdout) manifest["evidence_items"].append({ "measure": "Art. 21(i) — Access Control", "file": "privileged_accounts.txt", "sha256": hash_file(priv_output), "timestamp": get_timestamp() }) # Collect open ports / attack surface ports_output = output_dir + "/open_ports.txt" with open(ports_output, 'w') as f: f.write(f"# Open Port Scan — {get_timestamp()}\n") result = subprocess.run(['ss', '-tlnp'], capture_output=True, text=True) f.write(result.stdout) manifest["evidence_items"].append({ "measure": "Art. 21(f) — Effectiveness of Measures", "file": "open_ports.txt", "sha256": hash_file(ports_output), "timestamp": get_timestamp() }) # Collect running services svc_output = output_dir + "/running_services.txt" with open(svc_output, 'w') as f: f.write(f"# Running Services — {get_timestamp()}\n") result = subprocess.run(['systemctl', 'list-units', '--type=service', '--state=running', '--no-pager'], capture_output=True, text=True) f.write(result.stdout) manifest["evidence_items"].append({ "measure": "Art. 21(a) — Risk Analysis baseline", "file": "running_services.txt", "sha256": hash_file(svc_output), "timestamp": get_timestamp() }) # Write manifest manifest_path = output_dir + "/MANIFEST.json" with open(manifest_path, 'w') as f: json.dump(manifest, f, indent=2) print(f"[OK] Evidence collected: {len(manifest['evidence_items'])} items") print(f"[OK] Manifest: {manifest_path}") return manifest if __name__ == "__main__": parser = argparse.ArgumentParser(description="NIS2 Art.21 Evidence Collector") parser.add_argument("--output", default="./nis2-evidence", help="Output directory") args = parser.parse_args() collect_evidence(args.output)
DORA (Digital Operational Resilience Act) applies to financial sector entities and mandates a formal ICT Risk Management Framework (ICT-RMF) as defined in Articles 5–16. Unlike NIS2, DORA is sectoral and extremely prescriptive — it specifies not just what to do but how to document it.
The ICT-RMF under DORA must be reviewed annually by management, approved at board level, and tested through specific resilience testing regimes. Most critically, DORA Chapter V mandates specific contractual provisions with ICT third-party providers that directly intersect with sovereign switching rights from the EU Data Act.
DORA Chapter II — ICT Risk Management Core Elements
| DORA Article | Requirement | Key Evidence |
|---|---|---|
| Art. 5 | Governance and organization | Board-approved ICT strategy, management body meeting minutes showing ICT risk agenda items |
| Art. 6 | ICT risk management framework | ICT-RMF document, annual review sign-off, gap assessment vs previous year |
| Art. 7 | ICT systems, protocols and tools | Asset inventory with classification, lifecycle management procedure, obsolescence tracking |
| Art. 8 | Identification (risk identification) | ICT risk register with dates, threat intelligence subscription evidence, annual assessment |
| Art. 9 | Protection and prevention | Patch management logs, change control records, vulnerability scan results with remediation |
| Art. 10 | Detection | SIEM coverage report, alert tuning log, anomaly detection configuration documentation |
| Art. 11 | Response and recovery | BCP/DRP document, RTO/RPO definitions, recovery test results with timing evidence |
| Art. 12 | Backup policies | Backup policy document, monthly backup completion logs, restoration test records |
| Art. 13 | Learning and evolving | Post-incident review reports, lessons-learned register, control update tracking |
| Art. 14 | Communication | Internal + external communication procedures, regulatory contact list with NCA details |
DORA ICT Risk Register Template
# DORA-compliant ICT Risk Register Entry # Store in version-controlled repository with commit timestamps as evidence - risk_id: ICT-RISK-2025-047 dora_reference: Art. 8 — Identification title: Critical SaaS vendor data residency outside EU category: third_party_ict_concentration identification: date: 2025-03-15 identified_by: IT Risk Officer trigger: Vendor contract review — Annual Q1 cycle assessment: likelihood: 3 # 1-5 scale impact: 4 inherent_score: 12 # likelihood × impact affected_systems: [CRM, HRIS, Finance platform] regulatory_exposure: [GDPR Art 46, DORA Art 28, NIS2 Art 21d] controls: existing: - control_id: CTL-DRS-001 description: Contractual data residency clause in vendor DPA effectiveness: partial # clause exists, not verified - control_id: CTL-DRS-002 description: Quarterly vendor compliance questionnaire effectiveness: low # not performed in last 6 months planned: - control_id: CTL-DRS-003 description: Automated data residency verification via vendor API target_date: 2025-06-30 owner: Cloud Architecture Lead residual_score: 8 risk_appetite_breach: true # score > 6 = board notification required treatment: decision: mitigate escalated_to_board: 2025-03-22 board_minute_reference: BOARD-2025-Q1-MIN-14 next_review: 2025-06-30
DORA supervisors are particularly focused on temporal evidence. Every risk register entry, every board minute reference, and every control update must have a verifiable timestamp. Store your risk register in git — commit timestamps are legally defensible evidence of when entries were made or modified.
Article 30 GDPR requires controllers to maintain comprehensive Records of Processing Activities (RoPA). The RoPA must be in writing (including electronic format), available on request from the supervisory authority, and kept current. In the Netherlands, the Autoriteit Persoonsgegevens has actively requested RoPAs during investigations and found organizations with outdated or incomplete records.
A RoPA is not a privacy policy or a data flow diagram. It is a structured, operational inventory of every processing activity, its legal basis, data categories, retention periods, and safeguards — maintained at the organizational level, not as a one-time compliance exercise.
Tooling — Native Platform Tools
Tooling — Open Source
RoPA Entry Schema
# Article 30 GDPR — Record of Processing Activity Entry # Each processing activity = one YAML document # Version-controlled in /compliance/gdpr/ropa/ activity_id: RPA-2025-014 name: Employee Salary Administration controller: ACME BV, Maastricht, Netherlands controller_contact: [email protected] dpo_contact: [email protected] last_updated: 2025-02-01 reviewed_by: DPO review_due: 2026-02-01 processing: purpose: Calculation and payment of employee salaries, wage tax administration, pension contributions legal_basis: Article 6(1)(b) — contract # employment contract legal_basis_special: Article 9(2)(b) — employment law # health data for sick leave data_subjects: [employees, former employees] data_categories: - category: identification fields: [name, BSN, employee ID] sensitive: false - category: financial fields: [salary, IBAN, tax bracket] sensitive: false - category: health fields: [sick leave days] sensitive: true special_category_basis: Art 9(2)(b) — employment, social security law recipients: - name: Belastingdienst role: regulatory authority transfer_basis: legal obligation location: Netherlands - name: ADP Employer Services BV role: processor — payroll software dpa_reference: DPA-2024-ADP-001 dpa_valid_until: 2026-12-31 location: Netherlands (EU data center) residency_verified: 2025-01-15 retention: period: 7 years legal_basis: Wet op de Loonbelasting 1964, Article 52 deletion_procedure: Automated archival + scheduled deletion in HR system security_measures: - AES-256 encryption at rest (ADP data center) - TLS 1.3 in transit - Role-based access control (HR + Finance only) - Access logs retained 5 years dpia_required: false dpia_assessment_date: 2024-09-01 dpia_assessment_by: DPO
RoPA Maintenance Script
#!/usr/bin/env python3 # s23k-ropa-check.py — Alert on stale RoPA entries # Run monthly via cron, output to compliance dashboard import yaml, os, datetime from pathlib import Path ROPA_DIR = "/compliance/gdpr/ropa/" WARN_DAYS = 90 # warn if not reviewed in 90 days ALERT_DAYS = 180 # alert if not reviewed in 180 days (audit risk) def check_ropa(): today = datetime.date.today() results = {"ok": [], "warn": [], "alert": [], "missing_dates": []} for path in Path(ROPA_DIR).glob("*.yaml"): with open(path) as f: ropa = yaml.safe_load(f) activity = ropa.get("name", str(path)) review_due_str = ropa.get("review_due") last_updated_str = ropa.get("last_updated") if not last_updated_str: results["missing_dates"].append(activity) continue last_updated = datetime.date.fromisoformat(str(last_updated_str)) days_since = (today - last_updated).days if days_since > ALERT_DAYS: results["alert"].append({ "activity": activity, "days_since_review": days_since, "review_due": str(review_due_str), "file": str(path) }) elif days_since > WARN_DAYS: results["warn"].append({"activity": activity, "days_since_review": days_since}) else: results["ok"].append(activity) print(f"\n=== S23k RoPA Staleness Report — {today} ===") print(f"✓ Current: {len(results['ok'])}") print(f"⚠ Warning (>90d): {len(results['warn'])}") print(f"✗ Alert (>180d): {len(results['alert'])}") print(f"! Missing dates: {len(results['missing_dates'])}") if results["alert"]: print("\n[ALERT — Audit Risk]") for item in results["alert"]: print(f" {item['activity']} — {item['days_since_review']} days") return results if __name__ == "__main__": check_ropa()
The EU Data Act (Regulation 2023/2854) entered into force in September 2025 and introduces mandatory switching assistance for cloud service providers. For cloud customers, this creates an obligation to maintain documentation of your switching rights and to verify that vendor contracts include the mandatory provisions under Articles 25–29. In the Netherlands, ABRO (Autoriteit voor de Bescherming van Rechten Online) is de aangewezen nationale handhavingsautoriteit voor de EU Data Act — meldingen, klachten en handhavingsprocedures lopen via ABRO, niet via de AP of NCSC.
This section directly extends Phase 4 (Data Sovereignty) and Phase 5 (Permission Extraction) with the regulatory documentation layer. You have implemented technical switching capabilities — now you need to prove they exist contractually and that you have tested them.
Mandatory Contract Provisions Checklist
- Article 25(a) — Exit assistance: Vendor must provide technical support for switching for a minimum period of 30 days (extendable). This must be explicitly stated in the contract with duration and scope defined.
- Article 25(b) — Data portability: All customer data, including metadata, configuration, and operational data, must be exportable in a standard or open format. Contract must specify the formats offered.
- Article 25(c) — No egress fees: Vendors must remove egress data transfer fees charged during the switching period. Document the current contract position on data egress pricing.
- Article 25(d) — Functional equivalence: Vendor must provide technical documentation sufficient to enable reconstruction of equivalent functionality on an alternative platform.
- Article 29 — Interoperability: For managed services, vendor must implement recognized European interoperability standards when published by ENISA.
Switching Rights Verification Template
# EU Data Act Switching Rights Register # Article 25-29 compliance verification per vendor vendors: - vendor: Microsoft Azure contract_id: EA-2024-MS-001 contract_reviewed: 2025-10-01 data_act_provisions: exit_assistance_period: 90 days # Art 25(a) data_portability_formats: [JSON, Parquet, CSV] # Art 25(b) egress_fee_waiver_confirmed: true # Art 25(c) functional_docs_available: true # Art 25(d) switching_test_conducted: 2025-09-15 switching_test_evidence: /compliance/evidence/switching-tests/azure-2025-09.md estimated_switch_duration: 14 days estimated_switch_cost: €0 egress (waived) data_volume_for_export: 4.2 TB compliant: yes notes: Verified via Azure Data Box export simulation — see evidence file - vendor: Salesforce CRM contract_id: SF-2023-ENT-007 contract_reviewed: 2025-08-20 data_act_provisions: exit_assistance_period: 30 days data_portability_formats: [CSV] # limited format — risk flag egress_fee_waiver_confirmed: partial # only standard export, not bulk API functional_docs_available: partial switching_test_conducted: NOT COMPLETED compliant: partial risk_rating: medium remediation_required: - Schedule switching test before 2025-12-31 - Negotiate bulk API export provision in next renewal - Request Data Act addendum from Salesforce
ISO 27001:2022 provides the recognized international framework for information security management systems (ISMS). Even organizations not pursuing certification benefit from ISO 27001 as a structured control catalogue — and many enterprise customers, insurers, and regulators accept ISO 27001 certification as evidence of mature security controls.
The 2022 revision reduced Annex A from 114 controls in 14 domains to 93 controls in 4 themes, and added 11 new controls relevant to cloud and sovereign operations. The Statement of Applicability (SoA) is the core compliance artifact — it documents which controls apply, why, and the evidence of implementation.
Sovereignty-Relevant ISO 27001:2022 Controls
| Control ID | Control Name | Phase Link | Key Evidence |
|---|---|---|---|
| 5.23 | Information security for use of cloud services | Phase 4 | Cloud provider assessment, DPA, exit plan documentation |
| 5.19 | Information security in supplier relationships | Phase 5 | Vendor register, assessment schedule, contract review records |
| 5.30 | ICT readiness for business continuity | Phase 7 (upcoming) | IRBC plan, test results with RTO/RPO actuals |
| 8.9 | Configuration management | Phase 1 | Config baseline, change records, drift detection reports |
| 8.10 | Information deletion | Phase 4 | Deletion procedures, verification logs, sanitization certificates |
| 8.11 | Data masking | Phase 4 | Masking policy, technical implementation evidence |
| 8.12 | Data leakage prevention | Phase 1 | DLP configuration, alert log samples, tuning documentation |
| 8.16 | Monitoring activities | Phase 6 | SIEM configuration, monitoring scope, alert response records |
| 5.10 (new) | Acceptable use of information and other assets | Phase 5 | Policy document, training acknowledgment records |
| 5.7 (new) | Threat intelligence | Phase 6 | TI subscription evidence, threat briefings to management |
Statement of Applicability Generator
#!/usr/bin/env python3
# s23k-soa-status.py — Generate SoA implementation status report
# Reads control status from YAML definitions, outputs audit-ready HTML
import yaml, datetime
from pathlib import Path
CONTROLS_FILE = "/compliance/iso27001/controls.yaml"
OUTPUT_FILE = "/compliance/audit-packages/soa-report.html"
def generate_soa_report(controls_file, output_file):
with open(controls_file) as f:
data = yaml.safe_load(f)
today = datetime.date.today().isoformat()
total = len(data["controls"])
implemented = sum(1 for c in data["controls"] if c["status"] == "implemented")
partial = sum(1 for c in data["controls"] if c["status"] == "partial")
planned = sum(1 for c in data["controls"] if c["status"] == "planned")
excluded = sum(1 for c in data["controls"] if c["status"] == "excluded")
html = f"""<!DOCTYPE html>
<html><head><title>ISO 27001 SoA — {today}</title></head>
<body>
<h1>Statement of Applicability — Generated {today}</h1>
<p>Total controls: {total} | Implemented: {implemented} |
Partial: {partial} | Planned: {planned} | Excluded: {excluded}</p>
<table border="1"><tr>
<th>Control ID</th><th>Name</th><th>Status</th>
<th>Evidence</th><th>Last Reviewed</th>
</tr>"""
for ctrl in data["controls"]:
color = {"implemented": "#27ae60", "partial": "#d4820a",
"planned": "#2980b9", "excluded": "#666"}.get(ctrl["status"], "#000")
html += f"""<tr>
<td>{ctrl["id"]}</td>
<td>{ctrl["name"]}</td>
<td style="color:{color};font-weight:bold">{ctrl["status"].upper()}</td>
<td>{ctrl.get("evidence_file", "—")}</td>
<td>{ctrl.get("last_reviewed", "—")}</td>
</tr>"""
html += "</table></body></html>"
with open(output_file, 'w') as f:
f.write(html)
print(f"[OK] SoA report generated: {output_file}")
print(f" {implemented}/{total} controls implemented ({implemented/total*100:.0f}%)")
generate_soa_report(CONTROLS_FILE, OUTPUT_FILE)
SOC 2 Type II (System and Organization Controls 2) is particularly relevant for technology service providers and SaaS companies. A Type II report covers a period of time (typically 6–12 months) and requires evidence that controls not only exist but operated continuously and effectively throughout that period.
Unlike ISO 27001, which is a certification you achieve, SOC 2 Type II is a report produced by an independent auditor reviewing your evidence. The evidence quality determines whether the auditor issues a clean opinion or findings. Poor evidence collection is the primary cause of qualified SOC 2 reports.
Trust Services Criteria Evidence Map
| TSC Category | Critical Evidence Items | Collection Frequency |
|---|---|---|
| CC1 — Control Environment | Org chart (versioned), board charter, code of conduct acknowledgments, background check records | Annual update |
| CC2 — Communication | Policy distribution logs, training completion exports, security bulletin records | Quarterly export |
| CC3 — Risk Assessment | Risk register with dates, annual risk assessment report, threat modeling outputs | Annual minimum |
| CC4 — Monitoring | Internal audit reports, management review meeting minutes, KPI dashboards | Quarterly |
| CC6 — Logical Access | User access lists (point-in-time), access review records, MFA coverage reports, offboarding logs | Monthly snapshots |
| CC7 — Operations | Change control tickets, deployment logs, vulnerability scan results, incident tickets | Continuous collection |
| CC8 — Change Management | Change approval records, rollback procedures, post-deployment verification | Per change |
| A1 — Availability | Uptime monitoring exports, SLA reports, capacity management records | Monthly export |
Tooling — Commercial SOC 2 Automation
An audit trail is not the same as application logging. Audit trails are purpose-built records of who did what to which resource at what time — designed from the outset to be tamper-evident, complete, and queryable. Confusing operational logs with audit trails is one of the most common compliance failures.
Audit Trail vs. Operational Log — Key Differences
| Dimension | Operational Log | Audit Trail |
|---|---|---|
| Primary purpose | Debugging, performance monitoring | Accountability, forensics, compliance |
| Integrity | Mutable (log rotation, overwrite) | Immutable — append only, signed |
| Retention | Days to weeks (cost-optimized) | Years (compliance-mandated) |
| Content | Technical events, errors, metrics | Identity + action + target + outcome + timestamp |
| Query interface | Log aggregator, grep | Structured query with access control |
| Access control | Broad DevOps team access | Restricted — audit team only, logged access to audit logs |
Tooling — Native Platform Audit Logging
Immutable Audit Log Configuration — AWS
# Configure immutable audit trail to S3 with Object Lock (WORM storage) # Run once per account — requires root or audit admin permissions BUCKET="company-audit-trail-$(aws sts get-caller-identity --query Account --output text)" REGION="eu-west-1" # EU region for data residency # Create S3 bucket with Object Lock enabled (cannot be disabled after creation) aws s3api create-bucket \ --bucket "$BUCKET" \ --region "$REGION" \ --create-bucket-configuration LocationConstraint="$REGION" \ --object-lock-enabled-for-bucket # Set default retention: 5 years compliance mode (cannot be overridden by users) aws s3api put-object-lock-configuration \ --bucket "$BUCKET" \ --object-lock-configuration '{ "ObjectLockEnabled": "Enabled", "Rule": { "DefaultRetention": { "Mode": "COMPLIANCE", "Years": 5 } } }' # Enable versioning (required for Object Lock) aws s3api put-bucket-versioning \ --bucket "$BUCKET" \ --versioning-configuration Status=Enabled # Block all public access aws s3api put-public-access-block \ --bucket "$BUCKET" \ --public-access-block-configuration \ BlockPublicAcls=true,IgnorePublicAcls=true,\ BlockPublicPolicy=true,RestrictPublicBuckets=true # Create CloudTrail and point to immutable bucket aws cloudtrail create-trail \ --name company-audit-trail \ --s3-bucket-name "$BUCKET" \ --include-global-service-events \ --is-multi-region-trail \ --enable-log-file-validation aws cloudtrail start-logging --name company-audit-trail echo "[OK] Immutable audit trail configured. Bucket: $BUCKET" echo "[OK] Retention: 5 years (COMPLIANCE mode — cannot be shortened)"
A supervisory authority requesting data residency evidence does not want a vendor's marketing page or a contractual commitment. They want evidence that your data was actually stored and processed within the specified jurisdiction during the period under review. This requires generating, storing, and periodically re-verifying technical proof of residency.
Tooling — Native Platform Residency Verification
Data Residency Verification Script
#!/usr/bin/env python3 # s23k-residency-proof.py # Generates timestamped, hashed residency evidence for all cloud resources # Output: signed JSON evidence file for compliance dossier import json, subprocess, datetime, hashlib, os ALLOWED_REGIONS = [ "eu-west-1", "eu-west-2", "eu-west-3", "eu-central-1", "eu-north-1", "eu-south-1", "westeurope", "northeurope", "francecentral", "germanywestcentral", "netherlands-east" ] def get_aws_resources(): """Get all AWS resources with their regions""" try: result = subprocess.run( ['aws', 'ec2', 'describe-regions', '--output', 'json'], capture_output=True, text=True, timeout=30 ) regions_data = json.loads(result.stdout) resources = [] violations = [] for region in regions_data.get("Regions", []): region_name = region["RegionName"] try: r = subprocess.run( ['aws', 'ec2', 'describe-instances', '--region', region_name, '--output', 'json', '--query', 'Reservations[].Instances[].{id:InstanceId,type:InstanceType,state:State.Name}'], capture_output=True, text=True, timeout=15 ) instances = json.loads(r.stdout) for inst in instances: resources.append({"resource": inst["id"], "region": region_name}) if region_name not in ALLOWED_REGIONS: violations.append({"resource": inst["id"], "region": region_name}) except: pass return resources, violations except Exception as e: return [], [{"error": str(e)}] def generate_proof(): timestamp = datetime.datetime.utcnow().isoformat() + "Z" aws_resources, aws_violations = get_aws_resources() evidence = { "evidence_type": "data_residency_verification", "generated_at": timestamp, "generator": "s23k-residency-proof v1.0", "allowed_regions": ALLOWED_REGIONS, "findings": { "aws": { "total_resources_checked": len(aws_resources), "violations": aws_violations, "compliant": len(aws_violations) == 0 } }, "overall_compliant": len(aws_violations) == 0, "attestation": "This evidence was generated automatically by s23k tooling. Retain for minimum 5 years." } # Add content hash for tamper-evidence content = json.dumps(evidence, sort_keys=True).encode() evidence["content_sha256"] = hashlib.sha256(content).hexdigest() output = f"/compliance/evidence/data-residency/residency-proof-{timestamp[:10]}.json" os.makedirs(os.path.dirname(output), exist_ok=True) with open(output, 'w') as f: json.dump(evidence, f, indent=2) print(f"[OK] Residency proof generated: {output}") if aws_violations: print(f"[ALERT] {len(aws_violations)} resources outside allowed regions!") else: print(f"[OK] All {len(aws_resources)} AWS resources within EU regions") return evidence if __name__ == "__main__": generate_proof()
Vendor contracts are living documents for compliance purposes. A DPA signed in 2021 may not reflect current SCCs (updated 2021), current GDPR guidance, or new DORA requirements. Organizations routinely fail audits because they assume "we have a DPA" is sufficient — auditors check whether the DPA is the current template and whether it covers the actual processing performed.
Vendor Contract Compliance Matrix
| Contract Requirement | Regulatory Driver | Verification Method | Frequency |
|---|---|---|---|
| Current SCCs (2021 templates) | GDPR Art. 46 | Compare DPA Annex to EU Commission template | On each renewal + when SCCs updated |
| Data residency clause (EU) | GDPR, NIS2, Data Act | Contractual review + technical verification (4.9) | Annual |
| Sub-processor list current + approved | GDPR Art. 28(2) | Compare vendor's published list to DPA annex | Quarterly — vendors update sub-processors frequently |
| Audit rights clause | GDPR Art. 28(3)(h), DORA Art. 30 | Verify clause permits independent audit or inspection | On renewal |
| Breach notification ≤72h | GDPR Art. 33, NIS2 Art. 23 | Verify contractual commitment to notification timeframe | On renewal |
| Termination/exit assistance | EU Data Act Art. 25, DORA Art. 28 | Verify switching assistance period and data return | Annual — exercise switching test |
| Retention and deletion clauses | GDPR Art. 5(1)(e) | Verify contractual deletion timelines match your RoPA | Annual |
Major SaaS vendors update their sub-processor lists frequently — sometimes monthly. Your DPA may give them permission to add sub-processors with 30 days notice. If you are not monitoring these updates, you may find a sub-processor located outside the EU added with your implicit consent. Establish a quarterly sub-processor review process and compare against your approved list.
Tooling — Contract Compliance Tracking
NIS2 Article 23 establishes specific timing requirements for incident notification: an early warning to the national competent authority (NCA) within 24 hours of becoming aware of a significant incident, a detailed incident notification within 72 hours, and a final report within one month. These timelines are not aspirational — they are legal obligations with enforcement consequences.
An incident response procedure that has never been tested is not an incident response procedure in any meaningful regulatory sense. It is a document. Auditors ask for the last test date and its outcome.
NIS2/GDPR Incident Classification Matrix
| Incident Type | NIS2 Notification | GDPR Notification | Evidence Required |
|---|---|---|---|
| Ransomware affecting critical services | 24h early warning + 72h full report | 72h if personal data involved | Timeline log, detection evidence, containment actions, business impact |
| Data exfiltration (personal data) | Report if significant impact | 72h to DPA, inform data subjects | Log evidence of breach, data categories affected, number of subjects |
| DDoS affecting availability | Report if significant impact on services | Not typically required | Traffic logs, mitigation timeline, service restoration evidence |
| Supply chain compromise | Report based on impact assessment | If personal data affected | Vendor notification records, scope determination evidence |
| Accidental data disclosure | Generally not required | 72h if risk to data subjects | Root cause analysis, remediation actions, subject count |
Incident Response Evidence Capture Template
# S23k Incident Record — complete immediately on detection # This document IS the regulatory evidence — timestamps are critical incident_id: INC-2025-[SEQ] classification: DRAFT # DRAFT → ACTIVE → RESOLVED → CLOSED detection: timestamp_utc: "[ISO 8601 — fill within minutes of detection]" detected_by: "[name or system]" detection_method: "[SIEM alert | user report | external notification]" initial_description: "[1-2 sentences — what was observed]" # NIS2 Notification Decision nis2_assessment: significant_incident: null # true/false — assess within 4 hours assessment_by: null assessment_timestamp: null early_warning_required_by: null # detection_time + 24h early_warning_sent: null early_warning_timestamp: null full_report_required_by: null # detection_time + 72h full_report_sent: null nca_reference: null # NCSC-NL case number # GDPR Notification Decision gdpr_assessment: personal_data_involved: null data_categories_affected: [] estimated_subject_count: null risk_to_subjects: null # none/low/medium/high dpa_notification_required: null dpa_notification_deadline: null dpa_notification_sent: null subject_notification_required: null timeline: [] # append entries: {time, actor, action} evidence_collected: log_files: [] screenshots: [] network_captures: [] system_snapshots: [] post_incident_review: review_date: null root_cause: null lessons_learned: [] control_improvements: [] review_completed_by: null
Business continuity evidence is distinct from having a BCP document. Auditors under NIS2 Article 21(c) and DORA Article 11 look for evidence that your continuity plans work — not that they exist on paper. A BCP that has never been activated or tested provides minimal assurance and is likely to fail under audit scrutiny.
Required Evidence per Control Category
- Backup completion logs: Monthly automated exports showing each backup job, completion status, duration, data volume, and target location. Gaps in logs are treated as gaps in coverage.
- Restoration tests: At minimum annual restoration test with documented timing, data integrity verification method, and result. DORA requires this for ICT services supporting critical functions.
- RTO/RPO actuals vs. targets: Document your target RTO and RPO per system, and evidence from the last restoration test showing actual recovery time and data loss. If actuals exceed targets, document remediation actions.
- Failover test evidence: For systems with active-active or active-passive failover, documented test activating the failover path with timing and participant attestation.
- Crisis management test: Annual tabletop or simulation exercise with attendee list, scenario description, decisions made, and lessons identified — signed by senior management.
Backup Evidence Automation
#!/bin/bash # s23k-backup-evidence.sh # Run daily via cron — generates tamper-evident backup completion evidence # 0 6 * * * /opt/s23k/s23k-backup-evidence.sh DATE=$(date -u +"%Y-%m-%d") TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") OUTPUT_DIR=/compliance/evidence/backups mkdir -p $OUTPUT_DIR EVIDENCE_FILE=$OUTPUT_DIR/backup-evidence-$DATE.json # Collect AWS backup job status if command -v aws &>/dev/null; then AWS_JOBS=$(aws backup list-backup-jobs \ --by-created-after "$(date -u -d '24 hours ago' +%Y-%m-%dT%H:%M:%SZ)" \ --output json 2>/dev/null) else AWS_JOBS='{"BackupJobs": [], "note": "AWS CLI not configured"}' fi # Collect PostgreSQL backup evidence (adjust path for your backup solution) PG_BACKUP_LOG="" if [ -f /var/log/pgbackup/daily.log ]; then PG_BACKUP_LOG=$(tail -50 /var/log/pgbackup/daily.log) fi # Assemble evidence JSON cat > $EVIDENCE_FILE << EOF { "evidence_type": "backup_completion_daily", "date": "$DATE", "generated_at": "$TIMESTAMP", "generator": "s23k-backup-evidence v1.0", "aws_backup_jobs": $AWS_JOBS, "pg_backup_log_tail": $(echo "$PG_BACKUP_LOG" | python3 -c "import json,sys; print(json.dumps(sys.stdin.read()))"), "attestation": "Automatically generated by s23k tooling. Retain for compliance for minimum 5 years." } EOF # Generate SHA-256 for tamper evidence HASH=$(sha256sum $EVIDENCE_FILE | cut -d' ' -f1) echo "{\"file\": \"$(basename $EVIDENCE_FILE)\", \"sha256\": \"$HASH\", \"date\": \"$DATE\"}" \ >> $OUTPUT_DIR/HASHLOG.jsonl echo "[OK] Backup evidence collected: $EVIDENCE_FILE (SHA256: $HASH)"
Third-party risk documentation under DORA Chapter V and NIS2 Article 21(d) requires not just a vendor register but evidence of ongoing risk assessment. The assessment must be risk-proportionate — critical ICT providers require more intensive oversight than peripheral suppliers. DORA introduces the concept of Critical ICT Third-Party Providers (CTPPs) designated by financial regulators, which carry specific oversight obligations.
| Vendor Tier | Assessment Frequency | Required Evidence | DORA Classification |
|---|---|---|---|
| Tier 1 — Critical (single point of failure) | Quarterly | Security questionnaire + pen test report + DPA + contract review + sub-processor list | Potential CTPP designation |
| Tier 2 — Important (significant but not critical) | Annual | Security questionnaire + DPA + contract review | Standard third-party oversight |
| Tier 3 — Standard (limited access to data/systems) | On renewal | Contract compliance check + DPA currency verification | Lightweight oversight |
| Tier 4 — Non-critical (no data access) | On renewal | Contract review only | Exclusion list documentation |
As of January 2025, the European Supervisory Authorities (ESAs) are designating Critical Third-Party Providers under DORA Article 31. If your organization in financial services uses a designated CTPP, you are subject to direct oversight obligations including participation in ESA-led information sharing and specific contract provisions. Monitor the CTPP register at the ESA websites.
Manual compliance reporting is fundamentally unreliable because it depends on human memory and discipline. The S23k target (Level 3) requires that core compliance evidence is generated automatically, scheduled, and delivered without human intervention. This section covers the automation architecture that makes Level 3 achievable without enterprise GRC software.
Tooling — Automation Stack
Compliance Automation Schedule
# /etc/cron.d/s23k-compliance # S23k Compliance Automation Master Schedule # All scripts write to /compliance/evidence/ with SHA-256 manifest # ── DAILY ────────────────────────────────────────────────────────── # Backup completion evidence (06:00 UTC daily) 0 6 * * * compliance /opt/s23k/s23k-backup-evidence.sh >> /var/log/s23k/backup-evidence.log 2>&1 # Data residency verification (07:00 UTC daily) 0 7 * * * compliance python3 /opt/s23k/s23k-residency-proof.py >> /var/log/s23k/residency.log 2>&1 # Audit log integrity check (08:00 UTC daily) 0 8 * * * compliance python3 /opt/s23k/s23k-log-integrity.py >> /var/log/s23k/log-integrity.log 2>&1 # ── WEEKLY ───────────────────────────────────────────────────────── # Privileged account snapshot (Monday 09:00 UTC) 0 9 * * 1 compliance python3 /opt/s23k/s23k-nis2-evidence-collector.py --output /compliance/evidence/weekly/ >> /var/log/s23k/nis2-collector.log 2>&1 # Vendor sub-processor change detection (Monday 10:00 UTC) 0 10 * * 1 compliance python3 /opt/s23k/s23k-subprocessor-monitor.py >> /var/log/s23k/subprocessor.log 2>&1 # ── MONTHLY ──────────────────────────────────────────────────────── # RoPA staleness check (1st of month, 09:00 UTC) 0 9 1 * * compliance python3 /opt/s23k/s23k-ropa-check.py | mail -s "S23k RoPA Staleness Report" [email protected] 2>&1 # MFA coverage report (1st of month, 10:00 UTC) 0 10 1 * * compliance python3 /opt/s23k/s23k-mfa-coverage.py >> /var/log/s23k/mfa-coverage.log 2>&1 # Access review trigger — send review tasks to managers (1st of month, 11:00 UTC) 0 11 1 * * compliance python3 /opt/s23k/s23k-access-review-trigger.py >> /var/log/s23k/access-review.log 2>&1 # ── QUARTERLY ────────────────────────────────────────────────────── # Vendor compliance assessment triggers (15th Jan/Apr/Jul/Oct) 0 9 15 1,4,7,10 * compliance python3 /opt/s23k/s23k-vendor-assessment-trigger.py >> /var/log/s23k/vendor-assessment.log 2>&1 # Board compliance report generation (1st of quarter month) 0 8 1 1,4,7,10 * compliance python3 /opt/s23k/s23k-board-report.py >> /var/log/s23k/board-report.log 2>&1
Regulatory change management is the process of systematically monitoring for changes to applicable regulations, assessing their impact on your control framework, and implementing required control updates within defined timelines. Without this, organizations discover regulatory changes when an auditor references an article they have never heard of.
Monitoring Sources
- EUR-Lex Alerts (eur-lex.europa.eu): Subscribe to official journal notifications for NIS2, DORA, GDPR, EU Data Act updates. Free RSS feeds available per legislative act.
- ABRO (abro.nl): De primaire bron voor Nederlandse organisaties. ABRO publiceert handhavingsprioriteiten, richtlijnen voor de EU Data Act en DSA, en interpretatieve brieven. Abonneer op nieuwsberichten — handhavingsbesluiten verschijnen hier eerder dan via EUR-Lex. Direct relevant voor Section 4.5 (switching rights) en Section 4.10 (vendor contracts).
- ENISA (enisa.europa.eu): Cybersecurity guidelines, technical standards publications, and NIS2 implementing acts. Subscribe to press releases.
- Dutch AP (autoriteitpersoonsgegevens.nl): Dutch DPA guidance, enforcement actions (with anonymized case details), and interpretive letters. Directly relevant for Netherlands-based operations.
- NCSC-NL (ncsc.nl): NIS2 implementation guidance for the Netherlands, threat advisories, and sector-specific guidance.
- ESA Joint Committee (eba.europa.eu/eiopa.europa.eu/esma.europa.eu): DORA regulatory technical standards, Q&A publications, and supervisory convergence guidance.
Regulatory Change Impact Assessment Template
# Regulatory Change Management Record # Create one entry per significant regulatory update change_id: REG-CHANGE-2025-009 source: ABRO # abro.nl — primaire bron voor EU Data Act in NL reference: ABRO Richtsnoer EU Data Act — Switching Obligations Cloud Services Q2 2025 published: 2025-03-01 effective: 2025-06-01 identified_by: Compliance Officer identified_date: 2025-03-05 summary: | Establishes criteria for determining 'significant incidents' under NIS2 Art.23. Introduces quantitative thresholds: incidents affecting >10% of customers or causing >€500k financial loss are automatically significant. Standardizes cross-border notification format and introduces new API for reporting to national competent authorities. impact_assessment: affects_controls: [CTL-IR-001, CTL-IR-002, CTL-NIS2-023] affects_procedures: [IRP-001-Incident-Response-Procedure] effort_estimate: medium # low/medium/high compliance_deadline: 2025-05-15 # 2 weeks before effective date actions: - action_id: ACT-001 description: Update IRP-001 with quantitative significance thresholds owner: CISO due: 2025-04-30 status: in_progress - action_id: ACT-002 description: Test new NCA reporting API and update notification scripts owner: IT Security Lead due: 2025-05-10 status: planned closed: false board_notified: 2025-03-10 board_minute_ref: BOARD-2025-Q1-MIN-08
NIS2 Article 20 explicitly requires that management bodies of essential and important entities approve cybersecurity risk management measures and oversee their implementation. Board members who fail to implement measures can be temporarily barred from management functions. This makes board-level compliance reporting not just governance best practice but a personal liability management requirement for board members.
Effective board compliance reports are brief, factual, and actionable. They do not include technical detail — they include red/amber/green status, trend direction, open risks requiring board decision, and regulatory changes requiring awareness. The S23k format targets a two-page maximum quarterly board compliance summary.
Board Report Structure
| Section | Content | Length |
|---|---|---|
| 1. Compliance Posture Summary | RAG status per framework (NIS2, GDPR, DORA, EU Data Act/ABRO, ISO), trend vs. last quarter, overall score | Half page |
| 2. Open Risks Requiring Board Decision | Each risk breaching risk appetite threshold, treatment option, recommended decision | One item per risk |
| 3. Regulatory Changes This Quarter | New or changed regulations, effective dates, compliance status | Bullet points |
| 4. Incidents and Near-Misses | Summary of material security events, regulatory notifications made, status | One paragraph |
| 5. Key Activities Next Quarter | Planned assessments, audits, certification renewals, major control implementations | Bullet points |
The board report itself is compliance evidence. It demonstrates that management bodies were informed of cybersecurity risks and measures as required by NIS2 Article 20. Store board compliance reports with the meeting minutes, maintain them for 5+ years, and ensure they are referenced in your compliance evidence architecture. An auditor finding quarterly board compliance reports in your dossier is a strong positive indicator of mature governance.
GDPR Chapter V restricts transfers of personal data to third countries (outside the EU/EEA) and requires documented legal mechanisms for any permitted transfers. Following the invalidation of Privacy Shield and the adoption of new Standard Contractual Clauses in 2021, organizations must maintain a current transfer impact assessment (TIA) for data flows to high-risk jurisdictions, particularly the United States.
Transfer Mechanism Matrix
| Destination | Available Mechanism | TIA Required | Evidence Required |
|---|---|---|---|
| EU/EEA countries | No mechanism needed (GDPR applies) | No | Confirm data remains in EEA in RoPA |
| United States | EU-US Data Privacy Framework (DPF) or SCCs Module 1–4 | Yes — US surveillance laws | DPF certification evidence OR executed SCCs + TIA document |
| UK | UK Adequacy Decision (valid until June 2025 — check renewal) | Monitor adequacy decision renewal | Record of transfer + adequacy decision reference |
| Israel, Japan, Canada (commercial), Switzerland | Adequacy Decision | No (but monitor for changes) | Record of adequacy basis in RoPA |
| India, Brazil, others | SCCs Module 1–4 (as applicable) + TIA | Yes — assess government access laws | Executed SCCs + TIA + supplementary measures if needed |
The most common undocumented cross-border transfer is not your own system architecture — it is data flowing to US-based sub-processors of European SaaS vendors. When a European CRM vendor uses US-based analytics, email delivery, or customer support tools, your data may be transferred to the US under mechanisms you have never reviewed. Your sub-processor monitoring process (Section 4.10) must catch and document these flows.
NIS2 Article 21(f) requires organizations to demonstrate the effectiveness of their cybersecurity measures. DORA Article 26 introduces Threat-Led Penetration Testing (TLPT) for financial entities identified by supervisors — a more sophisticated form of red team exercise guided by real threat intelligence. For most organizations, annual penetration testing with documented findings and remediation provides the required evidence of measure effectiveness.
Pen Test Evidence Package Structure
- Scope document: Written, signed scope agreement between your organization and the testing firm, specifying systems in scope, test dates, and rules of engagement.
- Executive summary report: Risk-rated summary of findings, suitable for board reporting. Redact technical details for this copy.
- Technical report (restricted): Full findings with exploitation details. Classified — access restricted to security team and authorized reviewers.
- Remediation tracking: Each finding mapped to a ticket or remediation action with target date and closure evidence. Demonstrate that findings are addressed, not just noted.
- Re-test confirmation: Evidence that critical and high findings were re-tested after remediation and confirmed closed.
- Tester credentials: Evidence of tester qualifications (OSCP, CREST, CHECK) and firm credentials. Auditors verify that testing was performed by qualified parties.
Vulnerability Management Evidence Automation
#!/bin/bash # s23k-vuln-evidence.sh # Runs vulnerability scan and archives evidence automatically # Requires: nmap (open-source) + OpenVAS or Trivy for container scanning DATE=$(date -u +"%Y-%m-%d") TIMESTAMP=$(date -u +"%Y-%m-%dT%H:%M:%SZ") OUTPUT_DIR=/compliance/evidence/vulnerability-scans/$DATE mkdir -p $OUTPUT_DIR TARGET_NETWORKS="10.0.0.0/24 10.0.1.0/24" # adjust to your networks echo "[$(date -u)] Starting vulnerability evidence collection" # Network port scan (evidence of attack surface) nmap -sV -oX $OUTPUT_DIR/nmap-scan.xml \ -oN $OUTPUT_DIR/nmap-scan.txt \ $TARGET_NETWORKS 2>> $OUTPUT_DIR/scan.log # Container image vulnerability scan (if Docker present) if command -v trivy &>/dev/null; then for image in $(docker images --format "{{.Repository}}:{{.Tag}}" 2>/dev/null | head -20); do safe_name=$(echo $image | tr '/:' '--') trivy image --format json \ --output $OUTPUT_DIR/trivy-$safe_name.json \ "$image" 2>> $OUTPUT_DIR/scan.log done fi # Generate evidence manifest cat > $OUTPUT_DIR/MANIFEST.json << EOF { "scan_date": "$DATE", "generated_at": "$TIMESTAMP", "scan_type": "automated_vulnerability_evidence", "targets": "$TARGET_NETWORKS", "compliance_reference": "NIS2 Art.21(f) — Effectiveness of measures", "files": $(ls $OUTPUT_DIR/*.xml $OUTPUT_DIR/*.json $OUTPUT_DIR/*.txt 2>/dev/null | python3 -c " import sys, json, hashlib files = [l.strip() for l in sys.stdin] result = [] for f in files: try: h = hashlib.sha256(open(f,'rb').read()).hexdigest() result.append({'file': f.split('/')[-1], 'sha256': h}) except: pass print(json.dumps(result, indent=2)) ") } EOF echo "[OK] Vulnerability evidence archived: $OUTPUT_DIR" # Send summary to compliance team echo "Vulnerability evidence collected for $DATE. Location: $OUTPUT_DIR" | \ mail -s "S23k Vulnerability Evidence — $DATE" [email protected]
NIS2 Article 20 requires management bodies to undertake training and Article 21(g) mandates basic cyber hygiene and cybersecurity training for staff. Auditors consistently request training completion evidence — not a description of your training programme, but records showing which employees completed which training on which date.
Training Evidence Requirements
| Training Type | Target Audience | Frequency | Evidence Required |
|---|---|---|---|
| Security awareness fundamentals | All staff | Annual | Completion certificates with employee name, date, score (if applicable) |
| Phishing simulation | All staff | Quarterly | Click rate trends, completion of follow-up training for clickers |
| GDPR/data protection basics | All staff with data access | Annual | Completion record + short assessment pass mark |
| NIS2 / cyber regulation awareness | Management + IT staff | Annual or on regulation change | Attendance record (signed or digital), agenda, presenter |
| Incident response procedures | IT security + management | Bi-annual (training + drill) | Drill exercise report, participant list, findings, actions |
| Board cybersecurity | Board members | Annual (NIS2 Art. 20 explicit) | Attendance confirmation with date + programme overview |
Training records must be retained for the duration of employment plus typically 3 years. If an incident occurs and an employee was not adequately trained, the training record becomes key evidence in both regulatory investigations and civil liability claims. Use your HR system as the system of record, with quarterly exports to your compliance evidence repository.
Continuous compliance monitoring is the capstone of Phase 6 and the bridge to Level 4 maturity. Rather than point-in-time evidence collection, continuous monitoring maintains an ongoing, queryable record of your compliance posture — enabling both proactive deviation detection and historical compliance attestation for any past date.
Architecture Overview
The S23k continuous monitoring architecture uses four layers: Collection (raw evidence from scripts and platform APIs), Aggregation (central evidence repository with time-series indexing), Analysis (automated deviation detection against policy baselines), and Reporting (dashboards and scheduled reports for different audiences).
Tooling — Open Source Monitoring Stack
Compliance KPI Dashboard — Key Metrics
| KPI | Formula | Target | Alert Threshold |
|---|---|---|---|
| RoPA Currency Rate | Entries reviewed <90 days / Total entries × 100 | >95% | <80% |
| Control Implementation Rate | Implemented controls / Total applicable controls × 100 | >90% | <80% |
| Access Review Completion | Access reviews completed on time / Total scheduled × 100 | 100% | <90% |
| Vendor DPA Currency | DPAs updated <12 months / Total vendors × 100 | >95% | <85% |
| Data Residency Compliance | EU-region resources / Total production resources × 100 | 100% | <98% |
| IR Test Currency | Days since last IR test | <180 days | >270 days |
| Patch Coverage | Systems patched within SLA / Total systems × 100 | >95% | <85% |
| Training Completion | Staff with current training / Total staff × 100 | >95% | <90% |
Compliance Dashboard Setup — Grafana
#!/usr/bin/env python3
# s23k-metrics-publisher.py
# Publishes compliance KPIs to InfluxDB for Grafana dashboards
# pip install influxdb-client pyyaml
from influxdb_client import InfluxDBClient, Point
from influxdb_client.client.write_api import SYNCHRONOUS
import yaml, datetime, os, subprocess
INFLUXDB_URL = os.environ.get("INFLUXDB_URL", "http://localhost:8086")
INFLUXDB_TOKEN = os.environ.get("INFLUXDB_TOKEN", "")
INFLUXDB_ORG = os.environ.get("INFLUXDB_ORG", "s23k-compliance")
INFLUXDB_BUCKET = os.environ.get("INFLUXDB_BUCKET", "compliance-metrics")
ROPA_DIR = "/compliance/gdpr/ropa/"
CONTROLS_FILE = "/compliance/iso27001/controls.yaml"
def calc_ropa_currency():
today = datetime.date.today()
total, current = 0, 0
from pathlib import Path
import yaml as _yaml
for path in Path(ROPA_DIR).glob("*.yaml"):
total += 1
try:
with open(path) as f:
ropa = _yaml.safe_load(f)
lu = ropa.get("last_updated")
if lu:
days = (today - datetime.date.fromisoformat(str(lu))).days
if days < 90:
current += 1
except:
pass
return (current / total * 100) if total else 0
def calc_control_implementation():
try:
with open(CONTROLS_FILE) as f:
import yaml as _yaml
data = _yaml.safe_load(f)
controls = data.get("controls", [])
total = len(controls)
implemented = sum(1 for c in controls if c.get("status") == "implemented")
return (implemented / total * 100) if total else 0
except:
return 0
def publish_metrics():
client = InfluxDBClient(url=INFLUXDB_URL, token=INFLUXDB_TOKEN, org=INFLUXDB_ORG)
write_api = client.write_api(write_options=SYNCHRONOUS)
now = datetime.datetime.utcnow()
metrics = {
"ropa_currency_pct": calc_ropa_currency(),
"control_implementation_pct": calc_control_implementation(),
}
points = []
for metric_name, value in metrics.items():
p = Point("compliance_kpi").tag("source", "s23k-automation")\
.field(metric_name, value).time(now)
points.append(p)
write_api.write(bucket=INFLUXDB_BUCKET, record=points)
print(f"[OK] Published {len(points)} compliance metrics to InfluxDB")
for k, v in metrics.items():
print(f" {k}: {v:.1f}%")
client.close()
if __name__ == "__main__":
publish_metrics()
Before proceeding to Phase 7 (Business Continuity & Operational Sovereignty), verify these Phase 6 deliverables are in place: Evidence repository initialized with version control ▸ RoPA documented and staleness checker operational ▸ NIS2 Article 21 controls mapped with evidence ▸ Audit trail architecture implemented with immutable storage ▸ IR procedure tested within 12 months ▸ Vendor contract compliance matrix current ▸ Automated compliance evidence collection running via cron ▸ Board compliance report generated quarterly ▸ Compliance monitoring dashboard operational ▸ Assessment score ≥43/60 (Level 3 threshold).
