PCI DSS v4.0.1

How SafeScript helps with PCI DSS 6.4.3 and 11.6.1

Two requirements in PCI DSS v4.0.1 are about the scripts that run on payment pages in your customers' browsers. Here is what each one asks for, the SafeScript feature that answers each part, and what stays your job.

Requirement 6.4.3

Scripts on payment pages

Every script that loads and runs in the customer's browser on a payment page must be managed in three ways: each one is authorized, each one's integrity is assured, and there is an inventory of all of them with a written reason each is needed.

  1. A way to confirm each script is authorized

    Covered by approvals and blocking

    Feature
    Approvals. Every outside address that loads a script, receives data or shows a frame on your pages is listed in your dashboard as approved, blocked or waiting for review.
    How it works
    For the first 48 hours after install, tools SafeScript recognizes are approved automatically and everything else waits for your review. After that, the install script blocks any address you have not approved in your visitors' browsers, before it loads. SafeScript never changes a decision you made.
    Extra layer
    A browser policy (Content-Security-Policy) built from your approved addresses: report-only on Starter, enforced on Pro and Agency.
    Record
    An approvals log keeps who decided what and when for every decision made in the dashboard: approving, blocking or reviewing a source, and changing the browser policy or protection mode. Automatic decisions (the learning period, a recognized tool, a dangerous new domain blocked by a file check) are marked as automatic.
    Your part
    Review each address that waits for you.
  2. A way to assure the integrity of each script

    Covered by pinned files and file checks

    Feature
    Pinned files (Subresource Integrity). You pin a script file; SafeScript downloads it and stores its SHA-384 fingerprint. The install script then adds that fingerprint to the file's script tag, so the browser itself refuses a changed copy. Up to 50 pinned files per site.
    Checks
    SafeScript downloads every script file it tracks for your site and compares it with the last copy: every minute on Pro and Agency, every hour on Starter. A changed file is recorded with a severity set by fixed rules and a plain-English summary.
    Alerts
    A pinned file that no longer matches, and any change rated high (for example a new destination plus code that reads fields or sends data), alerts your team by email, and by Slack or webhook if you add one. Other changes are recorded for review in the dashboard without an alert.
    Our own script
    SafeScript's install line is pinned the same way. Its source and fingerprint are public: read and verify it.
  3. An inventory of all scripts with a written reason for each

    Covered by the script inventory and business reasons

    Feature
    Script inventory. Every script file and outside address seen on your site, with its provider, category, status, how it was added, and when it was first seen, last seen and last changed.
    Business reason
    For every approved script source and file, you write why your business needs it. SafeScript records who wrote it and when. A file without its own reason is covered by the reason given for its source.
    Export
    The inventory downloads as a CSV file on every plan.
    Your part
    Write the reasons. Only you know why your business uses each tool.

Requirement 11.6.1

Detecting changes to payment pages

A change- and tamper-detection mechanism must alert your staff to unauthorized changes to the script contents of payment pages and to their security-impacting HTTP headers, as the customer's browser receives them, and must run at least weekly or as often as your own risk analysis sets.

  1. Unauthorized changes to scripts, as the browser receives them

    Covered

    In the browser
    On every page view, the install script reports addresses that are new or not approved, blocks them, notes which file loaded which, and reports when a pinned file fails its fingerprint check.
    On our servers
    Every tracked script file is downloaded and compared every minute (Pro, Agency) or every hour (Starter), with alerts as described under 6.4.3.
    Page structure
    The install script also reports the forms, fields and frames on each page. When fields or frames are added or removed, the change is recorded for review in the dashboard and in the history export. These page changes do not send an alert.
  2. Changes to security-impacting HTTP headers

    Not covered today

    What we do
    SafeScript can supply a browser policy (CSP) and records the violations browsers report against it. A free scan notes whether a page has a CSP header.
    What we don't
    SafeScript does not record or compare your payment pages' HTTP headers, so it will not alert you if a header such as Content-Security-Policy is changed or removed. You need another control for this part.
  3. At least weekly

    Covered for scripts

    How often
    Browser reports arrive as visitors load your pages, and file checks run every minute or every hour depending on plan. A weekly browser visit also rescans your site starting from its home page; it skips checkout pages.

Evidence

Records for your assessor

RecordWhat it holdsPlans
Inventory CSVEvery script file and address, provider, category, status, how added, first and last seen, last changed.All
History CSVBrowser reports, script changes and page changes, with times.Pro, Agency
PCI DSS evidence packA PDF and a zip of CSV files built from your site's records: the inventory and sources with business reasons, the approvals log, script changes, page changes, browser policy history, alert deliveries and the checks that ran.Pro, Agency
PCI readiness meterA checklist on your dashboard: SafeScript running, a decision for every script source, a business reason and an integrity check for every approved script, unapproved scripts stopped, files checked in the last 7 days.All
Client report (PDF)A printable summary of the last 30 days.Agency

History is kept for 30 days on Starter, 90 on Pro and 365 on Agency, then deleted. If your assessor needs a longer record, export it regularly and keep the files.

Scope

Which pages are covered

  • SafeScript covers every page on your domain that loads the install line. Put it on your payment pages, first in the page's head.
  • There is no setting that marks which of your pages are payment pages; the dashboard and exports show everything per page path, so you can filter for them.
  • A payment page hosted by another company on its own domain, such as a hosted Stripe or Shopify checkout, is out of scope: the install script cannot run there.
  • Card fields embedded from a payment provider in a frame are the provider's page. SafeScript sees where the frame comes from, not the scripts inside it.

Limits

What SafeScript does not do

  • It does not assess or certify PCI DSS compliance, and it is not a QSA.
  • It does not fill in a self-assessment questionnaire or a report on compliance for you. The readiness meter and evidence pack are records for your assessor, not a pass.
  • It does not watch your pages' HTTP headers for changes.
  • It does not cover pages hosted on another company's domain, scripts inside another company's frames, or pages without the install line.
  • It checks your website and the outside scripts it loads. It does not check your customers' phones or computers.