Skip to content
Back to skills

Pci Dss Specialist

ASecurity

PCI DSS v4.0 control gap check and SAQ/CDE scoping from your own JSON answers. Use when you need to find which PCI DSS controls are open, pick the SAQ type and merchant level, classify systems into the CDE, or plan scope reduction (tokenization, P2PE, iFrame, segmentation) before an assessment.

  • 1,271 stars
  • 0 votes
  • 1 copy
  • 7 views
  • Added May 29, 2026
ai-agentspythongobashkubernetesawsgcpazuretestingapisecurity

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned December 4, 2026

npx -y skills add borghei/Claude-Skills --skill pci-dss-specialist --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pci Dss Specialist?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pci Dss Specialist
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/borghei-pci-dss-specialist/badge)](https://www.skillsdirectory.com/skills/borghei-pci-dss-specialist)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pci-dss-specialist
description: >
  PCI DSS v4.0 control gap check and SAQ/CDE scoping from your own JSON answers.
  Use when you need to find which PCI DSS controls are open, pick the SAQ type and
  merchant level, classify systems into the CDE, or plan scope reduction
  (tokenization, P2PE, iFrame, segmentation) before an assessment.
license: MIT + Commons Clause
metadata:
  version: 1.1.0
  author: borghei
  category: compliance
  domain: payment-security
  updated: 2026-06-15
  tags: [pci-dss, payment-security, tokenization, cardholder-data]
---
# PCI-DSS v4.0 Specialist

Implement, assess, and maintain compliance with the Payment Card Industry Data Security Standard version 4.0 — the global standard for protecting cardholder data in payment processing environments. Covers CDE scoping, SAQ/ROC selection, gap assessment against all 12 requirements, scope reduction (tokenization, P2PE, segmentation), and the future-dated v4.0 controls that became mandatory March 31, 2025.

## Core Capabilities

- **Compliance assessment** — check your control answers against all 12 PCI DSS v4.0 requirements, list gaps and unanswered controls with a fix each (`pci_compliance_checker.py`)
- **Scoping & SAQ selection** — map the cardholder data environment, classify connected and security-impacting systems, and determine the correct SAQ type or ROC requirement (`pci_scope_analyzer.py`)
- **Scope reduction** — tokenization, P2PE, network segmentation, and outsourced/iFrame processing to remove systems from scope
- **v4.0 readiness** — MFA for all CDE access, 12-char passwords, payment-page script controls (6.4.3/11.6.1), anti-phishing, automated log review, targeted risk analysis
- **Infrastructure controls** — network segmentation, TLS/DNS, endpoint/POS, cloud (AWS/Azure/GCP), container, and API security; encryption key lifecycle and DUKPT

## When to Use

Trigger on: "PCI DSS", "payment card security", "cardholder data", "PCI compliance", "payment security", "PCI assessment", "SAQ", "ROC", "QSA", "credit card security", "payment processing security", "tokenization", "CDE scoping", or "merchant level compliance".

## Clarify First

Before running the assessment or scoping, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.

- **Business model / payment flow:** how cards are accepted (e-commerce, terminal, P2PE, fully outsourced/iFrame) (determines the CDE scope and correct SAQ type).
- **Merchant / service-provider level:** annual transaction volume (sets the validation path: SAQ vs ROC).
- **CDE scope:** which systems store, process, or transmit cardholder data plus connected systems (drives which of the 12 requirements are in scope).

Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.

## Quick Start

Both tools read a JSON file (positional or `--input`), print a verdict line first and last, and accept `--format text|json` (`markdown` is an alias of text; `--json` is kept), `--output FILE` and, for the checker, `--requirements 3,4,7,8`. Input formats are in [references/tools-validation-troubleshooting.md](references/tools-validation-troubleshooting.md); working inputs are in `assets/`.

```bash
# Control gap check (answer true/false per control; omitted controls are reported NOT PROVIDED)
python3 scripts/pci_compliance_checker.py assets/flawed_controls.json --requirements 1,3

# SAQ type, merchant level and CDE system classification
python3 scripts/pci_scope_analyzer.py assets/flawed_business_model.json

# Machine-readable
python3 scripts/pci_compliance_checker.py assets/flawed_controls.json --format json
```

Real output of the first command (excerpt):

```
FIX 4 controls (4 gaps, 0 not provided)

**Read:** 2 requirements, 17 controls; 13 met, 4 gaps, 0 not provided
## Findings (critical first)
- **[CRITICAL] Req 1 waf_deployed** (input: false) - WAF deployed for web-facing payment applications
  - Fix: Implement and evidence: WAF deployed for web-facing payment applications; then set requirements.1.waf_deployed to true (PCI DSS v4.0 Req 1, Install and Maintain Network Security Controls).
- **[CRITICAL] Req 3 encryption_algorithm** (input: "3DES") - Strong cryptography used (AES-128/256 or RSA-2048+; 3DES is not accepted)
```

## Exit Codes

| Code | Checker | Scope analyzer |
|------|---------|----------------|
| 0 | every assessed control is met | SAQ determined, no findings |
| 1 | gaps, or controls not answered | findings, or SAQ undetermined (a needed answer is missing) |
| 2 | unreadable, empty, non-JSON, wrong shape, non-boolean answer, unknown `--requirements` | same |

## How to Read the Results

- No percentage score: PCI DSS is pass/fail per requirement, so the checker counts controls met, gapped and not provided. A control you did not answer is never counted as met or failed.
- The control list is the headline controls per requirement, not every sub-requirement; use `references/pci-dss-requirements-guide.md` for the full set. "CRITICAL" is this tool's ranking heuristic, not a PCI SSC designation.
- Merchant levels follow the Visa table (over 6M, 1M-6M, 20k-1M e-commerce, rest). Other brands and your acquirer can differ and decide the validation path.
- The scope analyzer never defaults an unanswered flag: missing `stores_pan`, `terminal_type` or payment-page details give `UNDETERMINED` and name the field to add. Systems with unstated flags are Unclassified and treated as in scope.

## References

Load the reference that matches the task — keep this file lean and pull detail on demand:

- **[references/requirements-and-changes.md](references/requirements-and-changes.md)** — PCI DSS overview, the 12 requirements deep-dive (objective + key sub-requirements + implementation guidance each), and the v4.0 changes / future-dated requirements summary. Read when implementing or explaining a requirement.
- **[references/pci-dss-requirements-guide.md](references/pci-dss-requirements-guide.md)** — tabular reference: every sub-requirement with testing procedures and v4.0 change status. Read when you need exact sub-requirement IDs or auditor testing procedures.
- **[references/scoping-and-assessment.md](references/scoping-and-assessment.md)** — CDE definition and system classification, scope reduction strategies, SAQ types + selection decision tree, assessment types (SAQ/ROC/AOC), and merchant/service-provider levels. Read when scoping or choosing a validation path.
- **[references/infrastructure-controls-and-roadmap.md](references/infrastructure-controls-and-roadmap.md)** — technical controls (segmentation, DNS/TLS, endpoint/POS, cloud, container, API, tokenization architecture, key management) and the 5-phase 12-month compliance roadmap. Read when building or planning the program.
- **[references/pci-infrastructure-security.md](references/pci-infrastructure-security.md)** — deep architecture: reference network diagrams, per-cloud build-outs, mPOS, e-commerce script controls, and Kubernetes manifests. Read when designing CDE infrastructure in detail.
- **[references/tools-validation-troubleshooting.md](references/tools-validation-troubleshooting.md)** — full tool capabilities, input JSON formats, CLI flag tables, validation checkpoints, troubleshooting table, and success criteria. Read when running the tools or validating an engagement.

## Scope & Limitations

**In Scope:**
- PCI DSS v4.0/v4.0.1 compliance assessment against all 12 requirements
- SAQ type determination based on business model and payment processing architecture
- CDE scoping with connected system and security-impacting system identification
- Technical control validation (encryption, access control, logging, network segmentation)
- Per-requirement control tally (met, gapped, not provided) with gap analysis and remediation priorities; no percentage score
- Scope reduction strategy recommendations (tokenization, segmentation, P2PE)

**Out of Scope:**
- Approved Scanning Vendor (ASV) vulnerability scans (requires PCI SSC-approved ASV vendor)
- Qualified Security Assessor (QSA) on-site assessment or Report on Compliance (ROC) generation
- Payment application security validation (PA-DSS / PCI SSF scope)
- PIN Transaction Security (PTS) device certification
- Card brand-specific program requirements (Visa, Mastercard, Amex each have additional program rules)
- Legal advice on contractual obligations with acquiring banks or card brands
- Real-time transaction monitoring or fraud detection

## Integration Points

| Skill | Integration |
|-------|------------|
| [infrastructure-compliance-auditor](../infrastructure-compliance-auditor/) | Validates network segmentation, TLS configuration, endpoint security, and logging controls that satisfy PCI DSS Requirements 1, 2, 4, 10, 11 |
| [nist-csf-specialist](../nist-csf-specialist/) | CSF functions map to PCI DSS requirements; use the control mapper to build unified control matrices for dual-compliance programs |
| [soc2-compliance-expert](../soc2-compliance-expert/) | SOC 2 CC6 (access), CC7 (operations), CC8 (change management) overlap significantly with PCI DSS; leverage shared evidence |
| [information-security-manager-iso27001](../information-security-manager-iso27001/) | ISO 27001 Annex A controls provide a management system framework supporting PCI DSS compliance |
| [nis2-directive-specialist](../nis2-directive-specialist/) | EU entities subject to both NIS2 and PCI DSS can map shared controls (encryption, incident response, access control) |

Files in this skill

  • SKILL.md50.9 KB
  • references/pci-dss-requirements-guide.md15.5 KB
  • references/pci-infrastructure-security.md23.9 KB
  • scripts/pci_compliance_checker.py29.5 KB
  • scripts/pci_scope_analyzer.py23.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.