Why tamper evidence is not an optional feature for enterprise AI agents, and how ZizkaDB makes it practical.
Most enterprises that deploy AI agents will say they have an audit trail. They have logs. The logs sit in a database or an observability tool. Engineers can search them. Some are retained for months.
Then an auditor, a regulator, a customer's lawyer or a court asks a different question: how do we know this record is the one that was written at the time, and that nobody changed it afterwards?
If the honest answer is that our administrators would have noticed, or that we trust our team, the trail is not an audit trail. It is a set of assertions by the party being audited. This article explains why tamper evidence is unavoidable for AI agent audits in enterprises, what it does and does not prove, how the main options compare, and how ZizkaDB, an open source causal audit database for AI agents, provides it.
A note on scope. This is general information, not legal or security advice. Standards and evidence rules differ by country, so check with your legal, security and audit teams. Several sources below are vendor summaries of standards, and they are attributed. ZizkaDB records events and shows whether the record has been altered. It does not secure your systems, detect manipulation of an agent, or make you compliant on its own. Parameter names in code are illustrative.
Why an editable log fails the one test that matters
An audit is not a search. It is an exercise in reliance: a third party decides whether to rely on your evidence. A third party can rely on a record only if it has reason to believe the record is complete, original and unaltered.
A normal log gives no such reason. Anyone with write or administrative access can change or delete a line, and nothing shows that it happened. That includes engineers fixing a bug, administrators tidying a database, a compromised account, a vendor's support staff and, in some architectures, the agent itself if it holds broad credentials. Most of these people have no bad intent. But the auditor cannot tell the difference, and the opposing party in a dispute will not try to.
Six reasons it is unavoidable for AI agents
- The party who writes the log is usually the party under audit
In enterprise AI, the log is almost always kept by the organisation or vendor whose behaviour is in question. A bank's lending agent is run by a vendor. A vendor's logs are held by the vendor. A contractor's records are held by the contractor. In every case the keeper has an interest in the outcome. Independent verification is the only way for the other side to rely on the record.
- Insiders are in scope for the standards you already follow
Security frameworks already ask for integrity protection of audit information. NIST SP 800-53 control AU-9 requires protecting audit information and audit tools from unauthorised access, modification and deletion, and its enhancement AU-9(3) calls for cryptographic mechanisms to protect the integrity of audit information, with the control text noting that signed hash functions are one example. AU-9 appears in all three baselines, according to a compliance vendor's summary. ISO 27001:2022 control 8.15 on logging, as summarised by another vendor, requires protecting logs from tampering, unauthorised access and deletion, and extends that protection to privileged insiders who might modify their own audit trails.
If you are audited against either, an editable log with administrators who can rewrite it is hard to defend.
- Regulation is moving toward traceability, and credibility follows
Article 12 of the EU AI Act requires high-risk AI systems to technically allow for the automatic recording of events over the lifetime of the system, with logging capabilities that enable a level of traceability appropriate to the intended purpose. The AI Act's own text does not use the words tamper evident, and honesty requires saying so. But traceability that cannot be trusted is not traceability in any sense a regulator can use. Deployers must keep the logs under their control for at least six months, and for high-risk systems under Annex III the obligations apply from 2 December 2027, with Annex I systems from 2 August 2028, so check the final dates for your case.
- Evidence law already treats hashes as the way to authenticate electronic data
In the United States, Federal Rule of Evidence 902(14) lets data copied from an electronic device, storage medium or file be authenticated by a process of digital identification, shown by the certification of a qualified person. The advisory materials note that such data are ordinarily authenticated by hash value, and commentary explains that a hash taken at collection and checked again before admission shows the item is identical. The rule came into effect on 1 December 2017. It is a US rule, and other jurisdictions differ, but it shows the direction: where authenticity is contested, a hash is the standard tool. A log that was never hashed starts every dispute with an authenticity argument.
- You cannot rerun an agent to check what it did
With deterministic software, an investigator can sometimes reproduce a result by rerunning it. With an AI agent, outputs vary, models are updated, retrieved data changes and tools return different results. The recorded history is often the only evidence of what happened. If the only evidence is editable, there is nothing else to fall back on.
- Agents change the threat model for logs
An agent that reads untrusted content can be manipulated into taking actions, and OWASP's Top 10 for LLM Applications lists prompt injection first and excessive agency among the top risks, with a Cloud Security Alliance summary reporting excessive agency rising to third place in the 2026 edition. An agent with broad write access could, if manipulated, alter or remove records of what it did. You should not need to assume your agent is safe in order to trust your evidence. Tamper evidence means that even a successful manipulation cannot silently erase its own tracks.
What tamper evident means, and what it does not
Tamper evident means that if the record is altered, the alteration can be detected. It does not stop the alteration. That is the difference from tamper proof, which is a stronger and rarer claim.
A hash chain is the usual mechanism. Each event carries a cryptographic fingerprint, a SHA-256 hash, of its own content together with the hash of the event before it. Change an event and its fingerprint changes, which breaks the link to the next one, and so on to the end. Delete or reorder events and the chain no longer joins up. Anyone who holds the latest hash, called the chain head, can later check whether the full history still produces it.
What it proves: the history is unchanged since the head was recorded. What it does not prove, and what you must not claim:
Completeness. If an event was never recorded, the chain has no gap to show.
Truth. A hash chain does not show that the recorded content was accurate when written.
Time, on its own. It shows order. The date the record existed is supported by where and when the head was stored.
Correctness of the decision. It supports an explanation, it does not judge it.
The most important design point is custody of the head. If the same administrators control both the database and the stored head, they could rebuild the whole chain. The head must be kept somewhere a different party controls, such as internal audit, a records system, a customer or a neutral third party.
How the main options compare
Approach What it gives you What it does not
Plain application logs or observability tool Searchable history No detection of edits by privileged users
SIEM with access controls and RBAC Restricted access, monitoring of who touched logs Relies on trusting the SIEM administrators and platform
WORM or object lock storage Prevents deletion or overwrite within a retention window Does not by itself link events or show what was missing before writing; weaker for lineage
Hash-chained audit store Detects edit, deletion or reorder of any event in the chain Detects, does not prevent; needs separately held head
Public blockchain anchoring Strong external timestamp Cost, complexity and privacy considerations, and still needs a chained record underneath
These are not exclusive. A sensible enterprise setup layers them: access controls and WORM at the storage level, a hash chain at the record level and an independently held head. The hash chain is the part that lets a third party verify the record without trusting the keeper.
How ZizkaDB implements it
ZizkaDB is an open source causal audit database for AI agents. For tamper evidence it provides:
SHA-256 checksums with a per-agent hash chain. Each recorded event is linked to the previous one for that agent.
A verification route. Call verify_chain and compare the returned head with the copy you stored independently.
Causal structure. Each event can point to its parent with parent_id, so the integrity applies to the lineage of a decision, not only to isolated lines.
Export. Produce a defined slice of events for an auditor, with the verification result.
Privacy tooling. Redaction before storage, forget with tombstones, supersession for corrections, and read-only and expiring keys, so tamper evidence can coexist with data protection duties.
Open source. The core is AGPL-3.0, so an auditor can read the code that writes and verifies the chain. A verification mechanism that the auditor can inspect is worth more than one they must take on trust.
Model, LLM and cloud agnostic. It records events, not a vendor's internal traces, so the same trail works across providers, clouds and on premises. It runs self hosted in a single Docker container on Postgres, with a managed Cloud edition at db.zizka.ai for multi-agent setups.
python
ev = await db.log(agent="claims-agent", event="decision",
data={"claim_ref": "CL-20931", "outcome": "partial_approval", "rule_set": "v14"},
parent_id=context_event.id)
check = await db.verify_chain(agent="claims-agent")
anchor_store.append(agent="claims-agent", head=check.head, ts=now(), ok=check.ok)
The second call is the one that matters. Writing the head to a store controlled by a different party, on a schedule, is what converts a hash chain into evidence a third party can rely on.
How to roll it out in an enterprise
Pick the decisions that matter. Money, rights, safety, access and regulated outputs come first.
Define the events and the parent links. A decision should link to its inputs, rules, versions and human review.
Keep content out of the chain where you can. Store references and digests, redact before storage, and pseudonymise subjects, so you can honour erasure and minimisation without breaking integrity. Our article on security and privacy audit needs covers this in detail.
Separate roles. The people who deploy agents should not hold the keys to the audit store or the anchored heads.
Anchor heads independently. Store the head with internal audit, a customer, or a neutral third party, every few minutes or hours depending on risk.
Verify on a schedule and alert on mismatch. Treat a failed verification as a security incident.
Test it. Once a quarter, alter a copy in staging and confirm detection. Restore from backup and confirm the restored chain matches the anchored heads.
Rehearse the audit. Ask someone outside the team to authenticate a decision from the record alone.
Objections you will hear
We already have a SIEM. A SIEM is valuable for monitoring and access control. It does not let an outside party verify that the stored history is unchanged without trusting the platform and its administrators. Use both.
Tamper evidence conflicts with the right to erasure. It conflicts only if you put personal content in the chain. Record references and pseudonyms, keep the identity mapping separately, and use redaction and tombstones. Test how verification behaves after a forget in your version, and take advice from your privacy lead.
It will slow the agent down. Recording is observe-only and sits outside the critical path of the agent, with batching and idempotency keys for retries. Measure the overhead in your environment.
We trust our administrators. Auditors and opposing parties are not asked to. The point of the design is that you do not need to ask them to.
WORM storage is enough. It prevents deletion within a window. It does not link events into a verifiable lineage or show whether a record was edited before it was written to WORM. It is a good layer and not a substitute.
The honest limits
Tamper evidence will not make your agents safe, and it will not make your logs complete. A chain proves that what was recorded has not been altered since the head was stored. If your instrumentation misses an action, nothing flags the omission. If someone controls both the database and the stored heads, they can rewrite history, which is why custody matters. A hash chain does not detect prompt injection or judge whether a decision was right. The open source edition of ZizkaDB records one agent per install, so multi-agent and agent to agent recording use the Cloud edition or separate instances. Whether the record meets the evidence rules in your jurisdiction is a question for counsel.
The bottom line
Enterprises are putting agents into decisions that carry money, rights and liability. When those decisions are questioned, the quality of the evidence decides the outcome. A record that can be quietly edited will be doubted by auditors, regulators, customers and courts, and the doubt will be fair. A record that can be verified independently turns a dispute about whose story to believe into a check anyone can run.
Tamper evidence is cheap to build at the start and very hard to add later, because you cannot prove the past was unaltered after the fact. If you run agents that matter, start recording with a hash chain and an independently held head this month.
ZizkaDB is open source and self hostable in a single container. Start with one agent, one decision type and one stored head, and run the tamper test before your auditor does.
Corrections: if you represent a party mentioned here and believe a statement is inaccurate, contact us and we will review it promptly.
Sources: NIST SP 800-53 Rev. 5 controls AU-9, AU-9(3) and AU-10 (text via Tenable and a public control catalogue, with UpGuard summary); ISO/IEC 27001:2022 control 8.15 as summarised by UpGuard; EU AI Act Article 12 and Article 113 (AI Act Service Desk and artificialintelligenceact.eu) and Articles 19 and 26 as discussed in recent academic analyses; Federal Rule of Evidence 902(13) and 902(14) (Cornell LII, US Courts advisory materials, Federal Judicial Center, Duke Judicature and Law.com commentary); OWASP Top 10 for LLM Applications 2025 and Cloud Security Alliance summary of the 2026 edition; ZizkaDB documentation.
