ScriptLedger
Inventory, authorise and monitor the scripts on your payment pages, and export evidence to support PCI DSS 6.4.3 and 11.6.1.
Install in
ScriptLedger keeps a record of the JavaScript it sees on your WordPress payment pages: what loads, where it comes from, who approved it and why, and when it changed. It turns that record into a dated evidence pack for your acquirer (the bank that processes your card payments) or Qualified Security Assessor (QSA).
A web-skimming attack, also called e-skimming or Magecart, changes a script on a payment page, or adds a new one, to copy card details as they are entered.
PCI DSS v4.0.1 addresses this with two requirements for payment pages. 6.4.3 asks for an inventory of the scripts, with a written justification for each and a way to confirm each is authorised and to assure its integrity. 11.6.1 asks for a change- and tamper-detection mechanism that alerts you to unauthorised changes to those scripts and to the page’s HTTP headers, at least weekly or as often as your targeted risk analysis sets. ScriptLedger helps you document both, within the limits stated below.
ScriptLedger produces evidence. It does not certify anything, and it does not block scripts. No plugin can make a site compliant. It gives you the documentation to hand to your acquirer or QSA; it does not make that determination for you.
Who it is for
- Store owners on WooCommerce or any other WordPress checkout, including membership, donation, course and custom payment pages, who need to show what runs on their payment pages.
- Merchants with an embedded payment form, such as a card field or iframe from their payment provider, who must confirm for SAQ A that their site is not susceptible to attacks from scripts.
- Agencies and developers who look after stores for clients and want a record the client can hand to an assessor.
How it works
Because it runs inside WordPress, ScriptLedger can name the plugin or theme behind your site’s own scripts and, with the browser beacon on, notice a script that reached the browser without going through WordPress’s script system, which an external scanner cannot tell. It combines three views of each payment page, and the inventory shows which of them saw each script:
- What WordPress prints. When a payment page is viewed, ScriptLedger records the scripts loaded through WordPress’s script system, at most once an hour per page, and names the plugin, theme or WordPress core behind your site’s own files. Known third-party hosts are classed as payment, analytics, advertising, tag manager, session recording, chat or CDN from a bundled list of 98 hosts.
- What the browser loads. An optional, small inline beacon, off by default, reports the scripts the browser actually loaded (see Privacy below). A script that did not come through WordPress’s script system, for example one added by another script or hard-coded into a template, is listed under Browser only, and the next scan raises a finding.
- What the files contain. With script downloads turned on, your server downloads the scripts WordPress prints on your payment pages, a batch at each scan, and records a SHA-256 hash of each, so a later change is visible and dated.
Features
- Payment-page detection. WooCommerce checkout, order-pay and cart pages are detected when first viewed. On any other checkout, pages that load a payment provider’s script are suggested for you to confirm, and you can add any page yourself.
- Script inventory. Each script ScriptLedger sees loaded from a URL on those pages, with its source (plugin, theme, WordPress core, uploads or external host), the views that saw it, its status, its integrity confidence and when it was last seen. Filter to browser-only, unjustified, critical-risk, payment gateway or denied scripts. Inline scripts are not inventoried.
- Authorisation record. Approve or deny each script with a written justification; ScriptLedger records who decided and when. New scripts wait in Needs review, grouped by risk and labelled with their vendor class. Several can be decided at once, and an approved script whose source becomes riskier goes back for review.
- Integrity confidence. Each script carries a confidence level (high, medium, low or unverified), explained in the FAQ.
- Change detection. A scan is scheduled every day, and you can start one at any time. It raises a finding when a security header changes, when a script’s content changes or grows past the 2 MB it hashes (with script downloads on), when the browser reports a script that did not come through WordPress’s script system (with the beacon on), or when page detection or browser reports reach a limit. Every scan is logged, even when it finds nothing. A new script WordPress prints goes to Needs review instead, and a script that stops loading raises no finding.
- Security header monitoring. Content-Security-Policy, Strict-Transport-Security, X-Frame-Options, X-Content-Type-Options, Referrer-Policy and Permissions-Policy are read from up to 200 monitored payment pages per scan, and a change raises a finding. A page that redirects a request without a shopper session, as a WooCommerce checkout with an empty cart usually does, cannot be read.
- Alerts. By email through your site’s own mail, and optionally to a webhook as JSON. Send them as soon as a scan raises a finding, as a daily or weekly digest, or for critical and high findings only. Critical and high findings never wait for a digest: they go out when the scan that raises them finishes.
- Scope assessment. A verdict on whether your payment pages look like SAQ A or SAQ A-EP, with the reasoning behind it. It is indicative, not a formal determination.
- Evidence pack. A numbered, dated HTML report in nine sections, mapped to the PCI DSS requirements they support: scope, script inventory, authorisation record, integrity register, change-detection method and interval, scan log, findings, security headers and a non-removable limitations statement. A CSV of the script register comes with it, and the report can be printed or saved as PDF from your browser. Check a copy compares a file you kept with the SHA-256 fingerprints logged for the latest 50 packs; the log keeps their details, not the files, so keep your downloads.
- CSV exports of the inventory, the review queue, findings and scan history.
- Translation-ready. Evidence packs and alert emails are written in your site’s language when a translation is available.
- Light and dark theme for the admin screens.
Built for payment pages
- Observes only. ScriptLedger never touches your cart, orders, sessions or payments, never blocks a script, and adds nothing to your pages unless you turn on the browser beacon.
- Fails open. Its code on payment pages is built so that an error costs ScriptLedger data rather than your checkout.
- No account, no telemetry. Nothing is sent to the plugin author. The record stays in your own database.
What this evidence does and does not establish
ScriptLedger performs detection, inventory and documentation. It does not block script execution. Payment contexts are identified through platform integration, signal detection, and manual designation; pages outside those contexts are not monitored. When script downloads are on, integrity verification for cross-origin scripts is performed by server-side retrieval, which may not reflect responses served to end users under geographic, device, user-agent or time-based targeting; scripts verified this way are marked medium confidence. A script not seen on a monitored page in the last 30 days, for example because the page is served from a full-page cache, is not downloaded. Security headers are also read by server-side retrieval, whether or not script downloads are on, and without a shopper session; a payment page that sends such a request to another page, as a checkout with an empty cart does, cannot be read and is not counted as scanned. Inline scripts, written into the page rather than loaded from a URL, are not inventoried or hashed. When the browser beacon is enabled, ScriptLedger adds its own inline script to monitored payment pages; it is not listed in the inventory. Where browser-side sampling is enabled, the browser observations are drawn from a proportion of page views rather than every view. Scripts that reach the browser without passing through WordPress are detected only from browser beacon reports; section 5 of the evidence pack states whether the beacon is on when the pack is generated, the first and last hour with a browser report on the record, and how many hours before generation the last of them began. This report is evidence to support an assessment. It is not a certification of PCI DSS compliance and does not substitute for a Qualified Security Assessor.
Privacy
The optional browser beacon is off by default. When on, it runs only on monitored payment pages: those WooCommerce identifies and those you confirm or add yourself.
It reports only: script URLs, for some scripts how they were loaded (async, defer, blocking, or added after the page loaded), a hash of the page context, and whether a card field, a payment frame or a payment form is present. A script URL is sent with the names of its query parameters but not their values (a name that could itself hold data, such as an email address or a long number, is left out too), except three values that normally identify the script rather than the visitor: ver (the version WordPress adds), client-id on any script (a public app ID, such as the one PayPal’s SDK needs), and, on googletagmanager.com only, the Google tag container id (such as G-… or GTM-…).
It never reads or reports: form field values, input or submit events, cookies, storage contents, the page’s own query string, referrers, user agents, IP addresses, or any order or customer data. It sets no cookie. The other values in a script URL’s query string are removed in the browser, before anything is sent. The beacon reports only to your own site: your web server receives the request like any other, but ScriptLedger does not read or store its IP address, user agent or referrer, and the record stays in your own database. Script URLs that WordPress prints are stored as printed, so script downloads can fetch them, but only the ver, client-id and Google tag id values described above are ever shown in the admin or included in an export.
In the admin, ScriptLedger stores the user ID of the administrator who approves or denies a script, acknowledges a finding or switches on monitoring of a payment page, and the display name of whoever adds a page by hand or generates an evidence pack. Evidence packs print the names of the administrators behind these records. They are part of the authorisation record, so WordPress’s personal data export and erasure tools do not include them. Alert email addresses and the webhook URL are stored in its settings. The admin screens keep only display preferences, such as the colour theme and dismissed tips, in the browser’s local storage.
ScriptLedger suggests text for your privacy policy, under Settings › Privacy › Policy Guide in WordPress.
External services
ScriptLedger has no service of its own: it sends nothing to the plugin author and has no telemetry. It can make these requests, all from your server.
Script downloads (off until you turn them on). To compute a SHA-256 hash of each script on your payment pages and notice when it changes, ScriptLedger downloads the script from the address your page loads it from. Nothing is downloaded until an administrator turns on script downloads in Settings. After that, a batch is downloaded during the daily scheduled scan and any scan you start, and each download is written to a temporary file, hashed and deleted at once: it is never kept, run or served.
Only scripts WordPress has registered and that were seen on a monitored payment page in the last 30 days are downloaded, your own site’s included. A script known only from the browser beacon’s reports is never fetched. Each request is a plain GET of the address your page printed, including any query values a plugin placed there, and follows up to three redirects, each checked first; ScriptLedger adds no visitor, customer or order data. Its user agent is a recent Chrome browser’s, followed by (compatible; ScriptLedger/1.0; +https://wordpress.org/plugins/scriptledger/), because some skimming code and CDNs serve bot-like clients something different. These requests never go to a private or internal network address other than your site’s own, or one a plugin on your site allows through WordPress’s http_request_host_is_external filter.
There is no fixed service: the hosts are whichever providers your payment pages already load scripts from, and their own terms and privacy policies apply. Two common examples:
- Stripe (
js.stripe.com): service, terms, privacy policy. - Google Tag Manager (
www.googletagmanager.com): service, use policy, terms, privacy policy.
Webhook alerts (optional, off by default). If you enter a webhook URL in Settings, each scan that raises new findings posts them to that URL as JSON, up to 100 findings per request, following your alert settings: the site id and, for each finding, its severity, type, description and id, with the script’s fingerprint and URL for a script finding or the page for a header finding. The URL must be a public https:// address on the standard port or 8080. The request is not signed, so use a receiving URL that is itself kept secret. It carries WordPress’s standard user agent, which includes your site’s address. Nothing is sent until you add a URL, and the terms and privacy policy of the service you choose to receive it apply.
Your own site. Each scan reads the security headers of up to 200 monitored payment pages from your own site, with the browser user agent described under script downloads, whether or not script downloads are on. Action Scheduler, which runs the scheduled scan, may also send a request from your server to your own site’s admin-ajax.php to start queued work. Alerts are on by default: email goes through your site’s own mail (wp_mail()) to the recipients you set, or to the site admin email if you set none. Turning alerts off in Settings stops the webhook too.
Written by Joobi from the project's own listing. See the source page
1.0.0
- Initial release.
- Payment-page detection: WooCommerce checkout (classic and block), order-pay and cart, plus signal-based suggestions on any other checkout and pages you add yourself.
- Script inventory from three views (what WordPress prints, what the browser loads, what the files contain), naming the plugin, theme or core behind your site’s own scripts.
- Authorisation record: approve or deny each script with a written justification, stamped with who decided and when.
- Daily scheduled scan, plus Run scan now: script content hashes, six security headers, and browser-only scripts, with every scan logged.
- Alerts by email and webhook, immediately or as a daily or weekly digest.
- Scope assessment (SAQ A or SAQ A-EP, indicative only).
- Evidence pack: nine-section HTML report with a CSV register and a non-removable limitations statement.
- Optional browser beacon (off by default) that collects no personal data.
- Light and dark admin theme; translation-ready.
Follow this listing's changes (Atom feed)