Join our Newsletter — 33% off our NHI Course
Home FAQ Cyber Security How should e-commerce merchants confirm that their site…
Cyber Security

How should e-commerce merchants confirm that their site is not susceptible to script-based attacks under SAQ A?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated September 9, 2026 Domain: Cyber Security

Merchants should confirm script resistance in one of two ways. They can implement controls aligned to PCI DSS Requirements 6.4.3 and 11.6.1 to prevent and detect malicious scripts on the merchant page, or they can obtain documented confirmation from the TPSP or payment processor that its embedded payment page, when used as instructed, includes protections against script attacks.

What “script resistance” means under SAQ A

Under SAQ A, “script resistance” is not a generic website hardening claim. It is a specific assurance that the merchant page involved in the payment flow is either protected against malicious script manipulation or does not need that merchant-side protection because the payment page is embedded and controlled by a TPSP in a documented, instruction-bound way. That distinction matters because SAQ A depends on who controls the page and where cardholder-data risk can be introduced.

Merchants often get this wrong by treating a compliant hosted payment field, iframe, or redirect as proof that the whole checkout page is outside scope. The real question is whether the merchant-controlled page can be altered in a way that lets hostile script alter payment behavior, skim data, or redirect a customer at the point of entry. Industry guidance makes clear that this is a control-and-assurance question, not a cosmetic one, and PCI DSS now expects merchants to be able to show that protection or documented third-party confirmation exists.

For the baseline PCI context, the merchant’s answer should align with the requirements behind script protection and tamper detection, while remaining anchored to the actual payment architecture they use. In practice, many merchants discover the gap only after a checkout integration review shows the script boundary was assumed rather than evidenced.

How merchants usually prove the control is in place

There are two defensible paths, and the correct one depends on the payment design. If the merchant’s own page can host or influence scripts in a way that touches the payment experience, the merchant needs controls that prevent unwanted script changes and detect unexpected modifications. If the payment interaction is truly handled through a TPSP or payment processor embedded page, the merchant needs documented confirmation that the embedded page, when used exactly as instructed, is protected against script-based tampering.

That second path is often misunderstood. The merchant is not simply outsourcing risk by using a provider. The merchant still needs evidence that the integration follows the provider’s approved pattern and that the provider’s page or component is protected in the way PCI expects. If the merchant can change the integration, inject additional JavaScript, or load third-party scripts into the payment page, then “hosted payment” alone does not remove the need for script assurance.

  • Confirm which page is merchant-controlled and which part is provider-controlled.
  • Check whether checkout scripts are first-party only, externally loaded, or managed through a tag system.
  • Retain written evidence if the TPSP is asserting protection for its embedded payment page.
  • Validate that the actual production implementation matches the documented payment flow.

If the merchant cannot show control boundaries, script provenance, and implementation evidence together, the assurance breaks down because the page may be compliant in design but not in deployment.

Where SAQ A assumptions break down in real deployments

Tighter payment isolation often increases integration overhead, requiring merchants to balance lower PCI exposure against less flexibility in page design, analytics, and marketing tags. That tradeoff becomes sharper when teams want third-party scripts for conversion tracking or personalization, because those tools can create the very browser-side exposure SAQ A is trying to avoid.

There is also an important consensus point versus a non-consensus point. Consensus: if a merchant page can influence the payment page or load scripts that can alter payment behavior, that boundary deserves formal control and evidence. Less settled in practice: how much supporting evidence a merchant needs to demonstrate script resistance when the provider owns the payment component but the merchant still controls surrounding page logic. In those cases, merchants should treat the provider’s written confirmation and the exact integration instructions as part of the compliance evidence set, not as a formality.

For merchants using modern checkout tooling, the main edge case is that the payment experience may look hosted while still depending on merchant-side scripts for presentation or routing. That is where SAQ A claims tend to fail, because the appearance of outsourcing is not the same as control separation. Merchants should be able to explain why their specific implementation does not allow script-based tampering to affect the payment path.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8 and NIST CSF 2.0 set the technical controls, while PCI DSS v4.0 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
PCI DSS v4.06.4.3 — Payment Page ScriptsDirectly addresses script control on merchant payment pages.
11.6.1 — Script and Payment Page Change DetectionSupports detection of unauthorised script or page changes.
Recommendation — Restrict and verify payment-page scripts to prevent unauthorised manipulation. Monitor payment pages for unauthorised script or content changes.
CIS Controls v816 — Application Software SecurityCovers secure handling of scripts and checkout application change control.
8 — Audit Log ManagementRelevant to retaining evidence of page and script integrity monitoring.
Recommendation — Apply secure software controls to checkout code and third-party script changes. Log checkout-page changes and preserve evidence for review and incident response.
NIST CSF 2.0PR.AC-4 — Access Permissions and AuthorizationsSupports limiting who can alter checkout scripts and payment-page content.
Recommendation — Limit checkout-script modification rights to authorised maintainers only.

Practitioner Guidance

What to verify: Verify the exact browser path from customer page load to payment submission, then map every script source that can influence that path. If the merchant can alter what the customer sees or submits at payment time, treat that as a control boundary problem, not just a web development issue.

Decision rule: If the merchant page carries any script that can affect the payment interaction, require direct control evidence or a documented alternative from the TPSP. If the merchant is relying on provider assurances, make sure those assurances explicitly match the live integration pattern rather than a generic hosted-payment claim.

What practitioners underestimate: The hardest failures are usually not obvious malware events but silent drift in tags, embeds, and checkout code over time. The right question is not whether the site was once designed to resist script attacks, but whether the current production state still matches that design.

Practitioner takeaway: SAQ A script assurance is won or lost at the integration boundary, so merchants should prove control with live evidence of who can influence the payment page, not with assumptions about outsourcing.

Deepen Your Knowledge

Sign up to our weekly newsletter — get 33% off our NHI Foundation Level Course

    NHIMG Editorial Note
    Reviewed and updated by the NHIMG editorial team on September 9, 2026.
    NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org