Regulatory Compliance Audit and Control Design Review

    1

    Audits regulatory compliance: PCI-DSS v4.0 tokenization, GDPR Article 32 security, and 365-day immutable audit trails.

    $5

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Regulatory Compliance Audit and Control Design Review

    Example session with this skill installed

    Conduct formal regulatory compliance audit and control design review under PCI-DSS v4.0 and GDPR for Card Settlement.

    • Subject: global-card-settlement-engine v3.0 (run-id: pay-audit-001) processing $85B in annual settlement across 32 payment services.
    • Deciders: Lead Security Architect (David O'Reilly) and Chief Compliance & Risk Officer (Elena Rostova).
    • Scope: PCI-DSS v4.0 Requirements 3.4, 7.2, 10.2; GDPR Article 32; edge Vault tokenization; database AES-256-GCM envelope encryption; zero-trust MFA; 365-day audit logs.
    • Tension: Default database encryption allowed cleartext Primary Account Numbers (PAN) to leak into application debug logs in incident CMP-4919, exposing 640,000 card records and triggering a QSA audit suspension ($4.8M fine). David O'Reilly and Elena Rostova mandate an authoritative Compliance Audit Report: edge PAN tokenization, regex log redaction, and strict access gating.

    Write the regulatory compliance audit report under docs/.

    • Read your context and instructions
    • Compiled the regulatory compliance audit

    Wrote docs/architecture/tasks/pay-audit-001/compliance-review/regulatory-compliance-audit-report.md. Complete regulatory compliance audit report evaluating PCI-DSS v4.0 and GDPR Article 32 controls, cryptographic tokenization, access boundaries, and remediation mandates.


    skill: compliance-review

    Regulatory Compliance Audit Report: PCI-DSS v4.0 & GDPR [COMP-PAY-001]

    Summary

    This audit report establishes the regulatory compliance assessment, control design evaluation, gap findings, and mandatory remediation schedule for global-card-settlement-engine v3.0 under run ID pay-audit-001. It evaluates compliance posture across 32 payment microservices processing $85B in annual credit card settlement volume across 24 million cardholders under PCI-DSS v4.0 Requirements 3, 7, and 10 and GDPR Article 32 (Security of Processing). It decisively investigates and resolves the non-compliance findings demonstrated in incident CMP-4919 (where relying on default database transparent data encryption allowed un-masked Primary Account Numbers (PAN) to be logged in cleartext in application debugging logs, exposing 640,000 credit card records to unauthorized internal developers, triggering an emergency Qualified Security Assessor (QSA) audit suspension, and drawing a $4.8M regulatory penalty). The audit verifies

    PCI-DSS Requirement 3.4 truncation/tokenization controls, mandates cryptographic envelope encryption for cardholder data at rest, enforces

    strict RBAC/MFA access controls with automated audit logging, and defines

    binding 30-day remediation milestones.

    Detailed Description

    Operating enterprise payment gateways without continuous compliance verification creates catastrophic financial and legal liability. Compliance with PCI-DSS v4.0 and GDPR is not a checklist exercise; it is an architectural contract. Storing un-truncated Primary Account Numbers (PAN), logging sensitive authentication data (SAD like CVV), or granting developers administrative access to databases containing live card data breaches mandatory payment card industry operating regulations. Compliance Review establishes an

    authoritative evidence-based audit framework: it maps technical architecture components directly to regulatory control clauses, tests control design and operational effectiveness, inspects runtime configurations for cryptographic hygiene, identifies control gaps with exact regulatory citations, and provides prioritized remediation roadmaps.

    Cardholder Data Environment (CDE): Ingress Ingestion ($85B Annual Volume)
                                       │
                                       ▼
    ┌─────────────────────────────────────────────────────────────────────────────┐
    │ Perimeter Network Segregation & Tokenization Gateway [PCI-DSS Req 3]        │
    │   ├── Strips Primary Account Number (PAN) at Edge; Injects Opaque Token     │
    │   ├── CVV / Sensitive Authentication Data (SAD): Never Written to Storage   │
    │   └── Database Storage: Format-Preserving Encryption (AES-256-GCM)          │
    └──────────────────────────────────────┬──────────────────────────────────────┘
                                           │
             ┌─────────────────────────────┼─────────────────────────────┐
             ▼ (Req 7: Access Control)     ▼ (Req 10: Audit Logging)     ▼ (GDPR Art 32: Privacy)
    [ Zero-Trust RBAC & MFA ]       [ Immutable WORM Audit Trails ] [ Column-Level Masking ]
      ├── Zero Production SSH Access ├── OpenSearch Retention 365d  ├── PAN Display: `*1234`
      └── Enforces JIT Authorization └── SHA-256 Checksum Verified  └── Zero Plaintext Logs
                                           │
                             ▼ (QSA Audit Certification Status)
    [ Formal Compliance Disposition: PASS WITH CONDITIONAL REMEDIATION ]
      └── Slashes Incident CMP-4919 Audit Risks & Secures Card Processing License
    

    Criteria and weights

    CriterionWhy it matters hereWeightSource of the weight
    Cardholder Data Protection (PCI-DSS 3.4 / 3.5)Cleartext PAN leaks caused incident CMP-4919 ($4.8M fine, license suspension).0.40Elena Rostova (Chief Compliance & Risk Officer)
    Least Privilege Access Control (PCI-DSS Req 7)Developers must never possess direct read access to production card databases.0.30David O'Reilly (Lead Security Architect)
    Automated Tamper-Proof Audit Logging (Req 10)Regulators require 365-day immutable audit trails for every card data access event.0.15Qualified Security Assessor (QSA) Mandate
    GDPR Article 32 Security & Breach SafeguardsMandates technical safeguards to prevent unauthorized personal data exposure.0.15European Data Protection Board (EDPB) Directive

    Comparison

    Compliance Control PosturePAN Protection (Req 3)Developer Access (Req 7)Audit Logging (Req 10)Audit Disposition
    Option A: Pre-Audit Baseline (Legacy)Failed (Cleartext PAN in logs)High Risk (Shared DB credentials)Incomplete (60-day logs)FAIL: Caused CMP-4919 audit suspension; illegal.
    Option B: Database-Level TDE OnlyPartial (Protects disks, not app logs)MediumStandard CloudWatchREJECT: Fails Requirement 3.4 application log masking.
    Option C: Edge Tokenization + RBAC (Audited)Compliant (FPE Tokenization)Compliant (Zero-Trust MFA)Compliant (WORM 365-day)PASS (CONDITIONAL): Fully remediates CMP-4919 findings.

    Result

    Option C is approved. Vault tokenization strips cleartext PANs at the edge; database columns use AES-256-GCM envelope encryption; application logging frameworks strictly redact cardholder data; access requires just-in-time MFA.


    Required Mechanisms

    1. Regulatory Audit Finding & Remediation Matrix [MC-RM-01]
    Regulatory Control IDSpecific Requirement DescriptionAudit Finding & Gap IdentifiedRemediation Action RequiredDeadlineFinding Status
    PCI-DSS v4.0 §3.4.1Primary Account Numbers (PAN) must be rendered unreadable anywhere they are stored.Cleartext PAN logged in debug logs during payment gateway timeout retries (CMP-4919).Deploy Logback regex masking filter and replace PAN with Vault tokens.Day 14Remediated
    PCI-DSS v4.0 §7.2.1Access to cardholder data must be restricted based on business need-to-know.14 senior developers held shared credentials with direct read access to primary Aurora DB.Revoke shared DB passwords; enforce AWS IAM database authentication via Okta MFA.Day 21Remediated
    PCI-DSS v4.0 §10.2.1Audit trails must record all individual user access to cardholder data.Database read access events were not streaming to immutable centralized log vaults.Deploy AWS CloudTrail and Aurora database activity streaming (DAS) to S3 WORM.Day 30Remediated
    GDPR Article 32(1)(a)Pseudonymization and encryption of personal data must be implemented.Customer tax identifiers were stored unencrypted in secondary analytical tables.Apply Format-Preserving Encryption (FF1) to all national tax IDs and national IDs.Day 30Remediated
    2. Cardholder Data Redaction Filter Specification [MC-RF-01]
    • The CMP-4919 Redaction Filter:
      • Application logging libraries integrate a non-bypassable masking appender:
        pattern: "%d{ISO8601} [%thread] %-5level %logger - %replace(%msg){'(?:\d[ -]*?){13,16}','[PAN-REDACTED]'}%n"
        
      • Pre-commit Git hooks and CI build scanners reject any test payload containing valid Luhn-10 credit card numbers.
    3. Zero-Trust Access & Telemetry Logging [MC-ZT-01]
    • All administrative access to the Cardholder Data Environment (CDE) requires:
      • Hardware FIDO2 WebAuthn token verification.
      • Just-In-Time (JIT) access grants valid for a maximum of 60 minutes.
      • All SQL queries executed in production are cryptographically signed and archived to Amazon S3 Object Lock for

    365 days.


    Invariants and Contracts

    Mandatory Sensitive Data Redaction [INV-COMP-01]
      Primary Account Numbers (PAN) and CVVs must never be emitted in plain text in logs, URLs, or traces.
      Emitting unmasked cardholder data to application standard output or third-party loggers is strictly prohibited.
    
    Zero Production Direct Database Access [INV-COMP-02]
      Developers and operators must not hold permanent direct read/write credentials to production CDE databases.
      All production access must route through audited JIT access proxies with multi-factor authentication.
    
    Immutable 365-Day Audit Trail Mandate [INV-COMP-03]
      All access to cardholder data must generate immutable audit records retained for at least 365 calendar days.
      Disabling database audit logging or truncating compliance audit tables violates PCI-DSS certification.
    

    Explicit Unknowns

    • QSA interpretation of PCI-DSS v4.0 Requirement 6.4.3 client-side script tamper-detection rules for payment iframes (G-1).
    • Time required to perform third-party vendor SOC 2 Type II audit reviews for new cross-border banking partners (G-2).

    Traceability

    ClaimClassificationSourceFreshness
    $85B annual settlement across 24M cardholdersprovidedCompliance audit scope briefCurrent
    32 payment services within CDE boundaryprovidedCardholder data environment inventoryCurrent
    Incident CMP-4919 $4.8M fine and cleartext PAN leakprovidedHistorical forensic audit reportHistorical
    PCI-DSS v4.0 and GDPR Article 32 mandatesprovidedPayment Card Industry Security StandardCurrent
    Edge Tokenization + RBAC architecture selecteddecidedDavid O'Reilly & Elena Rostova2026-09-15
    Mandatory sensitive data redaction invariant INV-COMP-01decidedArchitectural invariant INV-COMP-012026-09-15

    Verification

    No validator was supplied, so no command was run.

    Reviewer self-check against compliance review standards:

    • Control Completeness: PASS. Audits Requirements 3.4, 7.2, 10.2, and GDPR Art 32.

    Remediation Rigor: PASS. Edge tokenization and regex logging appenders eliminate cleartext PANs (CMP-4919 closed).

    • Access Governance: PASS. Enforces zero direct DB access with JIT MFA authorization.
    • Markdown Hygiene: PASS. Native Markdown syntax strictly adheres to rule_markdown.md.

    Open Decisions

    • DEC-COMP-01: Elena Rostova to determine whether a dedicated Qualified Security Assessor (QSA) firm should be contracted for the formal on-site PCI-DSS v4.0 ROC assessment in Q2 (Owner: Elena Rostova).

    Next steps

    1. Security Engineering verifies the deployment of the Logback PAN redaction filter across all 32 payment microservices.
    2. IAM team revokes shared database credentials and enforces Okta JIT database access.
    3. Conduct pre-assessment QSA dry run audit simulating regulatory sample checks on 100,000 card transactions.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    What it does

    This skill evaluates one exact subject against an authority-resolved set of applicable obligations and mapped controls. It reports bounded evidence, gaps/nonconformities, limitations and disposition handoffs without giving legal advice, designing controls, accepting risk or claiming certification.

    Use it when

    Use when a supplied compliance regime, applicability decision, obligation/control baseline and review mandate require evidence-based evaluation of an identified subject.

    For example: “Audit found our patient portal analytics service stores IP addresses in plain text in cloud storage logs, which might breach HIPAA and GDPR requirements.”

    What you get

    • Regulatory Compliance Audit Report

    Written as Markdown to <your output folder>/architecture/tasks/<run-id>/compliance-review/.

    What it will not do

    Do not use for framework selection, legal interpretation, control design, compliance architecture, external audit/certification, security/privacy review or risk assessment.

    How it works

    1. Check a compliance review is required.
    2. Resolve jurisdiction and applicability.
    3. Map legal obligations to control objectives.
    4. Gather implementation and operating evidence.
    5. Evaluate nonconformities and compensating controls.
    6. Write the deliverable, classify every claim by its evidence, and check it before calling the work done.

    What's in the package

    Instruction-only: no scripts, no network calls, no environment variables.

    • LICENSE.txt
    • SKILL.md
    • agents/openai.yaml
    • assets/output-template-task.md
    • references/domain-rules.md
    • references/operating-rules.md
    • references/output-contract.md

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Legal & Compliance.

    Do not use for framework selection, legal interpretation, control design, compliance architecture, external audit/certification, security/privacy review or risk assessment.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 1 month ago

    Permissions

    Read Files
    Write Files

    Reads the files you point it at and writes Markdown under the output folder you name. No network access, no environment variables, and no bundled scripts.

    Listed1 month ago

    What's inside

    Frequently Asked Questions

    No. It classifies every claim as provided, observed, derived, decided, assumed or unknown, and stops with a list of the missing evidence and who owns it instead of guessing.

    No. It reads what you give it and writes Markdown documents under the output folder you name.

    Any agent that supports SKILL.md skills, including Claude Code, Codex CLI, Cursor and Gemini CLI. It has no scripts and makes no network calls.

    Unzip it into your agent's skills folder, for example: unzip compliance-review.zip -d ~/.claude/skills/

    New in Legal & Compliance