Sync Your Cloud
Sync Your Cloud

๐ŸชWe value your privacy

We use cookies to enhance your browsing experience, analyse site traffic, and personalise content. Choose your preferences below.

Essential CookiesRequired

Required for the website to function properly. These cannot be disabled.

Functional CookiesOptional

Enable personalised features like remembering your preferences and settings.

Home/Insights/PCI DSS Cardholder Data Flow Diagram
PCI DSS 4.0.1 ยท QSA Guide

PCI DSS Cardholder Data Flow Diagram:
What QSAs Actually Need to See

A cardholder data flow diagram is not a system architecture diagram with PCI written on it. Most diagrams submitted to QSAs are returned on the first pass because they conflate physical topology with data flows. This guide explains exactly what Requirement 1.2.4 demands, what the common rejection reasons are, and how AWS-hosted environments change the scoping conversation.

14 min read PCI DSS 4.0.1 Written for QSAs and compliance consultants

What Requirement 1.2.4 Actually Demands

PCI DSS Requirement 1.2.4 states that an entity must maintain an accurate and current diagram of all connections between the cardholder data environment (CDE) and other networks, including wireless networks. What it does not say is that a single network topology diagram satisfies this โ€” and this is where most submissions fall apart.

The standard requires two distinct outputs that are often conflated:

  • Network diagram (Req 1.2.4): shows all connections into and out of the CDE, including segmentation controls, firewall positions, and network zones. This is the topology view โ€” VPCs, subnets, security groups, transit gateways, Direct Connect circuits.
  • Data flow diagram (Req 12.3.3 + 12.4.1): shows how cardholder data (PAN, SAD, CVV) moves between entities โ€” not how systems connect. This is the data movement view: who sends what to whom, in what format, encrypted or not, retained or discarded.

4.0.1 change: Requirement 12.3.3 in PCI DSS 4.0.1 adds a formal requirement to document all cryptographic cipher suites and protocols in use across the CDE. Your data flow diagram must now show encryption method at each flow boundary, not just "encrypted in transit."

For AWS environments, the network diagram and data flow diagram often end up as the same drawing โ€” which creates a document that is too dense to review and too imprecise to scope from. The practical guidance for QSAs working with AWS-hosted payment environments is to require them as two separate artefacts.

Required Elements in a Compliant CDF Diagram

The following elements are required for a cardholder data flow diagram to pass QSA review. Missing any one of these is grounds for return.

All cardholder data flows
Every path where PAN, SAD, or CVV is transmitted, processed, or stored. Includes flows to payment processors, issuing banks, fraud systems, logging pipelines, and data warehouses.
Encryption state at each boundary
TLS version, cipher suite, and certificate authority at every flow boundary. "Encrypted" is not sufficient in 4.0.1. Specify TLS 1.2 / 1.3 and key management approach (ACM, KMS, external HSM).
All storage locations
Every location where CHD is retained โ€” including ephemeral storage. In AWS this means RDS instances, S3 buckets, DynamoDB tables, ElastiCache clusters, SQS queues, CloudWatch Logs, and Lambda /tmp directories.
Trust zone boundaries
The CDE boundary must be explicitly drawn. In AWS this maps to VPC boundaries, security group perimeters, and subnet tiers. Every crossing must have a named control (WAF, security group rule, NACLs, firewall).
All entities that touch CHD
Human roles (developers, support, DBA), service accounts, third-party integrations, and automated agents. In agentic payment systems, each agent identity that initiates or handles a transaction must be named.
Review date and version
The diagram must carry a version number and review date. Requirement 12.5.2 mandates review following any significant change. An undated diagram cannot be accepted as current.
Deletion and truncation points
Where PAN is truncated, masked, or deleted. Requirement 3.3.1 prohibits storing SAD after authorisation. Your diagram must show where this deletion occurs in the flow, not just assert that it happens.
Third-party service providers
All TPSPs receiving CHD must be identified. In AWS environments this commonly includes Stripe, Adyen, payment gateways, fraud vendors, and card scheme networks. Req 12.8 requires TPSP management evidence.

AWS-Specific Scoping: Where QSAs Get Caught

The AWS shared responsibility model creates scoping ambiguity that does not exist in on-premises environments. The following AWS services commonly pull additional components into scope that clients do not initially flag:

CloudWatch Logs and CloudTrail

If an application logs payment-related activity โ€” even partially masked PANs, transaction IDs that map back to a cardholder, or authentication tokens used in payment flows โ€” the CloudWatch Log Group receiving those logs is in scope. CloudTrail, if configured to log data events on S3 buckets storing CHD, is also in scope. Both services must appear on the diagram.

Lambda /tmp and execution environment

Lambda functions handling payment authorisation or tokenisation process CHD in memory and may cache it in the /tmp directory (512 MB - 10 GB depending on configuration). The execution environment persists between invocations within the same container lifecycle. This constitutes in-scope temporary storage. The Lambda function, its VPC configuration, and the layers it uses must be on the diagram.

SQS, SNS, and EventBridge

Queuing services that carry payment events โ€” including failed payment notifications, retry messages, and webhook payloads from payment processors โ€” are in scope if the message body contains CHD. This is frequently overlooked in event-driven architectures. Encryption at rest (SSE-KMS) and access policy must be documented on the diagram.

API Gateway and VPC Endpoints

API Gateway receives inbound payment requests and sits at the CDE boundary. WAF associations, resource policies, and TLS termination must be documented. VPC Endpoints used to route payment data between services without traversing the public internet must be included and their endpoint policies stated.

Common miss: Clients frequently omit the path from API Gateway to the Lambda authoriser, and the path from Lambda to Secrets Manager (where payment processor API keys are retrieved). Both are in-scope flows and both must appear on the diagram.

PCI DSS 4.0.1 Changes That Affect the Diagram

PCI DSS 4.0.1, effective 31 March 2025, introduced changes that have a direct impact on what a compliant cardholder data flow diagram must contain:

RequirementChange from 3.2.1Impact on CDF diagram
6.4.3All payment page scripts must be authorised and have integrity checkedClient-side script inventory must appear in the data flow โ€” including CSP headers, SRI hashes, and the script origin
11.6.1Change- and tamper-detection for payment pagesThe monitoring mechanism (script monitoring service, CSP violation reporting endpoint) must be shown as a flow from the payment page
12.3.2Targeted risk analysis for requirements not using the defined approachAny customised implementation must include the data flow as part of its risk analysis documentation
12.3.3Cryptographic cipher suite inventorySpecific cipher suites (not just "TLS 1.2+") must be named at each boundary on the diagram
3.6.1Key management procedures formalisedKMS CMK ARNs, HSM locations, and key rotation schedules must be documented and referenced from the storage nodes on the diagram

The Five Most Common QSA Rejection Reasons

These are the five reasons a cardholder data flow diagram is most commonly returned on first pass. Reviewing these before submission eliminates most first-pass failures:

Network topology submitted instead of data flow
The diagram shows VPCs, subnets, and security groups with arrows between them but does not show cardholder data movement. A topology diagram cannot satisfy Req 12.3.3 because it does not reveal what data moves or how it is protected at each step.
Missing third-party service provider flows
The flow from the entity to the payment gateway, card scheme, or fraud service is absent. These external flows are often the longest data paths and carry the highest risk. Requirement 12.8.5 requires the entity to confirm whether the TPSP has PCI DSS responsibility for those flows.
Encryption described as a label, not a specification
Arrows labelled "encrypted" do not satisfy 4.0.1 Req 12.3.3. The diagram must name the protocol (TLS 1.2 or 1.3), key management approach (ACM-managed certificate, customer-managed KMS CMK), and certificate authority where relevant.
No version or review date
An undated diagram cannot be confirmed as current. Requirement 12.5.2 requires review and update following significant environmental change. Without a date, the QSA cannot determine whether the diagram reflects the environment as assessed.
CHD storage in logging and monitoring services not shown
Application logs, CloudWatch Log Groups, and observability platforms that receive payment events are consistently omitted. If the log payload contains even a partial PAN or a token that maps to a cardholder, the service is in scope and must appear on the diagram.

Scoping the CDE Boundary on AWS

The CDE boundary in an AWS environment is defined by the outermost control that prevents unauthorised network access to systems that store, process, or transmit CHD. In practice this maps to the following layers:

QSA Pre-Submission Review Checklist

Use this checklist before accepting a CDF diagram from a client. Each item that cannot be confirmed is a finding that needs resolution before the diagram can be marked as satisfying Req 1.2.4 and Req 12.3.3.

  • All PAN flows are traced end-to-end from card entry to authorisation response
  • All SAD flows (CVV, expiry date) are shown and deletion points are marked
  • Every storage location (database, cache, queue, log) is identified and labelled as in-scope or out-of-scope with rationale
  • Encryption protocol and cipher suite is specified at every flow boundary
  • All third-party service providers are named with their PCI DSS certification status noted
  • CDE boundary is drawn and every crossing is labelled with the controlling mechanism
  • All human roles and service accounts that access CHD are identified
  • Diagram version number and review date are present
  • AWS-specific services (CloudWatch, SQS, Lambda) that receive CHD are included
  • For 4.0.1: client-side payment scripts are inventoried and script origin flows are shown
  • For 4.0.1: cipher suite inventory (Req 12.3.3) is captured on the diagram or in a companion document
  • Diagram has been reviewed and signed off following the most recent infrastructure change

Interactive assessment

Apply this in your assessment

This assessment maps directly to the controls in this article. Use it to generate gap evidence, cardholder data flow diagrams, or scoping documentation for a PCI DSS assessment โ€” free with a Sync Your Cloud account.

Cardholder Data Flow Diagram Generator
Generate a PCI DSS-compliant cardholder data flow diagram for an AWS-hosted payment environment. Outputs a versioned diagram with encryption annotations, trust zone boundaries, and a companion controls register โ€” ready for QSA review.