VaikoraVaikora

Vaikora › Blog › Product Updates

AI agent action auditing: what each log entry must record to make a decision reconstructible

Product Updates · Dec 1, 2026 · 4 min read

Eight milliseconds is how long Vaikora takes to evaluate an AI agent action at P50. That is fast enough to be invisible to users, but only useful if the system writes a record that an investigator can actually read later. The audit trail is where enforcement proves itself, and most AI audit implementations fail before the first incident.

What "auditing an action" actually means

An AI agent audit log is not an application log. Application logs capture state changes and errors. An agent audit log must capture a decision: what the agent tried to do, what policy evaluated it, what the decision was, and what happened as a result.

A log entry that says `tool_call: execute_sql` is not useful. A log entry that says:

is useful. The difference is not volume of data. The difference is that the second entry answers an investigator's question without requiring them to correlate three other systems.

The chain hash matters more than the timestamp

Timestamps can be altered. A SHA-256 hash chain, where each entry is signed against the hash of the previous entry, cannot be silently edited. If a record is deleted or modified, the chain breaks and the break is detectable.

Vaikora writes every policy decision into a hash-chained, tamper-evident audit log. That property matters specifically in two scenarios: a post-incident forensic review where someone may argue the logs were incomplete, and a compliance audit where the reviewer needs confidence that the record is what it claims to be.

Without a chain, an audit log is a file that someone could have edited. With a chain, it is a record with a provable sequence.

What gets logged at each enforcement point

For every action that passes through the enforcement point, the audit record should capture:

The "require-approval" case is worth calling out. When a human is in the loop, the audit record needs to capture what that human actually reviewed, because the action was authorized based on what they saw. If the agent's representation of the action differed from what the tool would execute, that discrepancy is investigatively significant.

Correlating audit records with your existing detection stack

A log file that lives only in the enforcement platform creates a silo. For the audit record to reach the people who investigate incidents, it needs to surface in the tools they already use.

Vaikora pushes AI agent threats into SentinelOne as Threat Intelligence indicators with severity mapped numerically: Critical at 100, High at 75, Medium at 50, Low at 25. It promotes high-severity risk into Microsoft Defender for Cloud as native incidents without custom engineering. That means a blocked `execute_sql` action from an agent session that also triggered a credential anomaly can appear as correlated signals in the same investigation view, not as separate entries in separate tools.

The alternative is manually pulling logs from the enforcement platform, the SIEM, the identity provider, and the tool audit trail and trying to reconstruct a timeline. That takes hours. Correlated signals in a single pane take minutes.

A scenario: reconstructing what happened

An agent running a data-extraction workflow calls a file read tool against a path outside its designated scope. The enforcement point blocks it. Two hours later, the same agent session calls the same path again through a different tool adapter.

Without a chain-linked audit log, you have two disconnected block events. With one, you have a sequence: same session, same target, two distinct tool calls, two blocks, 7,200 seconds apart. That sequence is the signal. It suggests the agent (or a prompt injected into it) is probing for a path that works. The first block was not an anomaly. It was the first step in a pattern.

That reconstruction requires that every entry carries the session identifier consistently and that the entries are ordered by a verifiable chain, not just a timestamp column that could be reordered.

What to check in your current setup

Before the next incident, verify three things. First, does your AI agent audit log capture the matched policy rule by name, not just the decision outcome? Second, does it carry a consistent session or run identifier across every tool call in a workflow? Third, is the log tamper-evident, meaning that a deleted or modified entry produces a detectable break?

If any of those three are missing, the audit trail answers fewer investigator questions than it should.

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