Lab 01 — Build PCI Scope
Mission Information
Section titled “Mission Information”| Item | Details |
|---|---|
| Lab | 01 — Build PCI Scope |
| Module | PCI DSS v4.x |
| Difficulty | Intermediate |
| Estimated Time | 90–120 Minutes |
| Primary Role | PCI GRC Analyst |
| Supporting Roles | Security Architect, Network Engineer, Cloud Engineer, Payment Team, IAM, Third-Party Risk |
| Primary Objective | Define and document a defensible PCI DSS scope |
| Primary Output | PCI Scope Package |
Mission Scenario
Section titled “Mission Scenario”You have joined CloudShop, a fictional e-commerce company that accepts card payments through its public website.
Management is preparing for its next PCI DSS assessment.
The organization believes that only the payment database is in PCI scope.
Your initial architecture review suggests the environment is more complex.
CloudShop uses:
Public E-Commerce Website
Payment Application
Payment Database
External Payment Gateway
AWS Cloud Infrastructure
Central Identity Provider
Administrative Jump Host
CI/CD Platform
Central SIEM
Vulnerability Scanner
Corporate Network
Developer NetworkManagement currently states:
Only the payment databaseis in PCI scope.Your mission is to determine whether this statement is accurate.
Mission Objective
Section titled “Mission Objective”You must build a complete PCI scoping package that answers:
Where does payment data enter?
Where does cardholder data travel?
Where is cardholder data stored?
Which systems process or transmit it?
Which systems can connect to the CDE?
Which systems can affect CDE security?
Which third parties are involved?
Which systems can legitimately be excluded?
Is segmentation sufficient?
What is the final PCI scope?What You Will Build
Section titled “What You Will Build”By the end of the lab, you will create:
01 Payment Channel Register
02 Account Data Inventory
03 Cardholder Data Flow
04 CDE Asset Inventory
05 PCI System Classification Matrix
06 Administrative Access Flow
07 Third-Party Service Provider Register
08 PCI Responsibility Matrix
09 Scope Exclusion Register
10 PCI Scope Gap Register
11 Final PCI Scope StatementEnvironment Architecture
Section titled “Environment Architecture”Use the following fictional CloudShop architecture.
Internet │ ▼ ┌──────────────┐ │ CloudShop Web │ └──────┬───────┘ │ ▼ ┌──────────────┐ │ Payment API │ └──────┬───────┘ │ ┌──────────┴──────────┐ ▼ ▼ ┌──────────────┐ ┌──────────────┐ │ Payment DB │ │ Payment │ │ Encrypted PAN │ │ Gateway │ └──────────────┘ └──────────────┘ │ ▼ Payment ProcessorSupporting systems:
Enterprise Identity Provider │ ▼ Jump Host │ ▼ CDE
Developer │ ▼Git Repository │ ▼CI/CD Platform │ ▼Payment Application
CDE Systems │ ├──→ Central SIEM │ ├──→ Vulnerability Scanner │ └──→ Backup PlatformNetwork architecture:
Corporate Network │ │ ▼Segmentation Firewall │ ▼ CDE VPC
Developer Network │ └────────→ CDE VPC TCP/443 AllowedStep 1 — Identify Payment Channels
Section titled “Step 1 — Identify Payment Channels”Start by identifying every channel through which CloudShop accepts card payments.
For this lab:
E-Commerce Websiteis the primary payment channel.
Create:
01 Payment Channel RegisterUse:
| Channel | Entry Point | Payment Method | Provider | Owner |
|---|---|---|---|---|
| E-Commerce | CloudShop Checkout | Payment Card | External Gateway | Digital Commerce |
Analyst Question
Section titled “Analyst Question”Ask:
Could customers submit cardholder data through any other channel?
Consider:
Support Tickets
Telephone
Email
Mobile App
Manual RefundsFor the initial lab assume:
No additional approved payment channelsbut record that this must be validated with business owners.
Step 2 — Identify Account Data
Section titled “Step 2 — Identify Account Data”CloudShop payment transactions use:
PAN
Cardholder Name
Expiration Date
CVVCreate:
02 Account Data InventoryUse:
| Data Element | Stored | Processed | Transmitted | Location |
|---|---|---|---|---|
| PAN | Yes | Yes | Yes | Payment DB / Application |
| Cardholder Name | Yes | Yes | Yes | Payment DB |
| Expiration Date | Yes | Yes | Yes | Payment DB |
| CVV | No after authorization | Yes | Yes | Payment Flow Only |
Analyst Observation
Section titled “Analyst Observation”CVV is:
Sensitive Authentication DataCloudShop should not retain it after authorization.
Required Validation
Section titled “Required Validation”Verify that CVV is not stored in:
Database
Logs
Support Systems
Application Debug Files
BackupsStep 3 — Trace the Cardholder Data Flow
Section titled “Step 3 — Trace the Cardholder Data Flow”Create:
03 Cardholder Data FlowDocument:
Customer Browser ↓CloudShop Website ↓Payment API ↓Payment Gateway ↓Payment ProcessorAdditional storage path:
Payment API ↓Payment Database ↓Encrypted PANData Flow Register
Section titled “Data Flow Register”Use:
| Source | Destination | Data | Protocol | Purpose |
|---|---|---|---|---|
| Browser | Website | CHD | HTTPS | Checkout |
| Website | Payment API | CHD | HTTPS | Payment Processing |
| Payment API | Payment Gateway | CHD | HTTPS | Authorization |
| Payment API | Payment DB | PAN / Transaction Data | TLS | Storage |
Step 4 — Identify Direct CDE Systems
Section titled “Step 4 — Identify Direct CDE Systems”Identify systems that:
Store CHD
Process CHD
Transmit CHDClassify:
CloudShop Website
Section titled “CloudShop Website”Processes or transmits payment information.
Classification:
CDEPayment API
Section titled “Payment API”Processes and transmits CHD.
Classification:
CDEPayment Database
Section titled “Payment Database”Stores PAN.
Classification:
CDECreate:
04 CDE Asset InventoryUse:
| Asset | Function | Stores CHD | Processes CHD | Transmits CHD | Owner |
|---|---|---|---|---|---|
| WEB-PAY-01 | Checkout | No | Yes | Yes | Engineering |
| API-PAY-01 | Payment API | No | Yes | Yes | Engineering |
| DB-PAY-01 | Payment DB | Yes | Yes | No | Database Team |
Step 5 — Identify Connected Systems
Section titled “Step 5 — Identify Connected Systems”Now identify systems that do not directly handle PAN but can access CDE systems.
Jump Host
Section titled “Jump Host”Architecture:
Administrator ↓Jump Host ↓CDEClassification:
Connected-to / Security-ImpactingReason:
Provides administrative accessto CDE systemsStep 6 — Identify Security-Impacting Systems
Section titled “Step 6 — Identify Security-Impacting Systems”Review systems that provide security or management services to the CDE.
Identity Provider
Section titled “Identity Provider”CDE administrators authenticate through the enterprise identity platform.
Classification:
Security-ImpactingReason:
Controls CDE authenticationand privileged accessCentral SIEM
Section titled “Central SIEM”Receives CDE security logs.
Classification:
Security-ImpactingReason:
Supports PCI loggingand monitoring controlsVulnerability Scanner
Section titled “Vulnerability Scanner”Scans CDE systems.
Classification:
Security-ImpactingReason:
Supports PCI vulnerabilitymanagementBackup Platform
Section titled “Backup Platform”Stores backups of the payment database containing encrypted PAN.
Classification:
CDEor directly PCI-relevant because:
Stores CHDStep 7 — Analyze CI/CD
Section titled “Step 7 — Analyze CI/CD”CloudShop developers use:
Git Repository ↓CI/CD ↓Payment ApplicationAsk:
Can CI/CD deploy codeto production payment systems?Answer:
YesTherefore:
CI/CD Platform→ Security-ImpactingReason:
Can modify CDE applicationsStep 8 — Analyze Source Repository
Section titled “Step 8 — Analyze Source Repository”Ask:
Can repository changesreach production?Yes.
Classification:
Security-Impactingbecause compromise could lead to:
Malicious Code ↓CI/CD ↓Payment ApplicationStep 9 — Build PCI System Classification Matrix
Section titled “Step 9 — Build PCI System Classification Matrix”Create:
05 PCI System Classification MatrixUse:
| System | Classification | Reason |
|---|---|---|
| Payment Website | CDE | Processes / transmits CHD |
| Payment API | CDE | Processes / transmits CHD |
| Payment DB | CDE | Stores PAN |
| Backup Platform | CDE | Stores backup containing PAN |
| Jump Host | Connected-to | Administrative CDE access |
| Identity Provider | Security-Impacting | Authenticates CDE admins |
| SIEM | Security-Impacting | Provides CDE monitoring |
| Vulnerability Scanner | Security-Impacting | Scans CDE |
| CI/CD | Security-Impacting | Can modify payment application |
| Git Repository | Security-Impacting | Source for production payment code |
| Segmentation Firewall | Segmentation | Enforces CDE boundary |
| Corporate Network | Potentially Out of Scope | Subject to segmentation validation |
| Developer Network | Requires Investigation | Has CDE connectivity |
Step 10 — Map Administrative Access
Section titled “Step 10 — Map Administrative Access”Create:
06 Administrative Access FlowUse:
Administrator ↓Enterprise Identity Provider ↓MFA ↓Jump Host ↓Payment SystemsDocument:
| Component | Purpose | PCI Relevance |
|---|---|---|
| Identity Provider | Authentication | Security-Impacting |
| MFA | Strong Authentication | PCI Control |
| Jump Host | Admin Gateway | Connected-to |
| Payment Systems | Target | CDE |
Step 11 — Investigate Developer Network Connectivity
Section titled “Step 11 — Investigate Developer Network Connectivity”Architecture shows:
Developer Network ↓CDETCP/443This is a critical scoping question.
Ask:
Why does Developer Networkneed direct CDE connectivity?Possible answer:
Developers test production APIsdirectly.This creates risk.
Current Classification
Section titled “Current Classification”Developer Network→ Connected-tounless connectivity is removed or appropriately isolated.
Step 12 — Assess Scope Reduction
Section titled “Step 12 — Assess Scope Reduction”Management wants the Developer Network excluded from scope.
To support exclusion:
Developer Network ✗ ↓CDEshould normally be enforced.
Recommended architecture:
Developer Network ↓CI/CD ↓Controlled Deployment ↓CDEwithout direct developer-network access.
Step 13 — Test Segmentation Assumptions
Section titled “Step 13 — Test Segmentation Assumptions”Create test:
Developer Workstation →Payment API443Expected if Developer Network is out of scope:
BlockedCurrent architecture:
AllowedResult:
Segmentation / Scope IssueStep 14 — Identify Third-Party Providers
Section titled “Step 14 — Identify Third-Party Providers”CloudShop uses:
Cloud Provider
Payment Gateway
Payment ProcessorCreate:
07 Third-Party Service Provider RegisterUse:
| Provider | Service | CHD Role | PCI Impact | Assurance |
|---|---|---|---|---|
| Cloud Provider | Infrastructure | Hosts CDE | High | Review PCI AOC |
| Payment Gateway | Payment Processing | Receives CHD | Critical | Review PCI AOC |
| Payment Processor | Authorization | Processes CHD | Critical | Review PCI Assurance |
Step 15 — Review Provider Assurance
Section titled “Step 15 — Review Provider Assurance”For each provider obtain, where appropriate:
Current PCI AOC
Service Scope
Responsibility Matrix
Relevant Service DescriptionDo not conclude:
Provider Is PCI Compliant ↓CloudShop Is PCI CompliantStep 16 — Build PCI Responsibility Matrix
Section titled “Step 16 — Build PCI Responsibility Matrix”Create:
08 PCI Responsibility MatrixExample:
| Control Area | CloudShop | Cloud Provider | Payment Provider |
|---|---|---|---|
| Physical Data Center | — | ✓ | Provider |
| Payment Application | ✓ | — | — |
| Cloud IAM | ✓ | Shared | — |
| Network Security | ✓ | Shared | — |
| PAN Processing | ✓ | — | ✓ |
| Payment Authorization | — | — | ✓ |
| Logging | ✓ | Shared | Provider Controls |
Step 17 — Identify Potentially Out-of-Scope Systems
Section titled “Step 17 — Identify Potentially Out-of-Scope Systems”Review:
HR SaaS
Marketing Platform
Learning Platform
Corporate CollaborationAssume they:
Do Not Store CHD
Do Not Connect to CDE
Do Not Affect CDE SecurityThey may be considered potentially out of scope.
Step 18 — Build Scope Exclusion Register
Section titled “Step 18 — Build Scope Exclusion Register”Create:
09 Scope Exclusion RegisterUse:
| System | Exclusion Reason | Validation Evidence | Status |
|---|---|---|---|
| HR SaaS | No CHD / no CDE connectivity | Architecture Review | Excluded |
| Marketing SaaS | No CHD / no security dependency | Data Flow Review | Excluded |
| Collaboration Platform | No CDE connectivity | Network Review | Excluded |
Step 19 — Do Not Exclude Systems by Department
Section titled “Step 19 — Do Not Exclude Systems by Department”Weak reasoning:
HR System→ HR Department→ Out of PCI ScopeCorrect reasoning:
No CHD
No CDE Connectivity
No CDE Security Impact ↓Potentially Out of ScopeStep 20 — Review Logging for Unexpected CHD
Section titled “Step 20 — Review Logging for Unexpected CHD”Assume application logs contain:
payment_requestPAN=4111111111111111This creates:
Central SIEM ↓Stores PANIf true, SIEM may move from merely:
Security-Impactingto directly handling CHD.
Required Action
Section titled “Required Action”Stop PAN Logging
Assess Existing Logs
Remove / Protect Stored PAN
Update ScopeStep 21 — Review Support Systems
Section titled “Step 21 — Review Support Systems”Interview Customer Support.
Question:
Do customers ever submit card numbers through support tickets?
Suppose answer:
SometimesThis introduces:
Support Platform→ Potential CHD StorageThe platform must be investigated.
Step 22 — Build PCI Scope Gap Register
Section titled “Step 22 — Build PCI Scope Gap Register”Create:
10 PCI Scope Gap RegisterUse:
| Gap | Risk | Scope Impact | Owner | Action |
|---|---|---|---|---|
| Developer Network reaches CDE | High | Scope Expansion | Network | Remove access |
| PAN in application logs | High | SIEM may enter CDE | Engineering | Redact PAN |
| Support tickets may contain PAN | High | SaaS scope expansion | Support | Investigate / prevent |
| Backup omitted from CDE | High | Incomplete scope | Infrastructure | Add to scope |
| CI/CD omitted | High | Security-impacting system missed | DevOps | Add classification |
Step 23 — Analyze Original Management Claim
Section titled “Step 23 — Analyze Original Management Claim”Original statement:
Only Payment DatabaseIs in PCI ScopeYour analysis demonstrates:
IncorrectAt minimum, CloudShop’s relevant environment includes:
Payment Website
Payment API
Payment Database
Backup Platform
Jump Host
Identity Provider
CI/CD
Source Repository
SIEM
Vulnerability Scanner
Segmentation Controls
Relevant Cloud Infrastructure
Relevant Third Partieswith Developer Network status dependent on remediation and segmentation validation.
Step 24 — Build Current-State Scope
Section titled “Step 24 — Build Current-State Scope”Current state:
PCI Relevant Environment
Payment Website │ ▼ Payment API / \ ▼ ▼ Payment DB Payment Gateway │ ▼ Backup
Identity Provider ↓Jump Host ↓CDE
Repository ↓CI/CD ↓CDE
Scanner ─────→ CDESIEM ←──────── CDE
Developer Network ↓ CDE ⚠Step 25 — Build Target-State Architecture
Section titled “Step 25 — Build Target-State Architecture”Recommended:
Developer Network ✗ ↓CDE
Developer ↓Repository ↓CI/CD ↓Approved Deployment ↓CDEAdministrative path:
Administrator ↓MFA ↓Jump Host ↓CDEStep 26 — Scope Reduction Recommendations
Section titled “Step 26 — Scope Reduction Recommendations”Recommend:
Remove direct Developer-to-CDE connectivity
Prevent PAN from entering logs
Prevent PAN in support systems
Use hosted/tokenized payment flows where practical
Maintain dedicated CDE network
Use controlled administrative paths
Continuously validate segmentationStep 27 — Build Final PCI Scope Statement
Section titled “Step 27 — Build Final PCI Scope Statement”Create:
11 Final PCI Scope StatementUse the following model.
PCI Scope Statement
Section titled “PCI Scope Statement”CloudShop’s PCI DSS scope includes the people, processes, technologies, and third-party services supporting its e-commerce payment environment.
The direct Cardholder Data Environment includes:
Payment Website
Payment API
Payment Database
Payment Database BackupThe following systems are included because they connect to or can affect the security of the CDE:
Administrative Jump Host
Enterprise Identity Provider
CI/CD Platform
Source Code Repository
Central Security Monitoring Platform
Vulnerability Scanning Platform
Network Segmentation Controls
Relevant Cloud Management and Network ServicesThird-party dependencies include:
Cloud Infrastructure Provider
Payment Gateway
Payment ProcessorThe Developer Network currently has direct connectivity to the CDE and therefore cannot be treated as fully isolated from PCI scope until that connectivity is removed or otherwise justified and technically validated.
Systems may be excluded only where CloudShop can demonstrate that they:
Do Not Store CHD
Do Not Process CHD
Do Not Transmit CHD
Cannot Connect to CDE
Cannot Affect CDE SecurityStep 28 — Scope Validation Evidence
Section titled “Step 28 — Scope Validation Evidence”Your final scope decision should be supported by:
Payment Channel Register
Account Data Inventory
Cardholder Data Flow
Network Diagram
CDE Asset Inventory
System Classification Matrix
Administrative Access Diagram
Firewall Rules
Segmentation Testing
Provider Assurance
Interviews
Technical DiscoveryStep 29 — Management Summary
Section titled “Step 29 — Management Summary”Prepare a short executive finding:
CloudShop’s current assumption that only the payment database is within PCI DSS scope is not supportable. The payment application, supporting security and administrative platforms, backup infrastructure, deployment systems, network segmentation controls, and relevant service providers all contribute to the PCI environment. Direct Developer Network connectivity and potential PAN exposure in logs and support systems require remediation before the organization can establish a defensible reduced PCI scope.
Step 30 — Scope Decision Matrix
Section titled “Step 30 — Scope Decision Matrix”Use:
| Component | Decision |
|---|---|
| Payment Website | In Scope |
| Payment API | In Scope |
| Payment DB | In Scope |
| Payment Backup | In Scope |
| Jump Host | In Scope / Connected-to |
| Identity Provider | Security-Impacting |
| SIEM | Security-Impacting |
| Vulnerability Scanner | Security-Impacting |
| CI/CD | Security-Impacting |
| Source Repository | Security-Impacting |
| Segmentation Firewall | In Scope |
| Developer Network | Scope Concern / Connected-to |
| Corporate Network | Potentially Out of Scope after validation |
| Payment Gateway | Third-Party PCI Dependency |
| Cloud Provider | Third-Party PCI Dependency |
Lab Deliverables Checklist
Section titled “Lab Deliverables Checklist”Before completing the lab, confirm you created:
-
01 Payment Channel Register
-
02 Account Data Inventory
-
03 Cardholder Data Flow
-
04 CDE Asset Inventory
-
05 PCI System Classification Matrix
-
06 Administrative Access Flow
-
07 Third-Party Service Provider Register
-
08 PCI Responsibility Matrix
-
09 Scope Exclusion Register
-
10 PCI Scope Gap Register
-
11 Final PCI Scope Statement
Validation Checklist
Section titled “Validation Checklist”Payment Channels
Section titled “Payment Channels”-
All payment channels identified.
-
CHD entry points identified.
-
payment owners identified.
-
PAN flow identified.
-
PAN storage identified.
-
SAD handling reviewed.
-
logs reviewed for CHD.
-
support workflows reviewed for CHD.
-
storing systems identified.
-
processing systems identified.
-
transmitting systems identified.
-
backups identified.
Security Dependencies
Section titled “Security Dependencies”-
identity platform reviewed.
-
administrative paths reviewed.
-
CI/CD reviewed.
-
repository reviewed.
-
logging reviewed.
-
vulnerability scanning reviewed.
Network
Section titled “Network”-
CDE boundary defined.
-
Developer Network connectivity reviewed.
-
Corporate Network connectivity reviewed.
-
segmentation firewall reviewed.
-
segmentation validation planned.
Third Parties
Section titled “Third Parties”-
cloud provider identified.
-
payment gateway identified.
-
payment processor identified.
-
PCI assurance identified.
-
responsibilities mapped.
Exclusions
Section titled “Exclusions”-
exclusion reasons documented.
-
no CHD validated.
-
no connectivity validated.
-
no security dependency validated.
Challenge 1 — Unexpected Backup
Section titled “Challenge 1 — Unexpected Backup”During the assessment you discover:
DB-PAY-01 ↓Nightly Backup ↓S3 BucketThe bucket contains encrypted PAN.
Question:
Is the bucket relevant to PCI scope?
Answer:
Yesbecause it stores cardholder data.
Challenge 2 — SIEM Contains PAN
Section titled “Challenge 2 — SIEM Contains PAN”You discover the application logs:
Full PANinto the SIEM.
Question:
Does this affect PCI scope?
Answer:
YesThe SIEM is now not only security-impacting; it is also storing CHD until the issue is remediated and data handling is reassessed.
Challenge 3 — Developer Connectivity
Section titled “Challenge 3 — Developer Connectivity”Developer workstation can access:
Payment API443Question:
Can the Developer Network automatically be considered out of scope?
Answer:
NoThe connectivity must be analyzed, restricted, or otherwise treated appropriately in scope.
Challenge 4 — Cloud Provider
Section titled “Challenge 4 — Cloud Provider”Cloud provider has a current PCI AOC.
Question:
Does that make CloudShop PCI compliant?
Answer:
NoCloudShop remains responsible for its own:
IAM
Network Configuration
Applications
Data Handling
Logging
Security TestingChallenge 5 — Tokenization
Section titled “Challenge 5 — Tokenization”CloudShop redesigns so that:
Customer ↓Payment Provider ↓Token ↓CloudShopQuestion:
Could this reduce PCI scope?
Answer:
Potentially Yesbut the new architecture, tokenization model, merchant responsibilities, and provider responsibilities must be validated.
Lab Success Criteria
Section titled “Lab Success Criteria”The lab is complete when you can confidently answer:
Where does CHD enter?
Where does CHD travel?
Where is CHD stored?
Which systems form the CDE?
Which systems connect to the CDE?
Which systems protect the CDE?
Which platforms can modify the CDE?
Which providers handle payment data?
Which networks can reach the CDE?
Which systems can be excluded?
What evidence supports every scope decision?Professional Deliverable
Section titled “Professional Deliverable”Your final PCI scope package should contain:
Executive Summary
Payment Channel Register
Account Data Inventory
CHD Flow Diagram
CDE Asset Inventory
System Classification Matrix
Administrative Access Flow
Third-Party Register
Responsibility Matrix
Scope Exclusion Register
Scope Gap Register
Final PCI Scope Statement
Remediation RecommendationsThis package should be suitable for review by:
PCI Program Owner
CISO
Security Architecture
Network Security
Payment Engineering
GRC
QSA / PCI AssessorLab Completion
Section titled “Lab Completion”You have now completed:
Lab 01 — Build PCI Scope
Section titled “Lab 01 — Build PCI Scope”You moved from:
Management Assumptionto:
Payment Data Discovery ↓Architecture Analysis ↓System Classification ↓Third-Party Mapping ↓Scope Validation ↓Defensible PCI ScopeThe key lesson from this lab is:
PCI scope is determined by payment-data flow, connectivity, administrative capability, and security dependencies—not by system names, departments, or assumptions.
What’s Next?
Section titled “What’s Next?”➡️ Next: Lab 02 — PCI Gap Assessment
In the next lab, you will use the CloudShop PCI scope created here and perform a structured assessment across key PCI control areas.
You will investigate deliberate control weaknesses involving:
Network Segmentation
Access Control
MFA
Vulnerability Management
Logging
Secure Development
Penetration Testing
Third-Party Assuranceand build:
PCI Requirement Assessment Matrix ↓Control Evidence Review ↓Gap Register ↓Risk Rating ↓Root Cause Analysis ↓Remediation Plan ↓PCI Readiness Conclusion