When a compliance team says "we have logs," they almost always mean something true and something insufficient simultaneously.
They have records. The records describe events that occurred. The records are stored in a system that engineers can query. What they typically do not have is evidence that those records have not been modified. And in the context of regulatory AI compliance — where Article 12 of the EU AI Act, ISO/IEC 42001, and an expanding suite of global frameworks require integrity-protected audit records — the difference between a log and tamper-evident evidence is precisely the gap that matters.
This guide explains what tamper-evident AI logs are, how cryptographic chaining makes them work, and why external witness anchoring is the architecture that closes the remaining attack surface.
Why Ordinary Logs Are Not Evidence
The foundational problem with standard application logs is editability. Any database administrator, any engineer with sufficient access rights, any automated process with write permissions can modify a log entry. In most enterprise environments, log records can be:
- Updated to correct "errors" (e.g., changing a timestamp, correcting a misrouted event)
- Deleted to remove sensitive data or reduce storage costs
- Backfilled to add context that was not captured at the time
- Overwritten during routine maintenance or infrastructure migrations
This is not malicious behaviour — it reflects how operational logging systems are designed. They are built for debugging and observability, not for evidence production.
In a compliance and legal context, however, editability is a critical weakness. A log that could have been modified is, from a regulatory standpoint, a log that might have been modified — and the burden falls on the enterprise to demonstrate it wasn't.
The solution is not to promise that logs were not modified. It is to build infrastructure that makes modification detectable — so that the absence of detected modification is mathematical proof, not an assertion.
How Cryptographic Hash Chaining Works
Cryptographic chaining is the mechanism that turns a sequence of log records into a tamper-evident chain. When each new event is sealed, the system computes a cryptographic hash of that event's content combined with the hash of the preceding record. The result is a chain in which each record carries a fingerprint that depends on every record before it.
To verify the chain, an auditor recomputes each hash from the record data and confirms that each record's stored hash matches the computed hash, and that it correctly incorporates the preceding record's hash. This verification is deterministic: it either passes or it fails.
If any record in the chain has been modified — even a single character of a timestamp, even a change to a confidence score from 0.87 to 0.88 — the hash of that record will no longer match the hash that was incorporated into the subsequent record. The chain breaks at exactly the point of modification.
Crucially, the chain cannot be retroactively "healed." Recomputing the chain from the point of modification forward would produce a different sequence of hashes — a sequence that differs from any external record of what the chain's hashes were before the modification. Which brings us to why external witnessing is necessary.
The Attack Surface That Chaining Alone Does Not Close
Cryptographic chaining within a single system has an important limitation: if an adversary controls the entire system — the database, the hash computation, the chain verification — they could theoretically modify records, recompute the chain from the modification point forward, and present a chain that verifies correctly against itself.
This is a realistic concern in enterprise environments where the same organisation that is producing AI decisions is also maintaining the chain. It is precisely the attack surface that regulators have in mind when they describe evidentiary standards that require records to be "impossible to have been altered by the interested party."
The solution is external witnessing.
External Witness Anchoring: Closing the Loop
External witness anchoring adds a third-party attestation layer to the cryptographic chain. At a regular interval — typically nightly — the current state of the chain is submitted to an external party who records the chain's terminal hash in write-once storage that the chain's operator cannot modify.
The external witness record creates an independent reference point. When an auditor later verifies the chain, they can confirm not only that the chain is internally consistent, but that the chain state at the last witnessing event matches the externally attested hash.
This closes the retroactive modification attack surface:
- If records were modified after the last witness event, the chain hashes will not match the externally attested state
- If records were modified before the last witness event and the chain was recomputed, the terminal hash at the time of witnessing would have been different — a difference the witness record can detect
The combination of internal hash chaining and external witness anchoring produces a chain whose integrity can be verified by any party, against a reference point that no party controls. This is what "tamper-evident" means in a forensically rigorous sense — not "we have controls to prevent tampering," but "tampering would be detectable by anyone, including a regulator who does not trust us."
What Regulators Actually Check
When a competent authority under the EU AI Act or an internal auditor under ISO 42001 examines AI audit records, they typically perform these checks:
Chain continuity verification: Does the hash chain run continuously from the first record to the last, with no gaps or broken links?
Witness attestation confirmation: Does the terminal hash of the chain at the time of each nightly witnessing match the externally attested hash for that date?
Signature verification: Is the evidence packet signed by a key pair whose public key has been published by the evidence infrastructure provider?
Record completeness check: Are all expected event types present for the period under review? Are there unexplained gaps in the event log?
Cross-reference with deployment records: Do the sealed records reference model versions and system identifiers consistent with deployment records for the same period?
Each of these checks can be performed independently — they do not require trusting the organisation that produced the records. This verifiability-without-trust property is what distinguishes tamper-evident evidence from records that require the auditor to trust the organisation's assurances.
WORM Storage: The Physical Layer That Makes Witnessing Stick
Write-Once, Read-Many (WORM) storage is the physical layer that enforces the external witness's immutability. WORM storage systems prevent modification or deletion of stored data for a configurable retention period.
Regulatory applications typically require WORM storage with compliance lock: a mechanism that prevents even the storage administrator from deleting records during the retention period, regardless of account permissions.
For AI audit trails under Article 12 and ISO 42001's evidence retention requirements, seven-year WORM retention under compliance lock is the appropriate baseline.
Common misconception: Using Amazon S3 with versioning enabled, or any standard cloud storage with deletion protection, is not equivalent to WORM storage under compliance lock. Standard object storage configurations can be modified by account owners, and deletion protection can typically be disabled by an account administrator.
The Architecture in Practice
A production AI evidence infrastructure that meets regulatory standards combines five components:
- An append-only event ledger at the application layer, receiving events from the AI system's SDK and refusing modifications to existing records at the database layer — not just the application layer
- Cryptographic hash chaining computed at write time, with each record's chain hash stored as part of the record
- Nightly chain verification that re-validates the entire chain's hash integrity before committing the terminal hash to external witness storage
- WORM storage under compliance lock for the witnessed chain state, with a retention period appropriate to applicable regulatory requirements
- Signed evidence packet generation that cryptographically signs the output of a verification run against the producing party's published public key
This architecture — not any individual component — is what produces tamper-evident AI audit records. Implementing one or two components without the others leaves meaningful attack surfaces open.
Why This Matters Right Now
The EU AI Act's December 2027 deadline for high-risk AI systems creates a compliance countdown. But the evidence problem it creates is not resolved by meeting the deadline — it is resolved by starting instrumentation early enough that AI systems in scope have a meaningful, externally-witnessed evidence history by the time the first conformity assessments occur.
An AI audit trail with six months of sealed history is meaningfully different from one with two weeks of sealed history at the time of assessment. History cannot be compressed or manufactured. Every sealed event record represents a decision made at a point in time, preserved by infrastructure that was in place at that time.
The question is not whether to build tamper-evident audit infrastructure. The regulatory frameworks across the EU, UK, and US are converging on a standard that makes this a requirement, not a choice. The question is how much history to build before the first regulator asks for it.
Mathematical proof, not organisational assurance.
Provara's evidence ledger cryptographically chains every AI decision event at write time, re-verifies nightly, and witnesses the chain into 7-year WORM storage under compliance lock. Evidence packets carry an RS256 signature verifiable against our published public key — no one needs to trust Provara; the mathematics are the proof.
Request a 30-minute technical demo →Related: What is an AI audit trail? · EU AI Act high-risk requirements · EU AI Act deadline extended to December 2027