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 programmable logic controller still held its logic a week later. Investigators argued about access and completeness. They rarely argued about whether the system that caused the harm still existed in the form that caused it.
AI agents remove that assumption at the moment the harm occurs. An agent acts: it approves a claim, declines an applicant, moves money, closes a ticket. The decision is made inside a context that exists for a few hundred milliseconds, made up of the prompt as assembled that day, the documents retrieved, the tool results and the conversation history as the system saw it. None of that is retained by default. The component that decided may also be replaced soon after, as model versions roll over, system prompts are edited and retrieval indexes are rebuilt. The agent examined on Thursday is often not the agent that acted on Tuesday.
This is why our lab treats reconstruction as the central capability of AI forensics, where in web, cloud and operational technology investigations it is one capability among several. Without a reconstruction of the run there is no weaker case; there is no case at all. Neither the claim that the system failed nor the claim that it did not can be demonstrated.
The handoff from assurance
Organizations deploying AI are not short of assurance. Models are evaluated on benchmarks before release and red-teamed for jailbreaks. Vendors publish model cards and certify against the EU AI Act or ISO/IEC 42001. Governance committees approve use cases, and dashboards report hallucination rates, drift and refusal counts. This work is useful. It is not forensics.
Each of those activities answers a question about a population of runs, stated in advance: a model like this, prompted like this, behaves acceptably on inputs like these. Forensics answers a question about a single run, stated afterwards, for 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 two are most often confused. The working assumption is that once monitoring is on, an investigator can later collect whatever it holds. What it holds was chosen to detect abnormality, such as latency, token counts, error rates and a sampled fraction of flagged prompts. The assembled context, the retrieved documents, the tool outputs the agent acted on and the exact model and prompt version that served the request are not anomalies, so nobody kept them. An organization can have every dashboard green and still be unable to say what its agent told one customer on one afternoon, or why.
Three changes when the question changes
When the question moves from “is this system acceptable” to “what did this system do”, three things change together.
The unit of analysis moves from capability to instance. Assurance asks whether a model can be biased or whether an agent can be manipulated into exceeding its authority. Forensics asks whether this decision was driven by that field, or whether this agent exceeded 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 vantage point narrows. Developers see weights, prompts, logs and configuration. Investigators usually see far less: the vendor may refuse access to the model, the deploying organization may hold only API logs, and the affected person may hold a screenshot. A method that works with full access is not the method that works with none, and the field has to produce defensible conclusions across that whole range.
The audience turns adversarial. Assurance is written for the organization 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. Whether a finding survives usually depends on whether its evidence chain can be shown rather than asserted.
Where the cloud forensics analogy stops
Cloud forensics is the closest baseline. It already deals with systems the investigator does not own, evidence held by third parties and components that change during an investigation. Following the comparison carefully shows exactly where AI agents depart from it.
Acquisition assumes something exists to acquire. In a cloud case the artifacts exist, and the difficulty is access and completeness. For an agent, the most important artifact, the context assembled at inference time, was never written down by anyone. What survives is typically a request log, a response log and a tool-call trace, and their relationship to what the model actually conditioned on has to be established rather than assumed.
Reproduction assumes determinism. An investigator can redeploy a cloud function with the same inputs and expect the same behaviour. A model sampled at non-zero temperature will not repeat itself, and even at zero temperature its output shifts with model version, serving stack and batch composition. Re-execution is not reconstruction: a sensible answer from a re-run says very little about the run that went wrong.
Chain of custody assumes a stable object. A snapshot or log export with a provider hash is usually accepted. An agent’s behaviour is a property of a composition of model weights, system prompt, retrieval corpus, tool definitions, gateway policy and user input, each with its own version history and owner. Custody has to cover the whole composition, and most of its parts 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. In an agent incident the failing component is rarely the model alone. The retrieved document was stale, a tool returned an error the model read as success, or the system prompt was edited the week before. Deciding which component is responsible is the investigation itself.
There is also no single authoritative party. Cloud investigators could eventually compel the provider to produce its record. In an agent incident the model vendor sees the request and the response and nothing of the gateway, retrieval system, tools or deployment that surrounded them. The expectation that AI forensics will arrive as a hyperscaler feature, the way cloud forensics largely did, relies on a central vendor that does not exist here.
What AI forensics is not
Four adjacent practices are often offered as substitutes.
- AI for digital forensics. Using a model to triage logs or summarize evidence is a tooling choice inside an ordinary investigation. AI forensics investigates the AI system itself. The shared name causes real confusion, because the first is widely available and the second barely exists.
- Observability. Agent observability records latencies, token counts, tool-call sequences and errors, because engineers need those to keep systems running. It does not record what the model was shown when it chose a tool, because engineers do not need that. The investigator arrives after the data is gone.
- Explainability. Attribution methods describe which features or tokens influenced outputs, usually in general or on a re-created input. An explanation computed on a re-created input is a hypothesis about the incident and should be reported as one.
- Compliance audit. An audit shows that a policy existed and controls were documented. It does not show whether the agent followed the policy on the day in question. Many organizations will pass the audit and fail the investigation, and discover the two in that order.
A case read backwards
In Moffatt v. Air Canada (2024), a Canadian tribunal held the airline liable after its website chatbot told a customer he could apply for a bereavement fare retroactively, which was not the airline’s policy. The case is remembered for the argument that the chatbot was a separate legal entity. The more useful question for this field is what evidence could have settled it.
Nothing in the decision suggests the airline lacked monitoring or logging, and an organization of that size almost certainly had both. Yet none of it reached the tribunal. Which version of the chatbot was running? Did retrieval surface a document, and was that document current? What did the system’s own record of the conversation show, as opposed to the customer’s screenshot? What did the system prompt say about policy questions? Did the same question produce the same answer for other customers that month? The decision answers none of these, and there is no sign the airline could have. A dispute over a decision made by software was settled on a screenshot and a policy page.
The pre-incident half
Evidence cannot be preserved retroactively. The moment an organization learns that its agent did something indefensible is also the moment it learns what it never kept. Deciding in advance what is evidentially relevant about an agent’s run, and keeping it in a form that someone who does not trust the organization can examine, is forensic work even before any incident. It is different from logging more. Most organizations already log a great deal, and very little of it answers the question that will eventually be asked.
Open questions for research
- What minimal record of an agent run is sufficient to support a contested finding, and how does that minimum change with the investigator’s level of access?
- How should custody be established over a composition of components held by several parties?
- Under what conditions, if any, can a re-run serve as corroborating evidence for an original run?
Assurance tells us the system was fine. Forensics begins at the point where it was not, and whether it can begin at all is decided long before.
