Inference Forensics Discuss a matter

Insights

Where Assurance Stops: Why AI Agents Need Their Own Forensics

If assurance tells you the system was fine until it wasn't, forensics is what starts at "wasn't".

For most of the history of digital forensics, the thing that acted was still there afterwards. A server could be imaged, a cloud account left a trail, a PLC still held its logic a week later. Investigators argued about access and completeness, rarely about whether the system that caused the harm still existed in the form that caused it.

AI agents break that assumption, and they break it at the moment the harm occurs.

An agent does not only record or compute. It acts. It approves a claim, declines an applicant, moves money, closes the ticket. By the time anyone asks a question, the consequence is already in the world. The decision was made inside a context that existed for a few hundred milliseconds: the prompt as assembled that day, the documents retrieved, the tool results, the conversation history as the system saw it. None of that is retained by default. And the component that decided may have been replaced. Model versions roll over, system prompts are edited, retrieval indexes are rebuilt. The agent you would investigate on Thursday is often not the agent that acted on Tuesday.

This is why reconstruction, one capability among several in web, cloud and operational technology investigations, becomes the central capability for AI systems. If you cannot reconstruct the run, you do not have a weaker case. You have no case at all, in either direction. You cannot prove the system failed and you cannot prove it did not.

The handoff

Organizations deploying AI are not short of assurance. Models pass benchmark evaluations before release. Red teams try to jailbreak them. Vendors publish model cards and certify against the EU AI Act or ISO 42001. Governance committees approve the use case. Dashboards report hallucination rates, drift and refusal counts. All of this is useful and none of it is forensics.

Each of those activities answers a question about a population of runs, stated in advance: a model like this, with a prompt like this, behaves acceptably on inputs like these. Forensics answers a question about one run, stated afterwards, to someone with a reason to doubt the answer: what did this agent do, for this applicant, at this moment, and which part of the system made it do that.

Monitoring is where the misunderstanding is sharpest. The common assumption is that once monitoring is switched on, an investigator can later walk in and take whatever is there. What is there was chosen to detect abnormality: latency, token counts, error rates, drift against a baseline, a sampled fraction of prompts flagged by a classifier. It was never chosen to answer a dispute. The assembled context, the retrieved documents, the tool outputs the agent acted on, the exact model and prompt version serving that request, are not anomalies, so nobody kept them. An organization can have excellent monitoring, every dashboard green, and be unable to say what its agent told one customer on one afternoon, or why.

Three shifts at "wasn't"

When the question changes from "is this system acceptable" to "what did this system do", three things change at once.

The first is the unit of analysis. Assurance asks about capability: can this model be biased, can this agent be manipulated into exceeding its authority. Forensics asks about an instance: was this decision driven by that field, did this agent exceed its authority on this run. A model that is fair on average can still have made an indefensible decision in one case, and the average is no defence.

The second is the vantage point. The developer sees weights, prompts, logs and configuration. The investigator usually sees much less. The vendor may refuse access to the model. The deploying organization may hold only API logs. The individual affected may hold a screenshot. AI forensics must produce defensible conclusions across that whole range of access, and the method that works with full access is not the method that works with none.

The third is the audience. Assurance is written for the organization itself and for a regulator reading in good faith. Forensic findings are read by opposing counsel, an insurer deciding whether to pay, a tribunal, or the other side's expert, each looking for the gap. A finding that satisfies an internal review can fall apart under cross-examination, and the difference is usually whether the evidence chain can be shown rather than asserted.

What does not carry over from cloud forensics

The closest comparison available is cloud forensics. It also deals with systems the investigator does not own, evidence held by a third party, and components that change under the investigator's feet. It is the right baseline, and it is worth seeing exactly where the comparison stops holding.

Acquisition assumes there is something to acquire. In a cloud investigation the artifacts exist, the provider's audit log, the storage bucket, the function's execution record, and the hard part is getting access and proving completeness. For an agent, the most important artifact, the context assembled at inference time, was never written anywhere by anyone. What exists afterwards is usually a request log, a response log and a tool-call trace, and the relationship between those and what the model actually conditioned on has to be established, not assumed.

Reproduction assumes determinism. In a cloud incident, an investigator can redeploy the same function with the same inputs and expect the same behaviour, which is how misconfigurations are confirmed. An AI model at non-zero temperature will not give the same output twice, and even at zero temperature the output shifts with model version, serving stack and batch composition. Re-execution is not reconstruction. The investigator who re-runs the prompt and gets a sensible answer has learned almost nothing about the run that went wrong.

Chain of custody assumes a stable object. In the cloud, the object is a snapshot, a log export or an account state, and the provider's hash and timestamp are usually accepted. An agent's behaviour is a property of a composition: model weights, system prompt, retrieval corpus, tool definitions, gateway policy and user input, each with its own version history and its own owner. Custody has to be established for the whole composition, and most of those components are held by parties who were never asked to preserve them.

Attribution assumes a bounded system. In a cloud intrusion, the boundary is the tenant, and the question is how the attacker got in. In an agent incident, the failing unit is rarely the model. The retrieved document was stale. A tool returned an error the model read as success. The system prompt was edited the week before. The gateway rewrote the request. Deciding which component is responsible is the investigation itself, and it cannot be settled by examining the model alone.

This is also where the cloud analogy ends. In the cloud, the investigator eventually reached one party, the provider, who held the authoritative record and could be compelled to produce it. In an agent incident there is no such party. The model vendor sees the request and the response, and nothing of the gateway that rewrote the request, the retrieval system that fed it, the tool that answered it or the deployment that stitched them together. The assumption that AI forensics will arrive the way cloud forensics did, as a feature from the hyperscalers, rests on a central vendor that does not exist here.

What AI forensics is not

Several adjacent disciplines are routinely offered as substitutes. None of them is, and the reason in each case is specific to agents.

It is not AI for digital forensics. Using an AI model to triage logs or summarize evidence is a tooling choice inside an ordinary investigation. AI forensics is the investigation of the AI system itself. The two share a name, and the confusion is costly, because the first is widely available and the second barely exists.

It is not observability. Observability for an agent records latencies, token counts, tool-call sequences and error rates, because that is what engineers need to keep the system running. It does not record what the model was shown at the moment it chose a tool, because engineers do not need that to keep it running. The two are built for different readers, and the second reader arrives after the data is gone.

It is not explainability. Explainability methods describe which features or tokens influenced a model's outputs, usually in general or on a reconstructed input. Forensics needs to know why this agent, on this run, skipped a verification step, and it needs to know it from the actual run, with provenance. An explanation computed on a re-created input is a hypothesis about the incident, and should be presented as one.

It is not compliance audit. An audit establishes that a policy existed, that a process was documented and that controls were in place. It does not establish whether the agent followed the policy on the day in question. Many organizations will pass the audit and fail the investigation, and they will discover this in the wrong order.

One case, walked backwards

In 2024 a Canadian tribunal held Air Canada liable after its website chatbot told a customer he could apply for a bereavement fare retroactively, which was not the airline's policy (Moffatt v. Air Canada, 2024 BCCRT 149). The case is remembered for the airline's argument that the chatbot was a separate legal entity. The more useful question for this field is what evidence would have settled it either way.

Nothing in the decision suggests the airline lacked security monitoring or logging in the ordinary sense. An organization of that size and regulatory exposure almost certainly had both. What the record shows is that none of it was brought to the tribunal. The airline provided no information about the nature of its chatbot, and did not explain why its webpage should be believed over its own agent. It had systems watching the chatbot and nothing that could speak for it. If that is the position of a national carrier with a compliance function, it is worth asking what a smaller organization, with a vendor's chatbot bolted onto its website, would bring to a tribunal.

Which version of the chatbot was running at the time. Whether retrieval was involved and, if so, which document it surfaced and whether that document was current. What the full conversation looked like, not the customer's screenshot but the system's record. What the system prompt instructed about policy questions. Whether the same question, in the same period, produced the same answer for other customers. None of this appears in the decision, and there is no indication the airline could have produced it if asked. The dispute was decided on a screenshot and a policy page. For a decision made by software, that is a thin record, and it was the best record anyone had.

The quiet half of the discipline

The corollary is uncomfortable, and it is why this field has a pre-incident half. Evidence cannot be preserved retroactively. The moment an organization learns that its agent did something indefensible is also the moment it discovers what it never kept. Deciding in advance what is evidentially relevant about an agent's run, and keeping it in a form that can be examined by someone who does not trust you, is forensic work even though no incident has occurred. It is not the same as logging more. Most organizations already log a great deal, and almost none of it answers the question that will eventually be asked.

Assurance tells you the system was fine. Forensics begins when it wasn't, and whether it can begin at all was decided long before.

Related: What is AI forensics? A definition · Defensibility review

If an AI decision in your organization will one day be examined, start the record now.

Contact us