We use cookies to enhance your browsing experience, analyse site traffic, and personalise content. Choose your preferences below.
Required for the website to function properly. These cannot be disabled.
Enable personalised features like remembering your preferences and settings.
A definitive guide for QSAs, ISAs, and compliance managers evaluating client-side script integrity under PCI DSS v4.0.1 Requirements 6.4.3 and 11.6.1. Learn how to audit Google Tag Manager containers, test Content Security Policy configurations, and produce audit-ready evidence.
In traditional PCI DSS assessment frameworks, network security controls such as Web Application Firewalls (WAFs) and perimeter firewalls formed the primary line of defence for cardholder data environments (CDEs). However, modern e-commerce architectures rely heavily on client-side execution, where third-party JavaScript executes directly within the consumer's web browser. This architectural shift creates a significant blind spot: a server-side WAF inspects incoming HTTP requests to the web server, but it cannot inspect or control malicious JavaScript executed entirely within the end-user's Document Object Model (DOM).
Tag management systems—most notably Google Tag Manager (GTM)—compound this vulnerability by providing a mechanism to inject and update dynamic JavaScript code on payment pages without requiring a software deployment pipeline or web application firewall rule review. Compromised tag-manager access, unsafe custom HTML and overly permissive Content Security Policy (CSP) directives can create paths for browser-based skimming. Because this activity occurs in the consumer's browser, server-side controls alone may not observe the resulting DOM manipulation or data exfiltration.
Requirements 6.4.3 and 11.6.1 became effective on 31 March 2025 for entities to which they apply. They address payment-page script management and detection of unauthorised changes. Assessors should use the entity's applicable validation method and payment-page architecture to determine scope, then examine evidence such as script inventories, authorisation records, integrity controls and change-detection results.
The Perimeter Blindspot: Traditional Web Application Firewalls (WAFs) operate at the server network layer and cannot detect dynamic DOM manipulation or script-based data exfiltration occurring in the customer's browser.
Critical Scoping Risk: Allowing Google Tag Manager or marketing scripts to load unrestricted on e-commerce payment pages often invalidates Content Security Policies (CSPs) and bypasses core payment security controls.
Tag managers load secondary and tertiary scripts at runtime, rendering static server-side code reviews insufficient for PCI compliance.
Attackers host malicious payloads on standard analytics or ad-tracking endpoints that pass default network egress rules.
Scripts executing in the consumer browser can capture input field data before form submission, bypassing HTTPS encryption in transit.
Overly permissive directives such as `script-src 'unsafe-inline'` or broad domain wildcards render Content Security Policies ineffective.
Requirement 6.4.3 addresses payment-page scripts loaded and executed in the consumer's browser. Its applicability depends on the entity's PCI DSS validation method and architecture; merchants using embedded third-party payment forms should also consider the separate SAQ A eligibility criterion for protection from script attacks.
Requirement 6.4.3 requires a method to confirm each script is authorised, a method to assure each script's integrity, and an inventory of scripts with written justification for why each is necessary. Assessment evidence should demonstrate that these arrangements operate in production rather than exist only as an unverified spreadsheet.
Tag managers can load secondary scripts dynamically, so an inventory limited to the initial container snippet may be incomplete. Assessors should identify the scripts actually loaded and executed on applicable payment pages and confirm the entity's treatment with its assessor or acquirer.
Assessor Guidance: PCI DSS does not prescribe one universal technology for this control. Manual or automated methods may be used where they meet the requirement; SRI, CSP nonces and controlled tag-management workflows are implementation options, not automatic evidence of compliance.
The merchant must maintain an active inventory of all scripts executing on payment pages, including full URL paths, vendor ownership, and functional scope.
Each script must have documented operational approval explaining why its presence on the payment page is necessary for business operations.
A documented method that confirms scripts are authorised; cryptographic controls such as SRI or CSP nonces may support this where technically appropriate.
Processes to detect unauthorised modifications to script source code hosted on third-party Content Delivery Networks (CDNs).
PCI DSS v4.0.1 Requirement 11.6.1 requires a change-and-tamper-detection mechanism that alerts personnel to unauthorised modifications of security-impacting HTTP headers and payment-page contents as received by the consumer's browser. Evaluations must occur at least once every seven days or at the frequency defined through the applicable targeted risk analysis.
When reviewing evidence for Requirement 11.6.1, QSAs must inspect the configuration and alerting logic of the client-side monitoring solution. A compliant implementation must evaluate payment-page content and security-impacting HTTP headers. CSP, frame-control and transport-security headers may be relevant examples, but the evidence set should follow the actual architecture and the requirement's testing procedures.
A common point of failure during assessments is the lack of defined incident response procedures for script tampering alerts. If an alert is routed to an unmonitored mailbox or has no assigned triage process, the entity is unlikely to demonstrate that personnel are alerted and that unauthorised changes are investigated promptly.
Implementation Pitfall: A check limited to static origin files is generally insufficient because Requirement 11.6.1 evaluates headers and page contents as received by the consumer browser.
The change-detection tool must actively monitor HTTP response headers to ensure security directives are not stripped or altered in transit.
Monitoring must inspect rendered HTML structure, input fields, script elements, and inline event handlers within the browser session.
Alerting systems must differentiate between authorized container deployments and unexpected DOM/script modifications.
Documented operational procedures detailing how security operations teams respond to payment page change alerts within defined timeframes.
When conducting a PCI DSS v4.0.1 assessment for an e-commerce organisation utilizing Google Tag Manager, QSAs should perform a structured technical review of the GTM configuration and associated Content Security Policy. Relying solely on management assertions or generic architecture diagrams is insufficient.
Begin by requesting a full JSON export of all GTM container definitions published across payment page URLs. Assessors should inspect every trigger, tag, and custom JavaScript variable. Pay specific attention to tags configured with custom HTML or raw JavaScript execution rights, as these represent the highest risk for unauthorised script injection.
Next, evaluate the e-commerce application's Content Security Policy headers. A well-designed CSP can support script authorisation and integrity controls under Requirement 6.4.3. However, permissive CSP configurations can provide substantially less protection than their presence suggests. Assessors must look for common misconfigurations, such as wildcard host matchers (`script-src https:*`), missing `object-src` restrictions, or overuse of `'unsafe-inline'` and `'unsafe-eval'`.
Technical Audit Tip: Reviewing GTM container exports can provide useful configuration evidence, but assessors should corroborate exports with the scripts observed on applicable production payment pages.
Obtain GTM container JSON exports and verify that payment page tags are strictly segmented from general marketing tags.
Inspect user permissions within the tag-management platform, restrict publish rights to authorised personnel, and verify authentication controls appropriate to the entity's access-control obligations.
Test payment page HTTP response headers using browser developer tools or automated CLI scanners to validate CSP policy enforcement.
Where the chosen design uses CSP nonces or SRI, verify that they are generated, applied and validated correctly; do not treat either technique as universally mandatory.
Where CSP reporting is part of the control design, verify that reporting endpoints operate and route violations to an actively monitored workflow.
The inclusion of third-party scripts on payment pages directly impacts PCI DSS assessment scoping. Under PCI DSS v4.0.1, the boundary between Self-Assessment Questionnaire (SAQ) A and SAQ A-EP is heavily influenced by how scripts and payment forms are delivered to the consumer.
For SAQ A eligibility, all processing of cardholder data must be entirely outsourced to a PCI DSS validated payment service provider (PSP), typically via an inline frame (iFrame) or direct URL redirect. However, if the merchant hosts the parent web page that loads the PSP's iFrame, any script executing on that parent page has full administrative access to the parent page's DOM. If an attacker compromises a script on the parent page, they can manipulate the iFrame overlay or capture keystrokes, effectively executing a man-in-the-middle attack.
From 31 March 2025, PCI SSC removed Requirements 6.4.3 and 11.6.1 (and the supporting Requirement 12.3.1 targeted risk analysis) from SAQ A. SAQ A instead includes an eligibility criterion requiring applicable e-commerce merchants with embedded payment forms to confirm that their site is not susceptible to script attacks. PCI SSC explains that merchants may meet this criterion by using techniques such as—but not limited to—those described in Requirements 6.4.3 and 11.6.1, or by obtaining appropriate confirmation from the compliant payment provider.
Scoping Alert: Do not describe 6.4.3 and 11.6.1 as direct SAQ A questionnaire requirements after 31 March 2025. Assess the revised script-attack eligibility criterion and document how the merchant satisfies it.
Scripts executing on the merchant's parent page can inject fake input fields over payment iFrames or redirect form submissions.
Determine whether a third-party script vendor meets PCI DSS's TPSP definition and can affect the security of account data before applying Requirement 12.8 obligations; do not classify every script vendor automatically.
If the merchant's website directly handles or can affect the payment-data flow through JavaScript or API-based integrations, SAQ A eligibility may not apply; determine the appropriate validation method with the acquirer or assessor.
Restricting Google Tag Manager containers so they do not execute on payment page paths minimises assessment scope and attack surface.
To support an efficient and successful PCI DSS v4.0.1 assessment, compliance managers and consultants should prepare a comprehensive evidence package for Requirements 6.4.3 and 11.6.1 well in advance of the QSA onsite review.
An audit-ready evidence package must contain clear, verifiable documentation covering technical configurations, operational procedures, and historic change records. Relying on verbal explanations or incomplete screenshots during an assessment leads to elevated sampling requirements, compliance findings, or potential assessment delays.
Consultants should guide clients to implement standardised evidence generation workflows. By creating automated script inventories and continuous CSP violation logging, organisations transform what would otherwise be a disruptive assessment process into a continuous compliance framework.
Best Practice: Automating client-side script inventory generation and maintaining historical CSP violation logs supports repeatable evidence collection during annual PCI DSS assessments.
Maintain an updated register detailing script name, script source URL, vendor, business purpose, approval date, and authorising authority.
Export container version histories showing formal change management sign-offs for every published tag update.
Provide raw HTTP response header captures from production payment pages validating strict policy enforcement.
Provide retained monitoring records sufficient to demonstrate that the mechanism operated at the required frequency and that alerts were investigated under the entity's evidence-retention practices.
Documented drill results or actual incident tickets demonstrating triage of simulated payment page tampering alerts.
PCI SSC: January 2025 SAQ A updates
PCI SSC FAQ 1588: SAQ A eligibility criteria for scripts
PCI SSC: Payment Page Security and Preventing E-Skimming
Use Sync Your Cloud membership to access practical payment-architecture and PCI DSS assessment resources, together with structured guidance for turning client-side security findings into an evidence-ready remediation plan.