| 开发者 | frictionsort |
|---|---|
| 更新时间 | 2026年11月22日 05:00 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
scriptledger folder to /wp-content/plugins/ and activate it on the Plugins screen.No. ScriptLedger produces documentation to support your PCI DSS assessment. It does not certify compliance, and it is not a substitute for a Qualified Security Assessor. Your acquirer or QSA decides what your assessment needs.
Requirements 6.4.3 and 11.6.1 of PCI DSS v4.0.1, which cover the scripts loaded and run in the customer's browser on a payment page, whether they come from your own site or from a third party. 6.4.3 asks for an inventory of those scripts with a written business or technical justification for each, a way to confirm that each is authorised, and a way to assure its integrity. 11.6.1 asks for a change- and tamper-detection mechanism that alerts you to unauthorised changes, additions and deletions to those scripts and to the page's HTTP headers as the customer's browser receives them, run at least weekly or as often as your targeted risk analysis sets. ScriptLedger downloads scripts and reads six security headers from your server, which may not match what a browser receives. It raises findings for a changed script, a changed header and a script only the browser reported; a new script WordPress prints waits in Needs review without an alert, and a script that stops loading raises no alert. The evidence pack's sections are mapped to these requirements, and its limitations statement says what the record does not show. ScriptLedger does not address the rest of PCI DSS.
Most likely. If your page embeds your provider's payment form, for example in an iframe, SAQ A asks you to confirm that your site is not susceptible to attacks from scripts that could affect your e-commerce systems. PCI SSC FAQ 1588 gives two ways to meet that criterion: techniques such as those in Requirements 6.4.3 and 11.6.1, deployed by you or by a third party, or confirmation from your PCI DSS compliant payment provider that its embedded form, set up as it instructs, protects your page from script attacks. The criterion does not apply when your checkout redirects customers to the provider's own page, or when you outsource payments entirely. Confirm which SAQ you file with your acquirer or the payment brand; ScriptLedger's scope assessment is indicative, not a formal determination. ScriptLedger covers your own page around the form, not the scripts inside your provider's frame, which are the provider's responsibility.
No. ScriptLedger detects and records; it never stops a script from loading, and the only thing it adds to a page is the optional browser beacon. When it flags a script you did not expect, find where it comes from (the inventory names the plugin or theme for your site's own files) and remove it at the source.
It is designed not to. ScriptLedger observes; it never touches your cart, order, session or payment. Its code on payment pages is built to fail open, so an error in ScriptLedger costs it data rather than your checkout. The scripts WordPress prints are recorded at most once an hour per page. The optional browser beacon is a small inline script that reports after the page has loaded, and again, with anything new, each time the visitor switches tabs or leaves the page.
No. ScriptLedger activates and works with no ecommerce plugin installed. WooCommerce checkout (classic or block), order-pay and cart pages are detected the first time each is viewed. On other checkouts, such as membership, donation, course or custom payment pages, a page where WordPress loads a payment provider's script is suggested for you to confirm, and you can add any page yourself.
The pages WooCommerce identifies and the pages you confirm or add under Payment pages. Up to 200 pages are detected automatically; beyond that, ScriptLedger raises a finding, and pages you add yourself are never refused. WooCommerce's product, shop and order-received pages are not suggested, and My account › Add payment method is only suggested when a payment provider's script loads there: add any of them yourself if your assessment counts it as a payment page. ScriptLedger recognises the payment scripts of Stripe, PayPal, Square, Braintree, Adyen, Mollie, Worldpay, Authorize.net, Razorpay, Paystack and others; with any other provider, add the page yourself. A page served from a full-page cache is recorded only when WordPress renders it, so exclude payment pages from your page cache (WooCommerce already asks caches to skip its cart and checkout).
A scan is scheduled once a day through Action Scheduler, and you can start one at any time with Run scan now, at most once a minute. Each scan works for about 20 seconds and carries the rest to the next. With script downloads on, a scan checks 40 to 80 scripts, so on a site with up to about 480 scripts each one is checked within about six scans; on a larger site, the scan notes in Scan history say how many daily runs a full pass takes. Every scan is logged in Scan history, including those that find nothing. Alerts go out when a scan raises a finding, or as a daily or weekly digest if you prefer; critical and high findings never wait for a digest. A header change is a medium finding, so the "Critical and high only" setting sends no header alerts. Like every WordPress scheduled task, the daily scan runs when WP-Cron runs, which depends on site traffic, so a low-traffic site should call WP-Cron from a real cron job.
Open it under Findings and check whether you expected the change. If you did, for example after updating a plugin, acknowledge it with a note: for a changed script, ScriptLedger then accepts its new content as the baseline, and a further change raises a new finding. If you did not expect it, remove the script at its source. Every finding stays on the record, with who acknowledged it, when, and your note.
With the browser beacon on, a script that a tag manager or another script adds in the browser never goes through WordPress's script system, so it is listed under Browser only and the next scan raises a finding. Once you approve it with a justification, it raises no further finding of that kind. A new script WordPress prints goes to Needs review and raises no finding.
They say how strongly a script's integrity is established. High: the script tag carries a Subresource Integrity attribute, which the browser checks, and ScriptLedger holds a content hash it downloaded. Medium: ScriptLedger holds a content hash it downloaded. Low: only the URL is known, because the script could not be downloaded or hashed. Unverified: no current check, for example while script downloads are off or after the script has not been seen on a monitored page for 30 days. The evidence pack's integrity register shows the level for each script it lists.
Yes, site by site. Activate ScriptLedger from the Plugins screen of each site whose payment pages it should monitor; a network activation is undone with a notice, because each site keeps its own inventory, settings and evidence. Deleting the plugin cleans up each site where it was installed, following that site's own setting for keeping data.
ScriptLedger names the plugin, theme or WordPress core behind a script from its path, but only when the script is served from one of your site's own hosts: a /wp-content/plugins/… path on any other host could be a lookalike, so it is recorded as external, and an earlier approval of that script goes back to review. If your site serves its own files from a CDN, tell ScriptLedger which hosts are yours with the fssl_local_hosts filter. Register it from a plugin or mu-plugin so it applies to every request, not only in wp-admin:
add_filter( 'fssl_local_hosts', function ( $hosts ) { $hosts[] = 'cdn.example.com'; return $hosts; } );
When the list changes, ScriptLedger re-checks every stored script starting the next time an administrator opens wp-admin. A script that was returned to review stays pending until you review it again.
In your own WordPress database, in seven tables named {prefix}fssl_*, plus Action Scheduler's tables when no other plugin has created them. ScriptLedger sends nothing to the plugin author; see External services for the requests it can make. Script observations are kept for 6, 12 or 24 months, as set in Settings (12 by default), and the list of generated evidence packs keeps the latest 50; the scan log, the authorisation record, findings and header history are never pruned.
Deactivating the plugin keeps all its data, but nothing is recorded or scanned until you activate it again. Deleting it keeps the data too, unless you turn on Delete data when the plugin is deleted in Settings. The scan log (the {prefix}fssl_scans table) is always kept, even then.
The admin screens (Vue 3) ship compiled in assets/admin/. PHP dependencies: composer install --no-dev.
Bundled libraries: Action Scheduler (GPL-3.0-or-later), of which only the newest copy loads when several are present, with its cron-expression (MIT) and WP_Async_Request (GPLv2) libraries; Vue (MIT); and Composer's autoloader (MIT).