Dragon Checkout Guard – PCI DSS Compliance & Card Skimming Detection for WooCommerce
Payment-page script inventory, authorisation record, weekly tamper check, email alerts and header baseline: PCI DSS 6.4.3 / 11.6.1, SAQ A evidence.
Install in
Nearly every WooCommerce store embeds its gateway’s card fields in an iframe:
Stripe, WooPayments, PayPal, Braintree or Adyen. Since 31 March 2025, SAQ A
carries an eligibility criterion that such a merchant has confirmed its site is
not susceptible to attacks from scripts, and PCI SSC FAQ 1588 (February 2025)
sets out the two ways to confirm it: apply techniques such as those in
requirements 6.4.3 and 11.6.1 to your own page, or hold written confirmation
from the PCI DSS validated provider that its embedded form includes script
attack protections when implemented to the provider’s instructions. That second
route is not available from every provider, which leaves the first: an inventory
of the scripts on the page around the iframe, a justification for each one, and
a check that they have not changed.
The iframe is the provider’s. The page it sits in is yours, and a script
injected into that page is what e-skimming (the Magecart style of attack) uses
to read a shopper’s details before the iframe ever sees them. Dragon Checkout
Guard is the record of what runs on that page.
It records, on your own WooCommerce checkout, order-pay, add-payment-method and
(optionally) cart pages:
- an inventory of the scripts the page loads through
<script>elements
(external and inline), module preloads and import maps, with who added
each one (event-handler attributes such asonclickand the documents in
<
iframe srcdoc> are not inventoried),
* an authorisation entry per script: owner, business purpose, justification,
provider and integrity method,
* a content hash per script, rechecked weekly, so a change is flagged,
* a baseline of each page’s security response headers, with drift flagged,
* an email alert after a check that finds a new, changed or removed script or
a header change,
* an evidence trail you can export for an assessor.
It runs on your own server with no account, no JavaScript tag to a third party
and no pageview cap.
What it does
- Script inventory – Every
<script>src and inline block seen on your payment pages, discovered from the rendered HTML (read with PHP’s HTML5 parser on PHP 8.4+, the way a browser reads it) and, optionally, from a real shopper’s browser. Inline blocks printed by WordPress are identified by handle and position, so a change to one is recorded as drift on the same row rather than appearing as a new script every time. A change counts when it alters the block’s code, the host of a URL it names, the rest of that URL, a relative.js/.mjspath, a string containing HTML markup or//, or a template literal; numbers, long token-like values (nonces, order keys, hashes) and other string values such as tracking ids and labels are ignored, so a rotating nonce never registers as drift. - Authorisation workflow – Record a justification, owner, business purpose, provider and integrity method (Subresource Integrity, hash monitored by this plugin, vendor-managed, or not feasible with a justification) for every script that belongs on your payment pages.
- Weekly tamper check – A weekly WP-Cron scan, plus Scan now and WP-CLI. Every pending script is rehashed on each run, and a change that could not be written is reported as a failed scan rather than a clean one.
- Email alerts – After a check (the weekly scan, Scan now or WP-CLI) that finds something, one email lists what changed since the previous check: new scripts, scripts whose content changed (with the reason, such as “differs from the version you authorised on” a date), scripts that the last two checks did not see on a page they read in full, and response headers that differ from the accepted baseline. No email when nothing changed. The first check after installing lists the scripts recorded on your payment pages since the plugin started, for you to review and authorise. On by default, sent to the site administration email address or to the recipients you list, through your site’s own
wp_mail(). A “Send test alert” button checks delivery, a send that fails is shown on the plugin’s screen with the reason WordPress gave, and each check record notes whether its alert was sent. Alerts go out when a check runs, not the moment a page changes. - Response-header baseline – Captures the security-relevant response headers (Content-Security-Policy, X-Frame-Options, Strict-Transport-Security, Referrer-Policy, Permissions-Policy, the Cross-Origin trio, X-Content-Type-Options, Cache-Control and the CSP reporting headers) exactly as a shopper’s browser receives them – read from each scan’s own ordinary request, so headers your web server or CDN adds are included – and flags drift from the accepted baseline, including a header that stops being sent. A page a scan cannot reach (Order Pay, or a checkout the scan could not put a product in the cart for) is baselined from shoppers’ own pageviews, which see only the headers WordPress itself sets. A header that appears after the baseline is flagged as added.
- Recognised payment providers – A known-provider list fills in the provider, purpose and a suggested justification for the common gateways, and flags tag managers, analytics and chat widgets with a reviewer note. A script is recognised by where it is served from, or by the handle WordPress registered it under; an element id or name that only appears in the page itself is never trusted to name a provider.
- Assessment guide – A three-question self-check that maps how your site takes payment to the FAQ 1588 route your answers point at, and to the records that route asks for. Your answers appear in the printable report as “Assessment context”.
- Exports for an assessor – Inventory CSV, 11.6.1 check-record CSV (with whether each check’s alert was sent) and a printable “Payment page script integrity record”, plus the same data from WP-CLI.
- Site Health tests – Whether the weekly check has run, whether any script is unauthorised, and whether any header baseline is outstanding.
- Optional browser collector – On by default, it reports scripts that only exist once a real shopper’s page is running (for example one injected by a tag manager), as observations you confirm before they join the inventory.
What it is not
Dragon Checkout Guard is not a Qualified Security Assessor, not a
certification service, and not a substitute for your own PCI DSS assessment.
It never claims a site “is compliant” or “is certified”, and it does not
determine which SAQ you complete: it produces evidence supporting the
assessment you or your assessor make. Your acquirer or QSA settles your SAQ
eligibility.
It also cannot see inside your gateway’s iframe. It is not meant to: that
document is served by the provider from its own origin and is covered by the
provider’s own PCI DSS validation. The page around it is the merchant’s, and
that is what this plugin inventories.
External services
This plugin has no service of its own. It makes no connection to Dragon Core, needs no account and sends no telemetry.
Email alerts are sent with WordPress’s own wp_mail(), through whatever mail setup your site already uses (your host’s mail service or an SMTP plugin), to the addresses on the Settings tab. They contain the names and addresses of scripts on your payment pages and the names of changed response headers, never anything about your customers or orders.
It makes one kind of outbound request. To notice when a script on your payment pages changes, it takes a SHA-256 hash of each script file those pages load. A script served from your own site is read from disk. A script served from another host is downloaded from that host, because there is no other way to see its contents. Which hosts those are is decided by your own checkout, not by this plugin: js.stripe.com, a gateway SDK, Google Tag Manager, or whatever else your payment pages reference.
- When: during the weekly check, and when you start a scan yourself (“Scan now”, or
wp dragon-checkout-guard scan). At most 200 downloads a day, 2 MB per file, HTTPS only. - What is sent: a GET request for that public script URL, from your server’s IP address, with the user agent
Mozilla/5.0 (compatible; DragonCheckoutGuard/<version>; +https://dragoncore.ltd/plugins/dragon-checkout-guard). No cookies are sent, and nothing about your site, its settings, its customers or its orders. - Where: only hosts your payment pages already reference, which every shopper’s browser already contacts when it loads the page. Private, loopback, link-local and reserved addresses are refused.
Those hosts belong to the providers you chose for your shop, so their own terms and privacy policies apply, the same as they do to the scripts your checkout already loads from them.
The plugin also ships a list of recognised providers (Stripe, PayPal, Google Tag Manager and others). It is used only to label a script and suggest a justification for it. The plugin does not connect to any provider on that list unless your payment pages already load a script from it.
To read a payment page the way a shopper’s browser receives it, the plugin also requests that page from your own site. That request never leaves your server.
Credits
The WordPress.org listing icon is drawn with glyphs from Lucide (https://lucide.dev), ISC License. Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (https://feathericons.com, MIT License). All other copyright (c) for Lucide are held by Lucide Contributors 2022. The plugin itself does not include these icons.
Privacy Policy
Dragon Checkout Guard records, in your own WordPress database:
- Script details. The URL (or a content fingerprint, for an inline script)
of every script seen on an in-scope page, its content hash, and who authorised
or revoked it and when. - Response headers. The security-relevant header values your payment pages
are served with, as each scan’s own request receives them, and a diff
whenever they change. - Scan and authorisation events. A forensic log of discoveries, scans and
authorisation actions, each attributed to the WordPress user who performed it,
never to a site visitor.
None of this identifies a site visitor. The plugin’s tables have no IP
address, user-agent or session column. The optional browser collector, which
reports scripts a real shopper’s page ran, is rate-limited per address using a
salted hash of the address kept in a transient for two minutes; on sites without
a persistent object cache that transient lives in the options table for that
time. Nothing else about the visitor (browser, referrer and so on) is recorded,
and inline script previews are stored with sensitive values redacted. Pageviews
by a logged-in user are ignored for header baselines.
External requests: to notice when a script changes, the plugin downloads a
script your payment page already loads from another host and hashes the
contents; a script on your own site is read from disk. That request is a plain
HTTPS GET of a public URL: it carries no data about your site, its configuration
or its visitors. It never contacts Dragon Core or any other service of ours:
there is no account and no telemetry. See External services above.
Uninstalling the plugin keeps all of this data by default; tick Delete this
plugin’s tables, options and evidence when it is uninstalled on the Settings
tab first if you want it removed instead.
For more information, visit Dragon Core.
Written by Joobi from the project's own listing. See the source page
1.1.0
- Added: email alerts. After a check that finds a new, changed or removed script, or a response header that differs from its baseline, one email lists what changed since the previous check, with the reason for each changed script. No email when nothing changed.
- Alerts are on by default and go to the site administration email address. Add your own recipients under Settings, Email alerts, and use Send test alert to check delivery.
- A failed send is shown at the top of the plugin’s screen with the reason WordPress gave, and the 11.6.1 check record has a new last column saying whether each check’s alert was sent.
- Removed the add-on pointer: the plugin-list link, the footer line on the plugin’s screens and the dismissible notice.
1.0.9
- Every admin action checks its security token and your permission itself before reading the form. The screens work as before.
- Custom payment-page paths and redacted parameter lists are read more strictly. Percent-encoded and non-English paths keep working exactly as before.
- Fixed: a list field sent in the wrong shape no longer saves the word “Array” as a path.
- Fixed: uninstall deletes data only when the opt-in is clearly on (1, true, yes or on), not for a value set to “false” or “no”.
1.0.8
- Scans read the Checkout page with a one-item cart held in memory for that scan only. Nothing is saved: no session, cookie, order or stock reservation. Choose the product with the dragoncheckoutguard_scan_cart_product filter.
- The 11.6.1 check record lists each page as read, skipped, needing a signed-in customer, redirected or not read, with the number of script hashes verified. A run that could not read every page is marked Incomplete, never No change.
- Header changes count in the check outcome, and a security header that appears after the baseline is flagged as added.
- A page answered with the login form (Add Payment Method, or Checkout on an account-only store) is recorded as needing a signed-in customer, and nothing from the login page is inventoried.
- Approving a script approves the content you were shown; if it changed since the page loaded, you are asked to look again.
- Tamper reasons explain in plain language that the contents differ from the version you authorised.
- After updating: stock stores see Checkout read for the first time, so expect new scripts and header rows to review once. Header rows the login form produced on Add Payment Method are removed.
1.0.7
- Security: script addresses are read the way browsers read them, so a disguised address can no longer be filed under an approved script.
- Security: on PHP 8.4 and later, pages are read as a browser reads them, so scripts hidden with markup tricks are recorded. Older PHP versions use a fallback that records extra entries rather than miss any.
- Inline script checks now notice a changed address or template inside the script.
- Recognised-provider suggestions need a script WordPress itself registered, from a real plugin folder on your own site.
- Response headers are read from what your server actually sends.
- After updating: approved inline scripts that name an address will show one change to review, and a few scripts may appear once as new rows. Headers your server adds may show once as added.
1.0.6
- Every screen, email and alert is now translatable, so community translations from translate.wordpress.org cover the whole plugin. Counts use proper plural forms, and numbers and dates follow your site’s language.
- The inventory CSV now uses raw codes in every coded column, so it reads the same in any language; the printable report keeps readable labels.
- Settings show their units in the field labels.
1.0.5
- Added: an occasional, dismissible request for a WordPress.org review once
a few scans have run, shown only on the plugin’s own screen. - Changed: listing title and tags for the WordPress.org directory.
1.0.4
- WordPress core scripts are recognised through
includes_url()and
admin_url(), so an install that serves wp-includes or wp-admin from a
non-default location still files them under WordPress Core.
1.0.3
- Scripts written as
type="text/javascript; charset=utf-8"are now
inventoried. Earlier versions skipped any script whose type carried a
parameter, so run a scan after updating. - A renamed content directory, or WordPress in its own directory, no longer
leaves your own scripts filed under “Site” and unhashed. - The request that hashes a third-party script names the plugin in its user
agent instead of sending your site’s URL. - If junk reports fill the browser collector’s table, the daily maintenance now
clears unconfirmed rows within a day instead of the collector staying paused
for a month. - Authorising, revoking or ignoring a script is saved together with its audit
line. Saving settings, queuing a scan, rotating the collector token and
recording sightings all tell you when the database refused the write, and a
bulk authorisation that only partly landed says so. - Custom payment-page paths keep percent-encoded characters, so a page such as
/caisse-s%C3%A9curis%C3%A9e can be scanned. If you had entered a path with
accented or percent-encoded characters before, enter it again on the Settings
tab. A refused path is now quoted in the error. - Site Health also flags an authorised script that has changed since.
- Printed report: dates and handles no longer break mid-word, check triggers
and the backlog sentence read in plain words, Review due prints as a date,
“Changed since authorised” prints Yes or No and only for an authorised
script, and a script that is no longer authorised prints none of its old
authorisation record. The inventory CSV leaves the same cells blank for a
script that is not currently authorised, and exports Review due as a date. - The History panel names events in plain words, the Review due date no longer
shifts by a day on sites west of UTC, and an inline preview is withheld if it
could not be redacted. - WP-CLI help reads as whole sentences, and
authorisetells a missing script
from a refused write. - The printable report loads its stylesheet through WordPress, and the readme
has a full External services section.
1.0.2
- The printable “Payment page script integrity record” now lays the script
inventory out in nine grouped columns, so it reads cleanly on A4 instead
of breaking words and dates letter by letter. Every value is still
printed; the CSV exports are unchanged.
1.0.1
- Added a pointer to the Pro add-on (plugin action link, footer line on the
plugin’s own screens, one dismissible notice). No feature changed.
1.0.0
- Initial release: payment page script inventory, authorisation workflow,
weekly content-hash tamper check, response-header baseline with drift
detection, assessor exports (inventory CSV, 11.6.1 check record CSV and a
printable integrity record), SAQ A assessment guide, Site Health tests,
WP-CLI commands, and an optional browser collector for scripts a real
shopper’s page runs. - Inline scripts printed by WordPress are tracked by handle and position, so a
change to one is recorded as drift on the same row rather than as a new
script, and inline previews are stored with sensitive values redacted. - Local scripts with percent-encoded or non-ASCII file names in their URL are
hashed from disk, so content drift is detected for them too, and every script
that could not be hashed records why. - Accepting a header baseline reports an error if the database update fails,
instead of confirming a baseline that was never saved. - The schema version is only recorded once every plugin table is confirmed to
exist and the scan jobs are scheduled; a failed install shows an admin notice
and is retried automatically every 10 minutes, or immediately on
re-activation. - A content-hash drift and its audit entry are written together, so the Changed
status and the event log can no longer disagree.
Follow this listing's changes (Atom feed)