PCI-DSS Network Segmentation
Overview
This skill implements PCI-DSS v4.0 Requirements 1 and 2 for network segmentation and CDE scope reduction. Proper segmentation limits PCI assessment scope to systems that store, process, or transmit CHD/SAD (cardholder data/sensitive authentication data) and systems connected to them.
Key requirements:
- Req 1.2.x: Network security control (NSC) configuration standards, inbound/outbound rules, CDE segmentation
- Req 1.3.x: Prohibit direct public access to CDE; restrict connections between untrusted networks and CDE
- Req 1.4.x: Personal firewall on mobile/remote devices accessing CDE
- Req 2.x: Secure configurations—change defaults, harden NSCs and system components
AI agents and MCP servers must not bridge untrusted networks into the CDE without explicit NSC rules and business justification.
When to Use
Use this skill when:
- Scoping PCI assessment—identifying in-scope vs out-of-scope systems
- Reviewing firewall rules, security groups, ACLs, WAF between CDE and other zones
- Validating segmentation test (penetration test or connectivity probe) results
- Assessing whether agent/MCP infrastructure introduces CDE connectivity
- Scope reduction initiatives (moving payment to hosted iframe, P2PE)
- Hardening NSC default configurations (Req 2.1)
Do not use this skill when:
- Auditing checkout JavaScript (use
pci-dss-script-audit)
- General SOC 2 logical access without CDE (use
access-control-identity-audit)
- Encrypting data at rest (Req 3.x—note gap but use appropriate skill)
Core Process
Execute steps in order.
Step 1: CDE and connected-to identification
- Inventory systems that store, process, or transmit CHD/SAD.
- Identify systems connected to CDE (even if they don't touch CHD)—they enter scope unless adequately segmented.
- Document data flows: payment forms, tokenization, API gateways, MCP Postgres access.
- Artifact:
pci-scope-diagram-{id}.json with trust zones (CDE, DMZ, Corporate, Cloud).
Step 2: Network zone model
Define zones:
| Zone |
Description |
Default trust |
| CDE |
CHD/SAD processing |
Highest restriction |
| DMZ |
Public-facing, no CHD storage |
Restricted |
| Corporate |
Internal business systems |
Untrusted relative to CDE |
| Agent/MCP |
Compliance agent runtime |
Assess connectivity to CDE |
Map all inter-zone connections with protocol, port, source, destination, business purpose.
Step 3: Requirement 1.2 — NSC rule review
For each NSC (firewall, cloud SG, NACL, WAF):
- Export rule set (JSON/text) via cloud API or config backup.
- Verify deny-all default with explicit allow rules only.
- Check bidirectional justification for each CDE rule:
- Source IP/CIDR, destination, port, service owner, change ticket
- Flag violations:
ANY/ANY rules touching CDE
- Corporate zone → CDE without jump host or PAM
- Agent/MCP subnet → CDE database port (CRITICAL unless scoped tokenization proxy)
- Verify rule review at least every 6 months (Req 1.2.7)—collect review evidence.
Step 4: Requirement 1.3 — CDE boundary protection
- Confirm no direct Internet → CDE paths (except documented encrypted payment entry in DMZ).
- Verify DMZ → CDE limited to minimum ports (e.g., app tier only).
- Test from untrusted network (authorized pentest or automated probe):
- Attempt connectivity to CDE IPs on common DB/app ports
- Expected: connection refused/timeout unless explicitly allowed
- Document segmentation test methodology and results.
Step 5: Requirement 1.4 — Remote access
- Inventory remote access paths to CDE (VPN, ZTNA, admin consoles).
- Verify personal firewall on endpoints where applicable.
- Ensure multi-factor authentication on all remote CDE access (cross-ref CC6/Req 8).
Step 6: Requirement 2 — Secure NSC configuration
- Verify default passwords changed on all NSCs (Req 2.1).
- Remove unnecessary services, protocols, accounts (Req 2.2).
- Document configuration standards with version ID.
- Compare running config vs standard—drift = FAIL until remediated or authorized.
Step 7: Agent/MCP segmentation assessment
- Map compliance agent and MCP server network placement:
- Playwright MCP: runs from which subnet? Can it reach CDE checkout URLs only (expected) or CDE backend?
- Postgres MCP: which databases reachable? CDE DB = in scope for agent infrastructure
- If agent bridges zones, require:
- Dedicated jump architecture, read-only replicas outside CDE, or tokenized data only
- NSC rules documented with PCI QSA review
- Never store CHD in agent evidence DB without encryption and scope approval.
Step 8: Scope reduction validation
- Evaluate scope reduction strategies:
- SAQ A/A-EP: outsourced payment, iframe isolation
- Tokenization: agent sees tokens only, not PAN
- Network segmentation: documented isolation per Appendix D guidance
- If claiming reduced scope, provide segmentation test evidence proving out-of-scope systems cannot reach CDE.
Step 9: Findings and evidence
- Classify: CRITICAL (CDE exposed to Internet), HIGH (overly broad rule), MEDIUM (missing review documentation).
- Package: rule exports, segmentation test results, scope diagram, remediation plan.
Common Rationalizations
| Excuse the agent might generate |
Required rebuttal |
| "We use tokenization, so network segmentation doesn't matter." |
Tokenization reduces data scope but connected systems may still be in scope—segmentation still required. |
| "Cloud SG allows 0.0.0.0/0 on app port but WAF protects us." |
NSC rules must be least privilege—reliance on WAF alone does not replace deny-by-default SG design. |
| "Compliance agent needs CDE DB access for audits." |
Agent access expands PCI scope—use read replicas, sanitized data, or out-of-band QSA processes. |
| "Segmentation test passed last year." |
Req 1.2.7 requires ongoing reviews and tests when topology changes—stale tests are insufficient. |
| "MCP runs in same VPC—that's internal, so safe." |
Same VPC without zone segmentation often means flat network—explicit CDE isolation required. |
| "Temporary firewall rule for debugging is fine." |
Undocumented temporary rules are audit failures—require ticket and expiry. |
Red Flags
- CDE database security group allows corporate LAN or 0.0.0.0/0
- Agent/MCP Postgres tool can query tables containing PAN or SAD
- Segmentation test not performed after major cloud migration
- NSC rule review overdue (>6 months) with no compensating evidence
- Default vendor credentials on firewall/cloud NSC console
- Flat VPC with CDE and general workloads sharing unrestricted east-west traffic
- CHD found in agent evidence store or MCP logs
Verification
1---2name: pci-dss-network-segmentation3description: Validates PCI-DSS v4.0 network segmentation and scope reduction—Requirement 1.x (firewalls, network security controls) and 2.x (secure configurations)—for Cardholder Data Environment (CDE) isolation. Trigger when scoping PCI environments, reviewing firewall rules, VLAN segmentation, agent/MCP access to CDE, or reducing assessment scope. Do not use for payment-page script audits (use pci-dss-script-audit) or general IAM reviews without CDE focus (use access-control-identity-audit).4---56# PCI-DSS Network Segmentation78## Overview910This skill implements **PCI-DSS v4.0 Requirements 1 and 2** for **network segmentation** and **CDE scope reduction**. Proper segmentation limits PCI assessment scope to systems that store, process, or transmit **CHD/SAD** (cardholder data/sensitive authentication data) and systems connected to them.1112Key requirements:1314- **Req 1.2.x**: Network security control (NSC) configuration standards, inbound/outbound rules, CDE segmentation15- **Req 1.3.x**: Prohibit direct public access to CDE; restrict connections between untrusted networks and CDE16- **Req 1.4.x**: Personal firewall on mobile/remote devices accessing CDE17- **Req 2.x**: Secure configurations—change defaults, harden NSCs and system components1819AI agents and MCP servers must **not** bridge untrusted networks into the CDE without explicit NSC rules and business justification.2021## When to Use2223Use this skill when:2425- **Scoping PCI assessment**—identifying in-scope vs out-of-scope systems26- Reviewing **firewall rules, security groups, ACLs, WAF** between CDE and other zones27- Validating **segmentation test** (penetration test or connectivity probe) results28- Assessing whether **agent/MCP infrastructure** introduces CDE connectivity29- **Scope reduction** initiatives (moving payment to hosted iframe, P2PE)30- Hardening **NSC default configurations** (Req 2.1)3132Do **not** use this skill when:3334- Auditing checkout JavaScript (use `pci-dss-script-audit`)35- General SOC 2 logical access without CDE (use `access-control-identity-audit`)36- Encrypting data at rest (Req 3.x—note gap but use appropriate skill)3738## Core Process3940Execute steps **in order**.4142### Step 1: CDE and connected-to identification43441. Inventory systems that **store, process, or transmit** CHD/SAD.452. Identify systems **connected to** CDE (even if they don't touch CHD)—they enter scope unless adequately segmented.463. Document data flows: payment forms, tokenization, API gateways, MCP Postgres access.474. Artifact: `pci-scope-diagram-{id}.json` with trust zones (CDE, DMZ, Corporate, Cloud).4849### Step 2: Network zone model5051Define zones:5253| Zone | Description | Default trust |54| --- | --- | --- |55| CDE | CHD/SAD processing | Highest restriction |56| DMZ | Public-facing, no CHD storage | Restricted |57| Corporate | Internal business systems | Untrusted relative to CDE |58| Agent/MCP | Compliance agent runtime | **Assess connectivity to CDE** |5960Map all inter-zone connections with protocol, port, source, destination, business purpose.6162### Step 3: Requirement 1.2 — NSC rule review6364For each NSC (firewall, cloud SG, NACL, WAF):65661. Export rule set (JSON/text) via cloud API or config backup.672. Verify **deny-all default** with explicit allow rules only.683. Check **bidirectional justification** for each CDE rule:69 - Source IP/CIDR, destination, port, service owner, change ticket704. Flag violations:71 - `ANY/ANY` rules touching CDE72 - Corporate zone → CDE without jump host or PAM73 - Agent/MCP subnet → CDE database port (CRITICAL unless scoped tokenization proxy)745. Verify **rule review at least every 6 months** (Req 1.2.7)—collect review evidence.7576### Step 4: Requirement 1.3 — CDE boundary protection77781. Confirm **no direct Internet → CDE** paths (except documented encrypted payment entry in DMZ).792. Verify **DMZ → CDE** limited to minimum ports (e.g., app tier only).803. Test from untrusted network (authorized pentest or automated probe):81 - Attempt connectivity to CDE IPs on common DB/app ports82 - Expected: **connection refused/timeout** unless explicitly allowed834. Document segmentation test methodology and results.8485### Step 5: Requirement 1.4 — Remote access86871. Inventory remote access paths to CDE (VPN, ZTNA, admin consoles).882. Verify personal firewall on endpoints where applicable.893. Ensure multi-factor authentication on all remote CDE access (cross-ref CC6/Req 8).9091### Step 6: Requirement 2 — Secure NSC configuration92931. Verify default passwords changed on all NSCs (Req 2.1).942. Remove unnecessary services, protocols, accounts (Req 2.2).953. Document configuration standards with version ID.964. Compare running config vs standard—drift = FAIL until remediated or authorized.9798### Step 7: Agent/MCP segmentation assessment991001. Map compliance agent and MCP server network placement:101 - Playwright MCP: runs from which subnet? Can it reach CDE checkout URLs only (expected) or CDE backend?102 - Postgres MCP: which databases reachable? CDE DB = **in scope** for agent infrastructure1032. If agent bridges zones, require:104 - Dedicated jump architecture, read-only replicas outside CDE, or tokenized data only105 - NSC rules documented with PCI QSA review1063. **Never** store CHD in agent evidence DB without encryption and scope approval.107108### Step 8: Scope reduction validation1091101. Evaluate scope reduction strategies:111 - **SAQ A/A-EP**: outsourced payment, iframe isolation112 - **Tokenization**: agent sees tokens only, not PAN113 - **Network segmentation**: documented isolation per Appendix D guidance1142. If claiming reduced scope, provide **segmentation test evidence** proving out-of-scope systems cannot reach CDE.115116### Step 9: Findings and evidence1171181. Classify: CRITICAL (CDE exposed to Internet), HIGH (overly broad rule), MEDIUM (missing review documentation).1192. Package: rule exports, segmentation test results, scope diagram, remediation plan.120121## Common Rationalizations122123| Excuse the agent might generate | Required rebuttal |124| --- | --- |125| "We use tokenization, so network segmentation doesn't matter." | Tokenization reduces data scope but **connected systems** may still be in scope—segmentation still required. |126| "Cloud SG allows 0.0.0.0/0 on app port but WAF protects us." | NSC rules must be **least privilege**—reliance on WAF alone does not replace deny-by-default SG design. |127| "Compliance agent needs CDE DB access for audits." | Agent access **expands PCI scope**—use read replicas, sanitized data, or out-of-band QSA processes. |128| "Segmentation test passed last year." | Req 1.2.7 requires **ongoing** reviews and tests when topology changes—stale tests are insufficient. |129| "MCP runs in same VPC—that's internal, so safe." | Same VPC without zone segmentation often means **flat network**—explicit CDE isolation required. |130| "Temporary firewall rule for debugging is fine." | Undocumented temporary rules are **audit failures**—require ticket and expiry. |131132## Red Flags133134- CDE database security group allows corporate LAN or 0.0.0.0/0135- Agent/MCP Postgres tool can query tables containing PAN or SAD136- Segmentation test not performed after major cloud migration137- NSC rule review overdue (>6 months) with no compensating evidence138- Default vendor credentials on firewall/cloud NSC console139- Flat VPC with CDE and general workloads sharing unrestricted east-west traffic140- CHD found in agent evidence store or MCP logs141142## Verification143144- [ ] CDE and connected-to systems inventory complete with data flow diagram145- [ ] All NSC rule sets exported and reviewed for deny-default and least privilege146- [ ] No unauthorized ANY/ANY or Internet→CDE paths (or documented exception with QSA review)147- [ ] Segmentation connectivity test executed with results archived148- [ ] Req 1.4 remote access and MFA cross-checked149- [ ] Req 2 secure configuration standards applied with drift check150- [ ] Agent/MCP network placement assessed with CDE connectivity documented151- [ ] Scope reduction claims supported by segmentation test evidence152- [ ] Six-month NSC rule review evidence collected or scheduled gap flagged153- [ ] Findings prioritized with remediation owners and evidence bundle hashed