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 Gap Analysis on AWS
PCI DSS 4.0.1 ยท QSA Guide

PCI DSS Gap Analysis on AWS:
A QSA's Step-by-Step Guide

A PCI DSS gap analysis is only useful if it produces findings that are precise enough to drive remediation. Vague findings โ€” "encryption should be improved," "access controls need review" โ€” waste engagement time and erode client trust. This guide covers how to structure a gap analysis for AWS-hosted payment environments under PCI DSS 4.0.1, with the specific AWS configurations and evidence artefacts that map to each requirement.

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

What a Gap Analysis Is and Is Not

A PCI DSS gap analysis is a pre-assessment exercise that identifies the delta between an entity's current control environment and the requirements of the standard. It is not an assessment. It does not produce a Report on Compliance (ROC) or an Attestation of Compliance (AOC). Its output is a prioritised remediation roadmap, not compliance certification.

This distinction matters because it defines what you are obligated to report. During a gap analysis, findings that would be reportable in a formal assessment are instead framed as remediation items. The client can fix them before the formal assessment begins โ€” which is the purpose of the exercise.

Scope note: A gap analysis is only meaningful if the cardholder data environment has been correctly scoped before you begin. Starting a gap analysis against an incorrectly scoped environment produces a gap report that references the wrong systems. Confirm scope โ€” specifically the CDE boundary and all connected components โ€” before commencing the analysis.

Pre-assessment vs post-assessment gap analysis

There are two contexts in which QSAs conduct gap analyses:

Pre-assessment: Conducted before the formal assessment begins. The goal is to find critical gaps early so the client has time to remediate before the assessment window. This protects the client from a failed assessment and protects the QSA's assessment timeline from being disrupted by major findings that require extended remediation.

Version migration: Conducted when an entity is transitioning from PCI DSS 3.2.1 to 4.0.1. The goal is to identify which new 4.0.1 requirements are not yet met and to build a remediation programme. As of 31 March 2025, all assessments must be conducted against 4.0.1.

The Five Phases of an AWS Gap Analysis

1
Scope confirmation
Validate the CDE boundary. In AWS this means confirming which accounts, VPCs, and services are in scope, reviewing VPC flow logs to identify unexpected data flows, and checking AWS Config rules for scope-relevant resource types. A missing S3 bucket or Lambda function at this stage will produce an incomplete gap report.
2
Evidence collection
Gather the artefacts you will test against each requirement: AWS Config snapshots, IAM policy exports, CloudTrail logs, security group rule exports, KMS key policies, GuardDuty findings, Inspector reports, patch status exports, and application-level evidence (WAF rule sets, logging configurations). Define the evidence list before the engagement to avoid scope creep.
3
Control testing
Test each requirement against the collected evidence. For AWS environments, most control testing can be automated โ€” AWS Security Hub with the PCI DSS standard enabled provides a baseline control assessment across the 12 requirements. Manual testing is required for controls that Security Hub does not cover, particularly application-level and procedural controls.
4
Gap documentation
Document each gap with: the specific sub-requirement not met, the evidence reviewed, why the evidence does not satisfy the requirement, the risk rating (Critical / High / Medium / Low), and the recommended remediation action with an effort estimate. Vague findings โ€” "access controls are insufficient" โ€” are not actionable and should be replaced with specific control failures.
5
Remediation roadmap
Prioritise findings by risk rating and effort, and produce a roadmap that sequences remediation. Critical and High findings that block the formal assessment must be addressed first. Map dependencies โ€” some findings cannot be resolved until upstream findings are closed (for example, you cannot produce an accurate CDF diagram until scope is confirmed).

Using AWS Security Hub for the Initial Control Sweep

AWS Security Hub's PCI DSS standard provides automated checks across a significant portion of the 12 requirements. Enable it across all in-scope accounts and regions before the engagement begins. The output gives you a baseline findings list that covers:

Requirement areaSecurity Hub coverageRequires manual testing
Network controls (Req 1)Security group rules, VPC flow logs enabled, unrestricted ingressNACLs, Transit Gateway routing, Direct Connect segmentation
Account hardening (Req 2)Default VPC deletion, unused credentials, root account MFAApplication default settings, vendor-supplied defaults at app layer
Data protection (Req 3)S3 encryption, RDS encryption, EBS encryption at restApplication-level encryption, SAD retention, truncation at code level
Transmission encryption (Req 4)Load balancer HTTPS listeners, CloudFront TLS policyCipher suite specifics required for 4.0.1 Req 12.3.3
Access control (Req 7 + 8)Root account usage, MFA for console, unused IAM credentialsLeast privilege review, shared accounts, role separation
Logging and monitoring (Req 10)CloudTrail enabled, S3 logging, VPC flow logsLog review procedures, alert response, log integrity
Vulnerability management (Req 6)Inspector findings, patch status via SSMApplication-level SAST/DAST results, change management process
Security testing (Req 11)AWS Config rules for basic posturePenetration test results, ASV scan results, IDS/IPS coverage

Important: Security Hub findings are not a gap analysis. They are a starting point. Security Hub will report on AWS-native controls but will not assess application-level controls, procedural controls, or the quality of policies and procedures. A gap analysis that relies solely on Security Hub output will miss significant findings.

Common AWS Gaps by Requirement (4.0.1)

The following are the gaps most commonly found in AWS-hosted payment environments during gap analysis engagements. Click each requirement to expand the findings.

Evidence to Collect Before the Engagement

Requesting this evidence before the engagement begins eliminates the most common cause of engagement delays โ€” waiting for artefacts during the analysis:

AWS Config snapshot across all in-scope accounts and regions
IAM credential report (all accounts)
CloudTrail configuration and S3 bucket policy
Security group rules for all in-scope VPCs (exported via CLI or Config)
KMS key policies for all CMKs used to encrypt CHD
AWS Security Hub findings export (PCI DSS standard)
Inspector scan results for all in-scope EC2 and Lambda
VPC flow log samples (24-hour window)
Patch status report from Systems Manager (in-scope instances)
List of all TPSPs with their PCI DSS certification status and last AOC date
CDF diagram (or topology diagram if CDF not yet produced)
Penetration test report (most recent, within 12 months)
ASV scan results (most recent quarterly scan)
Incident response plan
Information security policy (most recent version with review date)
Payment page script inventory (if e-commerce is in scope)

How to Document Gap Findings for the ROC

Gap findings should be documented in a format that maps directly to the formal assessment report structure. This reduces rework when the formal assessment begins and gives the client a clear view of what the finding will look like in the ROC if not remediated.

Each finding should include:

FieldDescriptionExample
RequirementThe specific sub-requirement numberPCI DSS 4.0.1 Req 3.3.1
Finding titleA specific, actionable titleCVV retained in DynamoDB transaction table after authorisation
Evidence reviewedWhat you looked atDynamoDB table schema, application code (Lambda handler), CloudWatch Logs sample
Gap descriptionWhy the evidence does not satisfy the requirementThe cvv field is present in the transaction record 48 hours post-authorisation. Req 3.3.1 prohibits any SAD retention after authorisation is complete.
Risk ratingCritical / High / Medium / LowCritical
RemediationSpecific action requiredRemove cvv field from transaction write path in Lambda handler. Implement pre-write validation to reject records containing SAD.
Effort estimateDevelopment + testing effortMedium (2โ€“3 days development, 1 day QA)
DependenciesWhat must be completed firstNone โ€” independent remediation item

Time saving: Gap findings documented in this format can be directly imported into the formal ROC template when the assessment begins. Remediated findings become Compliant. Unremediated findings become Not in Place. The documentation investment at gap analysis stage pays for itself in assessment efficiency.

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.

PCI Gap Analysis Tool
Run a structured PCI DSS 4.0.1 gap analysis for an AWS-hosted payment environment. Generates a prioritised findings report with specific sub-requirement references, risk ratings, and remediation guidance โ€” formatted for the ROC.