[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6PBEDR29TDKCKG5JKTDNMHA":3,"skill-same:01M6PBEDR29TDKCKG5JKTDNMHA":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":22,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":32,"commitSha":56,"skillDirectory":57,"forksCount":13,"repositoryHtmlUrl":58,"repositoryHomepageUrl":6,"ownerHtmlUrl":59,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":60,"install":61,"resources":74},"01M6PBEDR29TDKCKG5JKTDNMHA","pci-dss-compliance",null,"Implement PCI DSS requirements for payment card data. Configure cardholder data environment and security controls. Use when processing payment cards.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fpci-dss-compliance\u002FSKILL.md",[17],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"pci","pci dss compliance","compliance","dss","agent-skills","for","processing","controls","card","main","community","safe","environment","configure","devops-security","data","license","framework","change","security","2026-11-10 10:12:30",false,"---\nname: pci-dss-compliance\ndescription: Implement PCI DSS requirements for payment card data. Configure cardholder\n  data environment and security controls. Use when processing payment cards.\ncategory: security\nrisk: safe\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Checklist and framework guidance; no privileged tooling required. Apply\n  controls through your own change process.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# PCI DSS Compliance\n\nImplement PCI DSS v4.0 requirements for protecting cardholder data across the Cardholder Data Environment (CDE), including network segmentation, encryption, access controls, and ongoing testing.\n\n## When to Use\n\n- Processing, storing, or transmitting payment card data\n- Scoping the Cardholder Data Environment for PCI assessment\n- Selecting the appropriate Self-Assessment Questionnaire (SAQ)\n- Implementing network segmentation to reduce CDE scope\n- Preparing for QSA assessment or ASV scanning\n\n## SAQ Types and Applicability\n\n```yaml\nsaq_types:\n  SAQ_A:\n    description: \"Card-not-present merchants using fully outsourced payment\"\n    applies_when:\n      - All payment processing fully outsourced to PCI-compliant third party\n      - No electronic storage, processing, or transmission of cardholder data\n      - Only payment page redirects or iframes from compliant provider\n    requirements: ~22 questions\n\n  SAQ_A_EP:\n    description: \"E-commerce merchants with website that affects payment security\"\n    applies_when:\n      - E-commerce channel only\n      - Website controls redirect to or loads payment page from third party\n      - No direct processing but website could affect transaction security\n    requirements: ~191 questions\n\n  SAQ_B:\n    description: \"Merchants with only imprint machines or standalone terminals\"\n    applies_when:\n      - Only standalone POS terminals (dial-out or IP connected)\n      - No electronic cardholder data storage\n      - No e-commerce channel\n    requirements: ~41 questions\n\n  SAQ_C:\n    description: \"Merchants with payment application systems connected to internet\"\n    applies_when:\n      - Payment application connected to internet\n      - No electronic cardholder data storage\n      - No e-commerce channel\n    requirements: ~160 questions\n\n  SAQ_D:\n    description: \"All other merchants and all service providers\"\n    applies_when:\n      - Stores cardholder data electronically\n      - Does not fit any other SAQ type\n      - Service providers eligible for SAQ D\n    requirements: \"Full set of PCI DSS requirements\"\n\n  scope_reduction_strategies:\n    - Use tokenization to replace PAN with non-sensitive tokens\n    - Use P2PE (Point-to-Point Encryption) validated solutions\n    - Outsource payment processing to reduce your CDE footprint\n    - Implement network segmentation to isolate CDE\n```\n\n## PCI DSS v4.0 Requirements Overview\n\n```yaml\nrequirements:\n  req_1_network_security:\n    \"1.1\": \"Network security controls defined and maintained\"\n    \"1.2\": \"Network security controls configured and maintained\"\n    \"1.3\": \"Network access to and from CDE is restricted\"\n    \"1.4\": \"Network connections between trusted and untrusted networks controlled\"\n    \"1.5\": \"Risks to CDE from devices connecting to untrusted networks mitigated\"\n\n  req_2_secure_configuration:\n    \"2.1\": \"Secure configuration standards defined and applied\"\n    \"2.2\": \"System components configured and managed securely\"\n\n  req_3_protect_stored_data:\n    \"3.1\": \"Processes for protecting stored account data defined\"\n    \"3.2\": \"Storage of account data is minimized\"\n    \"3.3\": \"Sensitive authentication data not stored after authorization\"\n    \"3.4\": \"PAN masked when displayed (first 6, last 4 maximum)\"\n    \"3.5\": \"PAN secured wherever stored\"\n    \"3.6\": \"Cryptographic keys managed securely\"\n    \"3.7\": \"Key management procedures documented\"\n\n  req_4_transmission_encryption:\n    \"4.1\": \"Strong cryptography protects cardholder data during transmission\"\n    \"4.2\": \"PAN protected when sent via end-user messaging\"\n\n  req_5_malware_protection:\n    \"5.1\": \"Processes to protect against malware defined\"\n    \"5.2\": \"Malware prevented or detected and addressed\"\n    \"5.3\": \"Anti-malware mechanisms active and maintained\"\n    \"5.4\": \"Anti-phishing mechanisms protect against phishing\"\n\n  req_6_secure_development:\n    \"6.1\": \"Secure development processes defined\"\n    \"6.2\": \"Bespoke and custom software developed securely\"\n    \"6.3\": \"Security vulnerabilities identified and addressed\"\n    \"6.4\": \"Public-facing web applications protected against attacks\"\n    \"6.5\": \"Changes to all system components managed securely\"\n\n  req_7_access_restriction:\n    \"7.1\": \"Access to system components and data restricted by business need\"\n    \"7.2\": \"Access appropriately defined and assigned\"\n    \"7.3\": \"Access to system components and data managed via access control\"\n\n  req_8_user_identification:\n    \"8.1\": \"Processes for user identification defined\"\n    \"8.2\": \"User identification and accounts managed\"\n    \"8.3\": \"Strong authentication established\"\n    \"8.4\": \"MFA implemented for all access into CDE\"\n    \"8.5\": \"MFA systems configured to prevent misuse\"\n    \"8.6\": \"System and application accounts managed\"\n\n  req_9_physical_access:\n    \"9.1\": \"Physical access controls defined\"\n    \"9.2\": \"Physical access to CDE managed\"\n    \"9.3\": \"Physical access for personnel and visitors authorized\"\n    \"9.4\": \"Media with cardholder data managed securely\"\n    \"9.5\": \"POI devices protected from tampering\"\n\n  req_10_logging:\n    \"10.1\": \"Audit logging processes defined\"\n    \"10.2\": \"Audit logs record required events\"\n    \"10.3\": \"Audit logs protected from destruction and modification\"\n    \"10.4\": \"Audit logs reviewed for anomalies\"\n    \"10.5\": \"Audit log history retained\"\n    \"10.6\": \"Time synchronization mechanisms configured\"\n    \"10.7\": \"Audit logs retained for at least 12 months (3 months immediately available)\"\n\n  req_11_testing:\n    \"11.1\": \"Security testing processes defined\"\n    \"11.2\": \"Wireless access points managed\"\n    \"11.3\": \"Vulnerabilities identified and addressed\"\n    \"11.4\": \"External and internal penetration testing performed\"\n    \"11.5\": \"Network intrusions and changes detected and responded to\"\n    \"11.6\": \"Unauthorized changes to payment pages detected\"\n\n  req_12_policies:\n    \"12.1\": \"Information security policy established\"\n    \"12.2\": \"Acceptable use policies defined\"\n    \"12.3\": \"Risks to CDE formally identified and managed\"\n    \"12.4\": \"PCI DSS compliance managed\"\n    \"12.5\": \"PCI DSS scope documented and validated\"\n    \"12.6\": \"Security awareness program\"\n    \"12.8\": \"Third-party service providers managed\"\n    \"12.9\": \"TPSPs acknowledge responsibility for cardholder data\"\n    \"12.10\": \"Security incidents responded to immediately\"\n```\n\n## Network Segmentation Architecture\n\n```\n                    ┌──────────────────────────────────────┐\n                    │            INTERNET                    │\n                    └──────────────┬───────────────────────┘\n                                   │\n                    ┌──────────────▼───────────────────────┐\n                    │       DMZ (Public Subnet)              │\n                    │  WAF → Load Balancer → Web Servers     │\n                    └──────────────┬───────────────────────┘\n                                   │ Firewall (Req 1.3)\n                    ┌──────────────▼───────────────────────┐\n                    │    CDE (Cardholder Data Environment)   │\n                    │  ┌─────────┐  ┌──────────┐            │\n                    │  │ Payment │  │ Card DB  │            │\n                    │  │ App     │  │(encrypted)│            │\n                    │  └─────────┘  └──────────┘            │\n                    │  ┌─────────┐  ┌──────────┐            │\n                    │  │Token Svc│  │ HSM\u002FKMS  │            │\n                    │  └─────────┘  └──────────┘            │\n                    └──────────────┬───────────────────────┘\n                                   │ Firewall (Req 1.3)\n                    ┌──────────────▼───────────────────────┐\n                    │     Non-CDE (Corporate Network)        │\n                    │  App servers, internal tools            │\n                    │  (no cardholder data)                   │\n                    └──────────────────────────────────────┘\n```\n\n```bash\n# AWS Security Group for CDE isolation\naws ec2 create-security-group \\\n  --group-name cde-app-sg \\\n  --description \"CDE Application Security Group\" \\\n  --vpc-id vpc-CDE\n\n# Allow only HTTPS from WAF\u002FALB\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-CDE-APP \\\n  --protocol tcp --port 443 \\\n  --source-group sg-ALB\n\n# CDE database - only accessible from CDE app servers\naws ec2 create-security-group \\\n  --group-name cde-db-sg \\\n  --description \"CDE Database Security Group\" \\\n  --vpc-id vpc-CDE\n\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-CDE-DB \\\n  --protocol tcp --port 5432 \\\n  --source-group sg-CDE-APP\n\n# Deny all other inbound by default (security groups are deny-all by default in AWS)\n# Document all rules for Req 1.2 - firewall\u002Fsecurity group documentation\n```\n\n## Encryption and Tokenization\n\n```yaml\nencryption_requirements:\n  stored_data_req_3:\n    pan_encryption:\n      algorithm: AES-256\n      mode: GCM (preferred) or CBC with HMAC\n      key_storage: HSM or dedicated key management service\n      never_store:\n        - Full track data (magnetic stripe)\n        - CVV\u002FCVC\u002FCAV2\n        - PIN \u002F PIN block\n\n    pan_display_masking:\n      rule: \"Show maximum first 6 and last 4 digits\"\n      examples:\n        masked: \"4111 11** **** 1111\"\n        acceptable_for_business: \"First 6 and last 4\"\n      implementation: \"Apply masking at application layer before rendering\"\n\n    key_management_req_3_6:\n      - Generate keys using approved random number generator\n      - Protect keys with key-encrypting keys (KEKs)\n      - Store key components separately (split knowledge, dual control)\n      - Rotate keys at least annually (or per crypto period)\n      - Retire and replace keys when compromised\n      - Document key custodian responsibilities\n\n  transmission_req_4:\n    protocols:\n      required: \"TLS 1.2 or higher\"\n      prohibited: \"SSL, TLS 1.0, TLS 1.1\"\n    cipher_suites:\n      preferred:\n        - TLS_AES_256_GCM_SHA384\n        - TLS_CHACHA20_POLY1305_SHA256\n      minimum: \"128-bit key strength\"\n    certificate_management:\n      - Use certificates from trusted CAs\n      - Verify hostname and certificate validity\n      - Monitor certificate expiration\n\n  tokenization_strategy:\n    description: \"Replace PAN with non-reversible token to reduce CDE scope\"\n    implementation:\n      - Use format-preserving tokens (same length\u002Fformat as PAN)\n      - Token vault in isolated CDE segment\n      - Token-to-PAN mapping encrypted and access-controlled\n      - De-tokenization requires authenticated API call\n      - Log all de-tokenization requests\n    scope_benefit: \"Systems using only tokens are out of PCI scope\"\n```\n\n## Vulnerability Management and Testing\n\n```bash\n# Req 11.3 - Internal vulnerability scanning (quarterly minimum)\n# Using OpenVAS or Nessus\nopenvas-cli --scan-target 10.10.0.0\u002F24 --scan-name \"CDE-Quarterly-Scan\" \\\n  --profile \"PCI DSS\" --output pci-scan-$(date +%Y%m%d).xml\n\n# Req 11.3 - External ASV scanning (quarterly, must pass)\n# Schedule with Approved Scanning Vendor (Qualys, Tenable, etc.)\n# ASV scan must show no vulnerabilities with CVSS >= 4.0\n\n# Req 6.3 - Patch management\n# Check for critical patches on CDE systems\nyum check-update --security  # RHEL\u002FCentOS\napt list --upgradable 2>\u002Fdev\u002Fnull | grep -i security  # Debian\u002FUbuntu\n\n# Req 11.4 - Penetration testing (annual for external, internal, and segmentation)\n# Must be performed by qualified internal resource or third party\n# Test both network layer and application layer\n# Segmentation testing: verify CDE is isolated from non-CDE networks\n\n# Req 11.5 - File integrity monitoring\n# Using AIDE (Advanced Intrusion Detection Environment)\naide --init  # Initialize baseline\naide --check  # Compare against baseline\n\n# OSSEC FIM configuration for CDE systems\n# \u002Fvar\u002Fossec\u002Fetc\u002Fossec.conf\n# \u003Csyscheck>\n#   \u003Cfrequency>3600\u003C\u002Ffrequency>\n#   \u003Cdirectories check_all=\"yes\">\u002Fetc,\u002Fusr\u002Fbin,\u002Fusr\u002Fsbin\u003C\u002Fdirectories>\n#   \u003Cdirectories check_all=\"yes\">\u002Fopt\u002Fpayment-app\u003C\u002Fdirectories>\n# \u003C\u002Fsyscheck>\n```\n\n## Logging and Monitoring (Req 10)\n\n```yaml\nrequired_audit_events:\n  \"10.2.1\": \"All individual user accesses to cardholder data\"\n  \"10.2.2\": \"All actions taken by any individual with root or admin privileges\"\n  \"10.2.3\": \"Access to all audit trails\"\n  \"10.2.4\": \"Invalid logical access attempts\"\n  \"10.2.5\": \"Changes to identification and authentication credentials\"\n  \"10.2.6\": \"Initialization, stopping, or pausing of audit logs\"\n  \"10.2.7\": \"Creation and deletion of system-level objects\"\n\nlog_entry_requirements:\n  \"10.3.1\": \"User identification\"\n  \"10.3.2\": \"Type of event\"\n  \"10.3.3\": \"Date and time\"\n  \"10.3.4\": \"Success or failure indication\"\n  \"10.3.5\": \"Origination of event\"\n  \"10.3.6\": \"Identity or name of affected data\u002Fresource\"\n\nretention:\n  minimum: \"12 months total\"\n  immediately_available: \"At least 3 months\"\n  archive: \"Remaining months can be in archive storage\"\n\ntime_synchronization:\n  \"10.6.1\": \"Synchronize clocks using NTP\"\n  \"10.6.2\": \"Time data protected from unauthorized access\"\n  \"10.6.3\": \"Time settings received from industry-accepted sources\"\n  ntp_config: |\n    # \u002Fetc\u002Fntp.conf or chrony.conf for CDE systems\n    server 0.pool.ntp.org iburst\n    server 1.pool.ntp.org iburst\n    driftfile \u002Fvar\u002Flib\u002Fntp\u002Fdrift\n    restrict default nomodify notrap nopeer noquery\n    restrict 127.0.0.1\n```\n\n## PCI DSS Compliance Checklist\n\n```yaml\npci_dss_checklist:\n  scoping:\n    - [ ] CDE boundaries identified and documented\n    - [ ] All in-scope systems inventoried\n    - [ ] Network segmentation validated\n    - [ ] Data flow diagrams current and accurate\n    - [ ] SAQ type determined (if applicable)\n    - [ ] Third-party service providers identified\n\n  network_security:\n    - [ ] Firewalls\u002Fsecurity groups restrict CDE access\n    - [ ] Default deny rules on all CDE boundaries\n    - [ ] Wireless networks segmented from CDE\n    - [ ] Remote access uses MFA\n    - [ ] All firewall rules documented with business justification\n    - [ ] Rules reviewed semi-annually\n\n  data_protection:\n    - [ ] PAN masked when displayed (first 6, last 4 max)\n    - [ ] Stored PAN encrypted with AES-256 or equivalent\n    - [ ] Sensitive auth data not stored after authorization\n    - [ ] Encryption keys managed per Req 3.6\u002F3.7\n    - [ ] TLS 1.2+ for all cardholder data transmission\n    - [ ] Tokenization implemented where feasible\n\n  access_control:\n    - [ ] Access restricted on need-to-know basis\n    - [ ] Unique IDs for all users\n    - [ ] MFA for all access into CDE\n    - [ ] MFA for all remote\u002Fnon-console admin access\n    - [ ] Default\u002Fvendor passwords changed\n    - [ ] Shared\u002Fgroup accounts not used (or tightly controlled)\n    - [ ] Access reviewed at least every 6 months\n\n  monitoring:\n    - [ ] Audit logs capture all required events (Req 10.2)\n    - [ ] Log entries include all required fields (Req 10.3)\n    - [ ] Logs protected from modification\n    - [ ] Logs retained 12 months (3 months immediately available)\n    - [ ] Time synchronization configured (NTP)\n    - [ ] Daily log review process or automated alerting\n    - [ ] File integrity monitoring on critical files\n\n  testing:\n    - [ ] Internal vulnerability scans quarterly\n    - [ ] External ASV scans quarterly (passing)\n    - [ ] Internal penetration test annually\n    - [ ] External penetration test annually\n    - [ ] Segmentation test annually (or after changes)\n    - [ ] Web application assessment annually (or WAF deployed)\n    - [ ] IDS\u002FIPS monitoring all CDE network traffic\n\n  policies:\n    - [ ] Information security policy reviewed annually\n    - [ ] Security awareness training for all personnel\n    - [ ] Incident response plan documented and tested\n    - [ ] Third-party service provider compliance confirmed\n    - [ ] Risk assessment performed annually\n```\n\n## Best Practices\n\n- Minimize CDE scope aggressively using tokenization, P2PE, and outsourced payment processing\n- Use network segmentation to isolate the CDE and reduce the number of in-scope systems\n- Never store sensitive authentication data (CVV, track data, PIN) after authorization\n- Implement MFA for all access into the CDE, not just remote access (v4.0 requirement)\n- Automate vulnerability scanning and patch management to maintain continuous compliance\n- Deploy file integrity monitoring on all CDE systems to detect unauthorized changes\n- Synchronize clocks across all CDE systems using NTP for accurate log correlation\n- Conduct internal and external penetration tests annually and after significant changes\n- Review all firewall and security group rules semi-annually with documented business justification\n- Maintain a current data flow diagram showing all cardholder data transmission and storage points\n\n## Limitations\n\n- Guidance and checklists only; not legal advice and not a substitute for a qualified auditor.\n- Docs-only import: upstream templates and scripts not bundled.\n\n### Example\n\n```markdown\nMap this skill's control checklist to our current evidence and list gaps.\n```\n\n> Adapted from [BagelHole\u002FDevOps-Security-Agent-Skills](https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.\n","# PCI DSS Compliance\n\nImplement PCI DSS v4.0 requirements for protecting cardholder data across the Cardholder Data Environment (CDE), including network segmentation, encryption, access controls, and ongoing testing.\n\n## When to Use\n\n- Processing, storing, or transmitting payment card data\n- Scoping the Cardholder Data Environment for PCI assessment\n- Selecting the appropriate Self-Assessment Questionnaire (SAQ)\n- Implementing network segmentation to reduce CDE scope\n- Preparing for QSA assessment or ASV scanning\n\n## SAQ Types and Applicability\n\n```yaml\nsaq_types:\n  SAQ_A:\n    description: \"Card-not-present merchants using fully outsourced payment\"\n    applies_when:\n      - All payment processing fully outsourced to PCI-compliant third party\n      - No electronic storage, processing, or transmission of cardholder data\n      - Only payment page redirects or iframes from compliant provider\n    requirements: ~22 questions\n\n  SAQ_A_EP:\n    description: \"E-commerce merchants with website that affects payment security\"\n    applies_when:\n      - E-commerce channel only\n      - Website controls redirect to or loads payment page from third party\n      - No direct processing but website could affect transaction security\n    requirements: ~191 questions\n\n  SAQ_B:\n    description: \"Merchants with only imprint machines or standalone terminals\"\n    applies_when:\n      - Only standalone POS terminals (dial-out or IP connected)\n      - No electronic cardholder data storage\n      - No e-commerce channel\n    requirements: ~41 questions\n\n  SAQ_C:\n    description: \"Merchants with payment application systems connected to internet\"\n    applies_when:\n      - Payment application connected to internet\n      - No electronic cardholder data storage\n      - No e-commerce channel\n    requirements: ~160 questions\n\n  SAQ_D:\n    description: \"All other merchants and all service providers\"\n    applies_when:\n      - Stores cardholder data electronically\n      - Does not fit any other SAQ type\n      - Service providers eligible for SAQ D\n    requirements: \"Full set of PCI DSS requirements\"\n\n  scope_reduction_strategies:\n    - Use tokenization to replace PAN with non-sensitive tokens\n    - Use P2PE (Point-to-Point Encryption) validated solutions\n    - Outsource payment processing to reduce your CDE footprint\n    - Implement network segmentation to isolate CDE\n```\n\n## PCI DSS v4.0 Requirements Overview\n\n```yaml\nrequirements:\n  req_1_network_security:\n    \"1.1\": \"Network security controls defined and maintained\"\n    \"1.2\": \"Network security controls configured and maintained\"\n    \"1.3\": \"Network access to and from CDE is restricted\"\n    \"1.4\": \"Network connections between trusted and untrusted networks controlled\"\n    \"1.5\": \"Risks to CDE from devices connecting to untrusted networks mitigated\"\n\n  req_2_secure_configuration:\n    \"2.1\": \"Secure configuration standards defined and applied\"\n    \"2.2\": \"System components configured and managed securely\"\n\n  req_3_protect_stored_data:\n    \"3.1\": \"Processes for protecting stored account data defined\"\n    \"3.2\": \"Storage of account data is minimized\"\n    \"3.3\": \"Sensitive authentication data not stored after authorization\"\n    \"3.4\": \"PAN masked when displayed (first 6, last 4 maximum)\"\n    \"3.5\": \"PAN secured wherever stored\"\n    \"3.6\": \"Cryptographic keys managed securely\"\n    \"3.7\": \"Key management procedures documented\"\n\n  req_4_transmission_encryption:\n    \"4.1\": \"Strong cryptography protects cardholder data during transmission\"\n    \"4.2\": \"PAN protected when sent via end-user messaging\"\n\n  req_5_malware_protection:\n    \"5.1\": \"Processes to protect against malware defined\"\n    \"5.2\": \"Malware prevented or detected and addressed\"\n    \"5.3\": \"Anti-malware mechanisms active and maintained\"\n    \"5.4\": \"Anti-phishing mechanisms protect against phishing\"\n\n  req_6_secure_development:\n    \"6.1\": \"Secure development processes defined\"\n    \"6.2\": \"Bespoke and custom software developed securely\"\n    \"6.3\": \"Security vulnerabilities identified and addressed\"\n    \"6.4\": \"Public-facing web applications protected against attacks\"\n    \"6.5\": \"Changes to all system components managed securely\"\n\n  req_7_access_restriction:\n    \"7.1\": \"Access to system components and data restricted by business need\"\n    \"7.2\": \"Access appropriately defined and assigned\"\n    \"7.3\": \"Access to system components and data managed via access control\"\n\n  req_8_user_identification:\n    \"8.1\": \"Processes for user identification defined\"\n    \"8.2\": \"User identification and accounts managed\"\n    \"8.3\": \"Strong authentication established\"\n    \"8.4\": \"MFA implemented for all access into CDE\"\n    \"8.5\": \"MFA systems configured to prevent misuse\"\n    \"8.6\": \"System and application accounts managed\"\n\n  req_9_physical_access:\n    \"9.1\": \"Physical access controls defined\"\n    \"9.2\": \"Physical access to CDE managed\"\n    \"9.3\": \"Physical access for personnel and visitors authorized\"\n    \"9.4\": \"Media with cardholder data managed securely\"\n    \"9.5\": \"POI devices protected from tampering\"\n\n  req_10_logging:\n    \"10.1\": \"Audit logging processes defined\"\n    \"10.2\": \"Audit logs record required events\"\n    \"10.3\": \"Audit logs protected from destruction and modification\"\n    \"10.4\": \"Audit logs reviewed for anomalies\"\n    \"10.5\": \"Audit log history retained\"\n    \"10.6\": \"Time synchronization mechanisms configured\"\n    \"10.7\": \"Audit logs retained for at least 12 months (3 months immediately available)\"\n\n  req_11_testing:\n    \"11.1\": \"Security testing processes defined\"\n    \"11.2\": \"Wireless access points managed\"\n    \"11.3\": \"Vulnerabilities identified and addressed\"\n    \"11.4\": \"External and internal penetration testing performed\"\n    \"11.5\": \"Network intrusions and changes detected and responded to\"\n    \"11.6\": \"Unauthorized changes to payment pages detected\"\n\n  req_12_policies:\n    \"12.1\": \"Information security policy established\"\n    \"12.2\": \"Acceptable use policies defined\"\n    \"12.3\": \"Risks to CDE formally identified and managed\"\n    \"12.4\": \"PCI DSS compliance managed\"\n    \"12.5\": \"PCI DSS scope documented and validated\"\n    \"12.6\": \"Security awareness program\"\n    \"12.8\": \"Third-party service providers managed\"\n    \"12.9\": \"TPSPs acknowledge responsibility for cardholder data\"\n    \"12.10\": \"Security incidents responded to immediately\"\n```\n\n## Network Segmentation Architecture\n\n```\n                    ┌──────────────────────────────────────┐\n                    │            INTERNET                    │\n                    └──────────────┬───────────────────────┘\n                                   │\n                    ┌──────────────▼───────────────────────┐\n                    │       DMZ (Public Subnet)              │\n                    │  WAF → Load Balancer → Web Servers     │\n                    └──────────────┬───────────────────────┘\n                                   │ Firewall (Req 1.3)\n                    ┌──────────────▼───────────────────────┐\n                    │    CDE (Cardholder Data Environment)   │\n                    │  ┌─────────┐  ┌──────────┐            │\n                    │  │ Payment │  │ Card DB  │            │\n                    │  │ App     │  │(encrypted)│            │\n                    │  └─────────┘  └──────────┘            │\n                    │  ┌─────────┐  ┌──────────┐            │\n                    │  │Token Svc│  │ HSM\u002FKMS  │            │\n                    │  └─────────┘  └──────────┘            │\n                    └──────────────┬───────────────────────┘\n                                   │ Firewall (Req 1.3)\n                    ┌──────────────▼───────────────────────┐\n                    │     Non-CDE (Corporate Network)        │\n                    │  App servers, internal tools            │\n                    │  (no cardholder data)                   │\n                    └──────────────────────────────────────┘\n```\n\n```bash\n# AWS Security Group for CDE isolation\naws ec2 create-security-group \\\n  --group-name cde-app-sg \\\n  --description \"CDE Application Security Group\" \\\n  --vpc-id vpc-CDE\n\n# Allow only HTTPS from WAF\u002FALB\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-CDE-APP \\\n  --protocol tcp --port 443 \\\n  --source-group sg-ALB\n\n# CDE database - only accessible from CDE app servers\naws ec2 create-security-group \\\n  --group-name cde-db-sg \\\n  --description \"CDE Database Security Group\" \\\n  --vpc-id vpc-CDE\n\naws ec2 authorize-security-group-ingress \\\n  --group-id sg-CDE-DB \\\n  --protocol tcp --port 5432 \\\n  --source-group sg-CDE-APP\n\n# Deny all other inbound by default (security groups are deny-all by default in AWS)\n# Document all rules for Req 1.2 - firewall\u002Fsecurity group documentation\n```\n\n## Encryption and Tokenization\n\n```yaml\nencryption_requirements:\n  stored_data_req_3:\n    pan_encryption:\n      algorithm: AES-256\n      mode: GCM (preferred) or CBC with HMAC\n      key_storage: HSM or dedicated key management service\n      never_store:\n        - Full track data (magnetic stripe)\n        - CVV\u002FCVC\u002FCAV2\n        - PIN \u002F PIN block\n\n    pan_display_masking:\n      rule: \"Show maximum first 6 and last 4 digits\"\n      examples:\n        masked: \"4111 11** **** 1111\"\n        acceptable_for_business: \"First 6 and last 4\"\n      implementation: \"Apply masking at application layer before rendering\"\n\n    key_management_req_3_6:\n      - Generate keys using approved random number generator\n      - Protect keys with key-encrypting keys (KEKs)\n      - Store key components separately (split knowledge, dual control)\n      - Rotate keys at least annually (or per crypto period)\n      - Retire and replace keys when compromised\n      - Document key custodian responsibilities\n\n  transmission_req_4:\n    protocols:\n      required: \"TLS 1.2 or higher\"\n      prohibited: \"SSL, TLS 1.0, TLS 1.1\"\n    cipher_suites:\n      preferred:\n        - TLS_AES_256_GCM_SHA384\n        - TLS_CHACHA20_POLY1305_SHA256\n      minimum: \"128-bit key strength\"\n    certificate_management:\n      - Use certificates from trusted CAs\n      - Verify hostname and certificate validity\n      - Monitor certificate expiration\n\n  tokenization_strategy:\n    description: \"Replace PAN with non-reversible token to reduce CDE scope\"\n    implementation:\n      - Use format-preserving tokens (same length\u002Fformat as PAN)\n      - Token vault in isolated CDE segment\n      - Token-to-PAN mapping encrypted and access-controlled\n      - De-tokenization requires authenticated API call\n      - Log all de-tokenization requests\n    scope_benefit: \"Systems using only tokens are out of PCI scope\"\n```\n\n## Vulnerability Management and Testing\n\n```bash\n# Req 11.3 - Internal vulnerability scanning (quarterly minimum)\n# Using OpenVAS or Nessus\nopenvas-cli --scan-target 10.10.0.0\u002F24 --scan-name \"CDE-Quarterly-Scan\" \\\n  --profile \"PCI DSS\" --output pci-scan-$(date +%Y%m%d).xml\n\n# Req 11.3 - External ASV scanning (quarterly, must pass)\n# Schedule with Approved Scanning Vendor (Qualys, Tenable, etc.)\n# ASV scan must show no vulnerabilities with CVSS >= 4.0\n\n# Req 6.3 - Patch management\n# Check for critical patches on CDE systems\nyum check-update --security  # RHEL\u002FCentOS\napt list --upgradable 2>\u002Fdev\u002Fnull | grep -i security  # Debian\u002FUbuntu\n\n# Req 11.4 - Penetration testing (annual for external, internal, and segmentation)\n# Must be performed by qualified internal resource or third party\n# Test both network layer and application layer\n# Segmentation testing: verify CDE is isolated from non-CDE networks\n\n# Req 11.5 - File integrity monitoring\n# Using AIDE (Advanced Intrusion Detection Environment)\naide --init  # Initialize baseline\naide --check  # Compare against baseline\n\n# OSSEC FIM configuration for CDE systems\n# \u002Fvar\u002Fossec\u002Fetc\u002Fossec.conf\n# \u003Csyscheck>\n#   \u003Cfrequency>3600\u003C\u002Ffrequency>\n#   \u003Cdirectories check_all=\"yes\">\u002Fetc,\u002Fusr\u002Fbin,\u002Fusr\u002Fsbin\u003C\u002Fdirectories>\n#   \u003Cdirectories check_all=\"yes\">\u002Fopt\u002Fpayment-app\u003C\u002Fdirectories>\n# \u003C\u002Fsyscheck>\n```\n\n## Logging and Monitoring (Req 10)\n\n```yaml\nrequired_audit_events:\n  \"10.2.1\": \"All individual user accesses to cardholder data\"\n  \"10.2.2\": \"All actions taken by any individual with root or admin privileges\"\n  \"10.2.3\": \"Access to all audit trails\"\n  \"10.2.4\": \"Invalid logical access attempts\"\n  \"10.2.5\": \"Changes to identification and authentication credentials\"\n  \"10.2.6\": \"Initialization, stopping, or pausing of audit logs\"\n  \"10.2.7\": \"Creation and deletion of system-level objects\"\n\nlog_entry_requirements:\n  \"10.3.1\": \"User identification\"\n  \"10.3.2\": \"Type of event\"\n  \"10.3.3\": \"Date and time\"\n  \"10.3.4\": \"Success or failure indication\"\n  \"10.3.5\": \"Origination of event\"\n  \"10.3.6\": \"Identity or name of affected data\u002Fresource\"\n\nretention:\n  minimum: \"12 months total\"\n  immediately_available: \"At least 3 months\"\n  archive: \"Remaining months can be in archive storage\"\n\ntime_synchronization:\n  \"10.6.1\": \"Synchronize clocks using NTP\"\n  \"10.6.2\": \"Time data protected from unauthorized access\"\n  \"10.6.3\": \"Time settings received from industry-accepted sources\"\n  ntp_config: |\n    # \u002Fetc\u002Fntp.conf or chrony.conf for CDE systems\n    server 0.pool.ntp.org iburst\n    server 1.pool.ntp.org iburst\n    driftfile \u002Fvar\u002Flib\u002Fntp\u002Fdrift\n    restrict default nomodify notrap nopeer noquery\n    restrict 127.0.0.1\n```\n\n## PCI DSS Compliance Checklist\n\n```yaml\npci_dss_checklist:\n  scoping:\n    - [ ] CDE boundaries identified and documented\n    - [ ] All in-scope systems inventoried\n    - [ ] Network segmentation validated\n    - [ ] Data flow diagrams current and accurate\n    - [ ] SAQ type determined (if applicable)\n    - [ ] Third-party service providers identified\n\n  network_security:\n    - [ ] Firewalls\u002Fsecurity groups restrict CDE access\n    - [ ] Default deny rules on all CDE boundaries\n    - [ ] Wireless networks segmented from CDE\n    - [ ] Remote access uses MFA\n    - [ ] All firewall rules documented with business justification\n    - [ ] Rules reviewed semi-annually\n\n  data_protection:\n    - [ ] PAN masked when displayed (first 6, last 4 max)\n    - [ ] Stored PAN encrypted with AES-256 or equivalent\n    - [ ] Sensitive auth data not stored after authorization\n    - [ ] Encryption keys managed per Req 3.6\u002F3.7\n    - [ ] TLS 1.2+ for all cardholder data transmission\n    - [ ] Tokenization implemented where feasible\n\n  access_control:\n    - [ ] Access restricted on need-to-know basis\n    - [ ] Unique IDs for all users\n    - [ ] MFA for all access into CDE\n    - [ ] MFA for all remote\u002Fnon-console admin access\n    - [ ] Default\u002Fvendor passwords changed\n    - [ ] Shared\u002Fgroup accounts not used (or tightly controlled)\n    - [ ] Access reviewed at least every 6 months\n\n  monitoring:\n    - [ ] Audit logs capture all required events (Req 10.2)\n    - [ ] Log entries include all required fields (Req 10.3)\n    - [ ] Logs protected from modification\n    - [ ] Logs retained 12 months (3 months immediately available)\n    - [ ] Time synchronization configured (NTP)\n    - [ ] Daily log review process or automated alerting\n    - [ ] File integrity monitoring on critical files\n\n  testing:\n    - [ ] Internal vulnerability scans quarterly\n    - [ ] External ASV scans quarterly (passing)\n    - [ ] Internal penetration test annually\n    - [ ] External penetration test annually\n    - [ ] Segmentation test annually (or after changes)\n    - [ ] Web application assessment annually (or WAF deployed)\n    - [ ] IDS\u002FIPS monitoring all CDE network traffic\n\n  policies:\n    - [ ] Information security policy reviewed annually\n    - [ ] Security awareness training for all personnel\n    - [ ] Incident response plan documented and tested\n    - [ ] Third-party service provider compliance confirmed\n    - [ ] Risk assessment performed annually\n```\n\n## Best Practices\n\n- Minimize CDE scope aggressively using tokenization, P2PE, and outsourced payment processing\n- Use network segmentation to isolate the CDE and reduce the number of in-scope systems\n- Never store sensitive authentication data (CVV, track data, PIN) after authorization\n- Implement MFA for all access into the CDE, not just remote access (v4.0 requirement)\n- Automate vulnerability scanning and patch management to maintain continuous compliance\n- Deploy file integrity monitoring on all CDE systems to detect unauthorized changes\n- Synchronize clocks across all CDE systems using NTP for accurate log correlation\n- Conduct internal and external penetration tests annually and after significant changes\n- Review all firewall and security group rules semi-annually with documented business justification\n- Maintain a current data flow diagram showing all cardholder data transmission and storage points\n\n## Limitations\n\n- Guidance and checklists only; not legal advice and not a substitute for a qualified auditor.\n- Docs-only import: upstream templates and scripts not bundled.\n\n### Example\n\n```markdown\nMap this skill's control checklist to our current evidence and list gaps.\n```\n\n> Adapted from [BagelHole\u002FDevOps-Security-Agent-Skills](https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.\n",{"name":5,"risk":34,"source":48,"license":14,"category":42,"metadata":49,"date_added":52,"description":7,"source_repo":53,"source_type":33,"compatibility":54,"license_source":55},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills",{"author":50,"version":51},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Checklist and framework guidance; no privileged tooling required. Apply controls through your own change process.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fpci-dss-compliance","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill pci-dss-compliance",{"tool":67,"command":68},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill pci-dss-compliance",{"tool":70,"command":71},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill pci-dss-compliance","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fpci-dss-compliance\u002FSKILL.md",true,[],[76,103,127,150,175,199],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":87,"publishedAt":43},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[82],{"categoryNo":83,"categoryName":84,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[88,89,90,91,92,93,78,94,37,95,36,96,33,32,97,98,99,100,101,102],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","access","only","active","critical","scope","scripts","relevant","implementing",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":43},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[110,111,112,113,114,115,116,117,118,119,120,121,122,96,123,33,124,125,98,126],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app","agent-orchestration",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":43},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[134,135,136,34,137,138,139,39,140,141,142,143,144,33,32,145,146,147,148,149],"transcript","youtube transcript","youtube","github","codex","research","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":151,"name":152,"nameZh":6,"description":153,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":154,"categories":155,"keywords":165,"publishedAt":43},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[156,159,162],{"categoryNo":157,"categoryName":158,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":160,"categoryName":161,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000016","图像与多媒体",{"categoryNo":163,"categoryName":164,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000030","开发工程师",[134,135,136,166,34,167,137,138,39,168,169,170,171,142,172,33,32,173,31,174],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","channels",{"skillNo":176,"name":177,"nameZh":6,"description":178,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":179,"categories":180,"keywords":185,"publishedAt":43},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[181,184],{"categoryNo":182,"categoryName":183,"taxonomyType":85,"taxonomyTypeDesc":86},"01JBSEEDCAT000000000000003","演示文稿",{"categoryNo":160,"categoryName":161,"taxonomyType":85,"taxonomyTypeDesc":86},[136,186,187,114,34,188,189,190,191,39,170,192,193,194,195,32,196,145,197,198],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":200,"name":201,"nameZh":6,"description":202,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":203,"categories":204,"keywords":206,"publishedAt":43},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[205],{"categoryNo":157,"categoryName":158,"taxonomyType":85,"taxonomyTypeDesc":86},[207,136,208,209,34,167,168,210,211,169,170,171,142,212,172,33,32,173,213,148],"youtube full","full","google","server","dlp","credits","automatic"]