Skip to main content

Verifying Pro artefacts

What it does​

Check the three Pro records that are built to show changes: the audit log as a hash chain, an exported evidence pack with its signature, and a receipt with its integrity code. The checks run on your server or on any machine with PHP; none of them needs a third party. See What Pro adds.

Before you start​

  • Pro is installed and active. See Activate Pro.
  • For the audit chain: shell access to the store, with permission to run bin/magento.
  • For an evidence pack: the ZIP file and PHP 8.1 or later with the sodium extension, which PHP includes by default.

Steps​

Check the audit chain​

Every audit row carries the hash of the row before it. The check walks the rows from the start of the chain, or from the last re-baseline, and recomputes each link.

bin/magento mageme:eu-withdrawal:audit:verify

A healthy chain prints the number of rows, the gaps and breaks it found, where it started and the hash of the last row, then a confirmation:

Rows: 8517 | gaps: 0 | breaks: 0 | anchor: genesis | head: cc106205c406…7d4cfbfe (audit_id 8538)
Chain OK — no breaks detected.

The command exits with 0. When a link does not match, it prints Chain BREAK detected at audit_id(s): … with the rows and exits with 1, so you can run it from a monitoring job.

Check an evidence pack​

  1. Unzip the pack into an empty folder.

  2. Compare the key. In manifest.json, signing.pubkey_sha256 is the fingerprint of the key that signed the pack. It must equal the Public Key Fingerprint (SHA-256) that the store shows in its Evidence Pack settings. See Settings: Evidence Pack.

  3. In that folder, run:

    php verify.php

The script checks the signature of manifest.json and the SHA-256 of every file it lists. It prints OK: <file> for each file, SKIP (absent): <file> for a file the manifest marks as absent, the scope statement of the pack and, at the end, PASS: signature valid, all files match. Any failure prints FAIL: … and exits with 1.

verify.php takes the public key from manifest.json itself. A pack signed with another key also passes it, so step 2 is what ties the pack to your store. For an independent check, run your own copy of the script instead of the one inside the pack. See Evidence pack contents.

Check a receipt​

Open the Verify this receipt link from the receipt email. The page recalculates the fingerprint of the stored receipt and compares it with the code in the link. See Receipt Verify.

An evidence pack also holds the code the store kept for the receipt, in receipt_content_hash.txt.

Reset the chain after an incident​

When the audit check reports a break, find out first what caused it: a restored backup, a manual change in the database, a failed migration. When you have documented the cause, start a new chain from the first row after it:

bin/magento mageme:eu-withdrawal:audit:rebaseline <from_audit_id> --reason="Restored from backup of 2026-11-02"

The command adds a Chain Re-Baselined event with your reason and prints the id of that event. From then on, the check starts from the given row. It does not repair the rows before it, and it does not remove the break from the history: the event stays in the log. See Audit events.

What you should see​

audit:verify ends with Chain OK — no breaks detected. verify.php ends with PASS: signature valid, all files match. The receipt page shows Receipt verified.

Limits​

  • All three checks detect a difference. None of them proves who made a record or when: your store holds the keys and sets the clock, and no third party witnesses either.
  • A pack is not stored on the server. Keep the ZIP you exported: exporting again later can give a different file, for example after personal data was anonymised.
  • audit:rebaseline changes what later checks cover. Run it only after the cause of a break is documented.

Troubleshooting​

  • verify.php stops with ext-sodium required. Run it with a PHP build that has the sodium extension.
  • audit:verify reports gaps but no breaks. Some rows were stored without a hash. The check skips them, and the links between the other rows still match.

What's next​

Last reviewed November 6, 2026