SBN

AI Agent Audit Trail: Who Acted, the Employee or the Agent?


An AI agent working in the employee’s signed-in session leaves the employee’s user ID in every log. What the audit trail should record, and how to prove a person decided.

An AI agent audit trail has one job after an incident: show who did what. On a company laptop where the employee and an AI assistant share one signed-in session, most logs cannot do that job. Every app records the employee’s user ID, because every request carries the employee’s cookie.

Then a record is deleted, or a customer list is exported, and the employee says the assistant did it. The log agrees with both versions.

Why One Signed-In Session Breaks the Audit Trail

Apps log the identity behind the session. An AI browser or an assistant with access to the browser does not sign in on its own. It uses the sessions the employee already has open, so the app sees the same cookie, the same device and often the same IP address.

Timing does not settle it either. An agent works faster than a person, but a person running a script or a bulk action looks fast too, and an agent told to pace itself looks human. Signals like these help an investigator form a view. They do not prove which one acted.

This is the same gap that makes AI browsers risky on company laptops. The session is real. It cannot show whether the person decided the action.

What an AI Agent Audit Log Should Record

  • Who acted, and for whom. The principal that made the call, and the person it acted on behalf of, as two separate fields.
  • The exact call. The tool or API, and the parameters that ran: which record, which amount, which recipient.
  • What steered it. The instruction the agent was given and the content it read just before the call. If a web page or an email told it what to do, this is where it shows.
  • The decision.For the short list of critical actions, the person’s approval of that exact action, kept where the agent cannot write.

Most teams can collect the first two today from the apps themselves. The third lives in the agent’s own traces. The fourth usually does not exist.

How to Separate the Employee From the Agent

Give the agent its own identity where you can. When an agent calls an API instead of driving the browser, it can hold its own token. OAuth token exchange (RFC 8693) can issue a token that names both the person and the acting party, through its actor claim, so the log carries both. This works for agents your team builds and connects. It does not help with an assistant that drives the employee’s browser.

Label the agent’s traffic. Some tools mark their requests with a header or a distinct user agent. It is useful for triage. The agent, or anything that has taken it over, controls that label, so treat it as a hint.

Record the person’s decision for critical actions. For exports, deletes, access changes and settings changes, require a fresh approval of that exact action from the accountable person, on a device the agent does not control, such as their own phone. The approval is the one record in the trail that the agent cannot create. If it is missing, nothing shows that a person decided that action.

Which Records Hold Up After an Incident

Split the trail by who could have written it. The agent’s own logs and traces explain why it acted: what it was asked and what it read. They are the account of the software under review, and session logs on their own are not proof.

For what ran, use records the agent could not write: the database’s own audit trail, the cloud control plane, the identity provider’s sign-in log and signed approvals. The same split is the starting point of the first hour of a rogue agent incident.

How Yuthent Records the Decision

Yuthent adds the fourth record. Before a critical action runs, the accountable person sees that exact action on their own phone and approves it with the phone’s biometric. The phone’s hardware key signs what they saw, and the customer’s server verifies the signature before the action runs. The records verify against published keys, so an auditor can check them without trusting the agent’s system.

We are building the same record for agents, to be tested with customers. A person grants an agent authority for a defined kind of action, each action the agent starts under that grant is recorded with it, and the person can revoke the grant from their phone. Actions still waiting under a revoked grant are refused.

For company apps on employee laptops, this runs in our lab today. We are looking for two or three security teams to test it with us on one test user, away from live systems. Tell us which action you would protect first.

This post first appeared on the Yuthent blog.