Pci dss v4

From frank-luongt/faos-skills-marketplace · View interactive version

Pci dss v4 is an AI agent skill from the GitHub repository frank-luongt/faos-skills-marketplace. PCI-DSS v4.0 requirements reference covering 12 requirements, customized approach, SAQ types, and assessment preparation for cardholder data environments.

How to use this skill

Skill file

<!-- AUTO-GENERATED by export-plugins.py — DO NOT EDIT -->


name: pci-dss-v4

description: PCI-DSS v4.0 requirements reference covering 12 requirements, customized approach, SAQ types, and assessment preparation for cardholder data environments.

tags: [compliance, security]


PCI-DSS v4.0 Requirements Reference

Overview

The Payment Card Industry Data Security Standard (PCI-DSS) version 4.0 is a set of

security requirements designed to protect cardholder data and sensitive authentication

data wherever it is processed, stored, or transmitted. Released in March 2022 by the

PCI Security Standards Council (PCI SSC), v4.0 replaces v3.2.1 with a transition

deadline of March 31, 2025 for mandatory adoption.

PCI-DSS v4.0 introduces significant changes:

controls, validated through a risk-based methodology.

frequencies based on their own risk analysis rather than fixed intervals.

The standard applies to all entities that store, process, or transmit cardholder data

(CHD) or sensitive authentication data (SAD), and to entities that can affect the security

of the cardholder data environment (CDE).

When to Use This Skill

How It Works

Step 1: Determine Scope

Identify all system components, people, and processes that are in scope:

Step 2: Select SAQ Type

Choose the appropriate Self-Assessment Questionnaire based on your processing method:

| SAQ Type | Description | Applicability |

|----------|-------------|---------------|

| SAQ A | Card-not-present, fully outsourced | E-commerce with redirect (Stripe Checkout, PayPal) |

| SAQ A-EP | E-commerce with partial outsourcing | Website controls payment page elements |

| SAQ B | Imprint machines or standalone terminals | No electronic CHD storage |

| SAQ B-IP | Standalone PTS terminals with IP connection | PIN entry devices, no CHD storage |

| SAQ C | Payment application systems | Internet-connected payment applications |

| SAQ C-VT | Virtual terminal, manual entry | Web-based virtual terminal, one transaction at a time |

| SAQ D | All others | Merchants/service providers not qualifying for other SAQs |

| SAQ P2PE | Hardware P2PE terminal | Validated P2PE solution, no electronic CHD storage |

Step 3: Map Requirements to Controls

For each of the 12 PCI-DSS requirements, map your existing controls and identify gaps.

Use either the Defined Approach (prescriptive controls) or Customized Approach (objective-based).

Step 4: Implement Controls

Deploy technical and operational controls to meet each requirement:

Step 5: Complete Assessment

Execute the assessment process:

The 12 PCI-DSS Requirements by Goal

Goal 1: Build and Maintain a Secure Network and Systems

Requirement 1: Install and Maintain Network Security Controls

Requirement 2: Apply Secure Configurations to All System Components

Goal 2: Protect Account Data

Requirement 3: Protect Stored Account Data

Requirement 4: Protect Cardholder Data with Strong Cryptography During Transmission

that TLS 1.0/1.1 are no longer acceptable.

Goal 3: Maintain a Vulnerability Management Program

Requirement 5: Protect All Systems and Networks from Malicious Software

to all system types, with targeted risk analysis for those not commonly affected.

Requirement 6: Develop and Maintain Secure Systems and Software

automated WAF inspection now an option; inventory of bespoke software required.

Goal 4: Implement Strong Access Control Measures

Requirement 7: Restrict Access to System Components and Cardholder Data by Business Need to Know

Requirement 8: Identify Users and Authenticate Access to System Components

all non-console admin access; service accounts must be managed and inventoried.

Requirement 9: Restrict Physical Access to Cardholder Data

Goal 5: Regularly Monitor and Test Networks

Requirement 10: Log and Monitor All Access to System Components and Cardholder Data

review frequency for other logs.

Requirement 11: Test Security of Systems and Networks Regularly

required; penetration testing methodology must cover entire CDE perimeter.

Goal 6: Maintain an Information Security Policy

Requirement 12: Support Information Security with Organizational Policies and Programs

senior management accountability for PCI-DSS compliance program.

Key Changes from v3.2.1 to v4.0

| Area | v3.2.1 | v4.0 |

|------|--------|------|

| Approach | Defined Approach only | Defined Approach + Customized Approach |

| MFA scope | Remote access only | All access into the CDE |

| Password length | 7 characters minimum | 12 characters minimum |

| Disk encryption | Acceptable for PAN | No longer sole mechanism |

| Log review | Daily manual review | Automated mechanisms required |

| Risk analysis | Limited use | Targeted risk analysis for flexible frequencies |

| WAF | Required for web apps | WAF or automated vulnerability solution |

| Phishing | Not explicitly addressed | Anti-phishing mechanisms required |

| Service accounts | Limited coverage | Full inventory and management required |

Examples

Example 1: Network Segmentation Validation

cde_segmentation:
  description: "Network segmentation controls isolating the CDE"
  last_validated: "2026-02-15"
  validation_method: "Penetration test + firewall rule review"

  cde_network:
    subnet: "10.100.0.0/24"
    vlan: 100
    components:
      - name: "payment-api"
        ip: "10.100.0.10"
        function: "Processes card transactions via Stripe API"
        stores_chd: false
        transmits_chd: true
      - name: "tokenization-service"
        ip: "10.100.0.20"
        function: "Tokenizes PAN before storage"
        stores_chd: false  # Only tokens stored
        transmits_chd: true

  segmentation_controls:
    - control: "Firewall between CDE (VLAN 100) and corporate (VLAN 200)"
      type: "network_security_control"
      rules:
        - direction: inbound
          source: "10.200.0.0/24"
          destination: "10.100.0.0/24"
          action: deny_all
          exceptions:
            - port: 443
              source: "10.200.0.50"  # Admin jump box only
              protocol: tcp
              justification: "Administrative access with MFA"
        - direction: outbound
          source: "10.100.0.0/24"
          destination: "0.0.0.0/0"
          action: deny_all
          exceptions:
            - port: 443
              destination: "api.stripe.com"
              protocol: tcp
              justification: "Payment processor API"
            - port: 443
              destination: "10.200.0.30"  # Log collector
              protocol: tcp
              justification: "Centralized audit logging"

    - control: "Cloud security groups (AWS)"
      type: "network_security_control"
      rules:
        - sg_name: "cde-payment-api-sg"
          inbound:
            - port: 443
              source: "sg-alb-internal"
              justification: "Internal ALB for payment traffic"
          outbound:
            - port: 443
              destination: "pl-stripe-api"  # AWS prefix list
              justification: "Stripe API calls"

  validation_results:
    penetration_test_date: "2026-02-10"
    assessor: "External QSA firm"
    findings:
      - severity: "pass"
        description: "No unauthorized connectivity from corporate to CDE"
      - severity: "pass"
        description: "CDE egress restricted to documented destinations only"
      - severity: "info"
        description: "Recommend adding network flow logging for CDE subnets"

Example 2: Encryption Requirements for Cardholder Data

encryption_requirements:
  standard: "PCI-DSS v4.0"
  last_reviewed: "2026-02-20"

  data_at_rest:
    requirement: "Req 3.5 -- PAN rendered unreadable anywhere stored"
    current_implementation:
      method: "Application-level encryption"
      algorithm: "AES-256-GCM"
      key_management:
        kms: "AWS KMS"
        key_type: "Customer-managed CMK"
        rotation: "Annual automatic rotation"
        split_knowledge: true
        dual_control: true
      note: >
        Disk-level encryption (e.g., EBS encryption) is used as defense-in-depth
        but is NOT the sole mechanism per PCI-DSS v4.0 Req 3.5.1.2.

    tokenization:
      provider: "Stripe"
      method: "Payment method tokenization"
      pan_stored: false
      token_format: "tok_xxxxxxxxxxxx"
      note: "PAN never enters our systems; only tokens stored in application DB"

  data_in_transit:
    requirement: "Req 4.2 -- Strong cryptography during transmission"
    current_implementation:
      external:
        protocol: "TLS 1.3"
        cipher_suites:
          - "TLS_AES_256_GCM_SHA384"
          - "TLS_CHACHA20_POLY1305_SHA256"
        certificate_provider: "AWS ACM"
        hsts: true
        hsts_max_age: 31536000
      internal:
        protocol: "mTLS (mutual TLS 1.3)"
        service_mesh: "Istio"
        certificate_authority: "Internal CA (cert-manager)"
        rotation: "Every 24 hours (automatic)"

  key_management:
    requirement: "Req 3.6 and 3.7 -- Key management procedures"
    procedures:
      - process: "Key generation"
        method: "AWS KMS hardware security module (FIPS 140-2 Level 3)"
      - process: "Key distribution"
        method: "KMS grants and key policies; keys never leave HSM boundary"
      - process: "Key storage"
        method: "AWS KMS (HSM-backed); no plaintext keys stored anywhere"
      - process: "Key rotation"
        method: "Annual automatic rotation; old key versions retained for decryption"
      - process: "Key destruction"
        method: "KMS key deletion with 30-day waiting period; logged and audited"
      - process: "Split knowledge / dual control"
        method: "Key policy requires 2 IAM principals from different teams to modify"

Best Practices

Do This

Don't Do This

Security Checklist

Scoping:

Network and Systems (Req 1-2):

Data Protection (Req 3-4):

Vulnerability Management (Req 5-6):

Access Control (Req 7-9):

Monitoring and Testing (Req 10-11):

Policy and Program (Req 12):

Related Skills

Additional Resources

<!-- Source: .faos/custom/skills/security/pci-dss-v4/SKILL.md -->

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.