Skip to content
FunnelGuard

Fix guide by FunnelsGuard

No tamper detection on payment page (PCI DSS 11.6.1): how to fix

OPS-366High impactCould addBy FunnelGuardPublished Updated
On this page

What this issue is

PCI DSS is the card industry's security standard. Version 4.0 added requirement 11.6.1: a change and tamper detection mechanism that alerts personnel to unauthorized changes to the HTTP headers and the contents of payment pages as received by the consumer browser. It must evaluate the page at least once every seven days, or at a frequency set by your targeted risk analysis.

Why it costs you leads or sales

Without tamper detection, a malicious or broken script change can sit on your checkout for weeks. The effects are direct: stolen card data, chargebacks, forced investigations, fines or higher fees from your acquirer, and lost customer trust. Injected scripts can also slow the page or break the pay button, so orders drop before anyone notices.

How an undetected change unfolds (Example)
  1. Day 0

    A compromised third-party script is changed to add a card-copying routine.

  2. Day 1-20

    Checkout looks and works normally. Nobody compares the page to a baseline.

  3. Day 21

    Your acquirer or a customer reports fraud linked to your site.

  4. Day 22

    Investigation starts, the script is removed, and customers are notified.

  5. With detection

    A weekly or daily comparison flags the new script within a day or so, and you remove it early.

Where a skimmer slips through
  1. Customer opens checkoutPage loads scripts and headers
  2. Script is alteredNo baseline comparison, no alert
  3. Card details typedCopied by the injected code
  4. Order completesLooks normal to you

Without detection, the change is never noticed and every later step is exposed.

How to check if your site has it

Ask one question: if a script on your payment page changed tonight, who would be told, and how fast? If the answer is nobody, or only when someone happens to look, you have this gap.

Quick self-check
  • You know which pages load or host your payment form (checkout, cart, payment step).
  • You have an approved list of scripts and their purpose for those pages.
  • Something compares the live page, as a browser sees it, with that approved state at least every 7 days.
  • It also compares security-relevant HTTP headers such as Content-Security-Policy.
  • Alerts go to a named person or team, not an unread inbox.
  • You have tested that a deliberate change triggers an alert.
  • The process and its frequency are documented, with the reasoning if you use a risk analysis.

How to fix it

The approach is the same on every platform: define a baseline, compare the live page against it on a schedule, and alert a person. Options include a dedicated payment page security tool from a vendor, your payment provider's tooling if it offers one, or a scripted check you run yourself.

Add tamper detection to your payment pages
  1. List your payment pages

    Include every URL that shows or loads the payment form, including cart and multi-step checkout pages.

  2. Build a script inventory and baseline

    Record each script URL, who owns it, why it is needed and, where possible, a hash. This also supports requirement 6.4.3.

  3. Choose a detection method

    Pick a commercial payment page monitoring tool, or a scheduled script that fetches the page in a real browser, hashes the scripts and records key headers.

  4. Set the schedule

    Run at least every 7 days. Daily is a safer default for busy stores.

  5. Route alerts to a person

    Send alerts to a monitored channel with a named owner and a documented response procedure.

  6. Tighten what can change

    Add a Content-Security-Policy header, ideally in report-only mode first, and use Subresource Integrity on scripts you host or that are versioned.

Where to control scripts and headers on your platform
  1. Limit who can add code

    Restrict admin accounts, enable two-factor sign-in and keep plugins updated. Review plugins that load scripts on checkout pages.

  2. Set headers

    Add a Content-Security-Policy header through your host, server config or a security plugin that supports headers.

Example: weekly baseline check with Playwright (Node.js)javascript
import { chromium } from 'playwright';
import { createHash } from 'node:crypto';
import fs from 'node:fs';

const url = 'https://example.com/checkout';
const baselineFile = 'baseline.json';

const browser = await chromium.launch();
const page = await browser.newPage();
const scripts = {};
page.on('response', async (res) => {
  const req = res.request();
  if (req.resourceType() === 'script') {
    try {
      const body = await res.body();
      scripts[req.url()] = createHash('sha256').update(body).digest('hex');
    } catch {}
  }
});
const main = await page.goto(url, { waitUntil: 'networkidle' });
const h = main.headers();
const current = {
  scripts,
  headers: { csp: h['content-security-policy'] || '', xfo: h['x-frame-options'] || '' }
};
await browser.close();

if (!fs.existsSync(baselineFile)) {
  fs.writeFileSync(baselineFile, JSON.stringify(current, null, 2));
  console.log('Baseline saved');
} else {
  const base = JSON.parse(fs.readFileSync(baselineFile, 'utf8'));
  if (JSON.stringify(base) !== JSON.stringify(current)) {
    console.error('CHANGE DETECTED on', url);
    process.exit(1); // wire this to your alerting
  }
  console.log('No change');
}

How to confirm it's fixed

Prove the detection works
  1. Make a harmless test change

    On a staging copy or in a controlled window, add a benign script or change a header.

  2. Wait for the next run

    Or trigger the check manually.

  3. Confirm the alert arrives

    The right person should receive it with enough detail to see what changed.

  4. Revert and record

    Remove the test change, update the baseline if needed and keep the evidence for your assessor.

How to prevent it happening again

Keep detection working
  • Review the baseline whenever you add or remove a script, tag or app.
  • Keep a named owner and a backup for alerts.
  • Remove scripts you no longer need from payment pages.
  • Re-test the alerting every quarter and after platform or hosting changes.
  • Review third-party vendors that load code on checkout.
  • Re-check your SAQ type and requirements with your acquirer each year.

How FunnelGuard handles this

FunnelGuard does not check this yet. It does not compare your payment page scripts or HTTP headers against a baseline, and it is not a PCI DSS tamper-detection tool. A page-change check is a possible future addition.

What FunnelGuard does do is run your real checkout journey on a schedule from the EU or the US, check each step and the tracking hits sent to platforms such as GA4, Google Ads and Meta, and send one alert with a screenshot and likely cause if something fails after a second-region re-check. That can surface symptoms of a broken or interfered checkout, such as a pay button that stops working or tags that stop firing, but it does not tell you a script was tampered with. It stops before payment unless your store's test mode is set up.

Frequently asked questions

Questions people ask

What is PCI DSS requirement 11.6.1?

It is a PCI DSS 4.0 requirement for a change and tamper detection mechanism on payment pages. It must alert personnel to unauthorized changes to HTTP headers and page contents as received by the consumer browser, and evaluate them at least every seven days or as set by your risk analysis.

Why do I need tamper detection if my server files are secure?

Skimming code often arrives through third-party scripts, tag managers or CDNs, so your server files can stay unchanged. Requirement 11.6.1 checks what the browser actually receives, which is where those changes show up.

How often must payment page tamper detection run?

At least once every seven days, or at a frequency defined in your targeted risk analysis. Many merchants choose daily checks because a skimmer can steal data for a week before a weekly check notices.

Does Content-Security-Policy satisfy 11.6.1?

Not by itself. A CSP limits which scripts can run, which helps, but 11.6.1 asks for detection and alerting of changes. Use a CSP as an extra layer alongside a baseline comparison and alerts.

Does 11.6.1 apply if I use Shopify, Wix or a hosted payment page?

It depends on your setup and SAQ type. With a fully redirected or platform-hosted checkout, much of the responsibility sits with the provider, but pages you control may still be in scope. Ask your acquirer or payment provider.

Can FunnelGuard detect tampering on my payment page?

No, not yet. FunnelGuard runs your checkout journey and checks steps and tracking hits, which can reveal a broken checkout, but it does not compare scripts or headers against a baseline. A page-change check is a possible future addition.

How do I check my payment page for changed scripts manually?

Open the page in your browser, use DevTools Network tab filtered to JS, and record each script URL. Compare the list with your approved inventory. For repeatable results, use a scheduled headless-browser script that hashes scripts and diffs them.

Does FunnelGuard catch this?

Could add

Not checked yet: could be added to FunnelGuard.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.