VaikoraVaikora

Vaikora › Blog › Product Updates

SHA-256 hash-chained audit logs for AI agents: what the chain proves and what it cannot prove

Product Updates · Dec 1, 2026 · 4 min read

An AI agent's audit log is only as useful as what it records and whether that record can be tampered with after the fact. Most logging setups capture that something happened; fewer capture enough to reconstruct exactly why a decision was made, and almost none provide cryptographic proof that the record has not been altered since it was written.

This article covers what a tamper-evident, hash-chained audit log for AI agent actions actually contains, what the chain structure proves, and where the gaps are even when the chain is intact.

What a hash chain does (and does not do)

A SHA-256 hash chain works by including the hash of the previous log entry as a field inside the current entry before hashing the current entry. That means altering any entry in the middle of the chain invalidates every entry that follows it, because their stored "previous hash" values no longer match.

What this proves: the sequence of entries has not been modified since the chain was written.

What this does not prove: that the entries were written correctly in the first place. If the policy engine writes a dishonest record at write time, the chain faithfully preserves that dishonest record. The chain is a tamper-evidence mechanism, not a source-of-truth mechanism. Those are different guarantees and both matter.

What each entry must contain to be reconstructible

For an AI agent audit entry to support after-the-fact investigation, it needs to answer six questions without requiring the investigator to pull data from a separate system:

The gap between "permitted" and "executed" matters. A log that records only the allow decision but not the downstream tool call result leaves a blind spot where the action could have failed, been retried, or produced side effects that the policy engine never saw.

A concrete scenario: tracing a blocked credential exfiltration attempt

Consider an agent running inside a customer support workflow. It has read access to a CRM and is allowed to retrieve ticket details. At 14:23 UTC, it generates a tool call that requests a bulk export of all customer records from the CRM API, passing a date range that covers three years.

The policy engine evaluates the action. The rule that fires is a data volume threshold: bulk exports above a configured row count require human approval. The engine writes an entry that includes:

The agent does not execute the export. The entry is signed into the chain.

At 14:31 UTC, an analyst in the SIEM gets an alert. They pull the entry directly from the audit log. Because the entry contains the full payload and the specific rule, the analyst can confirm what the agent tried to do, what stopped it, and that the record has not been altered since it was written, without having to replay the conversation or trust the agent's own memory.

Where Vaikora fits

Vaikora writes every policy decision into a SHA-256 hash-chained, tamper-evident audit log at the enforcement point, before any action executes. Because the enforcement is inline, the log entry and the enforcement outcome are written in the same transaction. That closes the gap between "decision recorded" and "action controlled."

Vaikora pushes those audit events to Microsoft Sentinel, CrowdStrike Falcon, SentinelOne, and AWS Security Hub through native integrations, so the chain is preserved but the events land where your investigation workflows already run.

What to check in your current setup

If you have AI agents in production and an audit log already in place, check three things:

If any of those three are missing, the audit log tells you something happened but cannot support a reliable investigation when it matters.

See Vaikora enforce policy on your AI

Open-core AI runtime control. Self-host the MIT gateway free, or run the hosted Control Plane.

Get a demo Self-host the gateway

More from the Vaikora blog