Skip to content
Cyber Science LabCanada Cyber Foundry, University of Guelph, Canada

AI forensics

Capability or Event? Separating the Reverse Engineering and the Forensics of AI Systems

The two fields share tools and access conditions, but they answer different questions. Reverse engineering explains what a model can do; forensics establishes what one deployed system did. We set out where the line falls and how each serves the other.

November 24, 2026 · Ali Dehghantanha

Digital forensics and incident response settled this distinction long ago. A malware reverse engineer explains what a sample is capable of: its persistence mechanism, its command channel, its payload. An incident responder establishes what happened on a particular host: when the sample arrived, what it touched and what left the network. Both may open the same binary in the same disassembler. They are still doing different jobs, because they are answering different questions.

AI systems need the same separation, and at the moment the two are often treated as one activity.

Three questions about one rejected claim

Take an insurer whose AI agent rejected a claim, and three people who might examine it.

  • A reverse engineer asks about the model in general: what features drive its outputs, how it represents a concept, how it can be made to behave differently.
  • A forensic investigator asks about this event: which inputs, retrieved documents, tool results and configuration led to this rejection for this claimant on this date, and which component was responsible.
  • An auditor asks a population question: across all claims of this type, is the system’s behaviour within the insurer’s policy.

Each question is legitimate. Only the second one is asked by a court, an ombudsperson or the claimant’s counsel.

Access does not draw the line

It is tempting to say that reverse engineering works inside the model and forensics works from the outside. The literature does not support that. Model extraction through prediction APIs was demonstrated by Tramèr et al. at USENIX Security 2016. Carlini et al. at ICML 2024 recovered the embedding projection layer of production OpenAI models (Ada and Babbage) for under US$20 of queries. Reverse engineering, in other words, routinely happens from outside.

Forensics can also go inside the model when the investigator has that access. White-box, grey-box and black-box access are conditions under which an investigation runs, not definitions of the discipline. Our own work examines how forensic conclusions change across those conditions (Dehghantanha, Homayoun et al., AutonomousCyber at ESORICS 2026).

General causation and specific causation

The real line is the one lawyers draw between general and specific causation. Reverse engineering and interpretability establish general causation: this model can be pushed toward this behaviour by inputs of this kind. Forensics has to establish specific causation: this behaviour, in this run, was produced by these inputs and these components.

The gap between the two is wider for AI than for malware, for two reasons.

First, even the best interpretability tools explain a portion of behaviour on an approximation of the model. Anthropic’s 2025 attribution-graph work on Claude 3.5 Haiku (Lindsey et al.) gave satisfying insight on roughly a quarter of the prompts studied, and it did so on a replacement model rather than the production network. That is a significant scientific result, and it is still a long way from explaining one decision in a deployed system.

Second, the deployed system is larger than the model. A rejected claim depends on the system prompt in force that day, the documents retrieval surfaced, the tools the agent called and what they returned. None of these are visible in the weights. Re-running the case is also unreliable: work from He and Thinking Machines Lab (“Defeating Nondeterminism in LLM Inference”, Connectionism, September 2025) showed that inference can vary even at temperature zero, because results depend on how requests are batched on the server.

Where reverse engineering serves forensics

None of this makes reverse engineering less useful to investigators. It supplies three things forensics needs.

  • Fingerprinting. When the question is which model actually served a request, active fingerprinting can answer it. LLMmap (Pasquini et al., USENIX Security 2025) identified 42 model versions with over 95% accuracy from 8 queries.
  • Architecture recovery. Knowing a system’s structure tells the investigator where evidence could exist and which components could have failed.
  • Hypotheses. Interpretability findings suggest what to look for in the records of a specific run.

Two conditions apply before such results can be used as evidence. The method’s error rate has to be stated, because a 95% identification is a probability and not an identification. The investigator also needs authority to probe: querying a vendor’s system in ways its terms of service prohibit can taint the finding it produces.

What follows for each community

For machine learning researchers, the useful next step is to state the conditions under which a general finding transfers to a specific deployed run, and when it does not. For digital forensics practitioners, the reverse engineering literature is a specialist layer to draw on, in the same way malware analysis supports incident response, with its limits documented rather than assumed.

Open questions for research

  • How can the gap between general and specific causation be measured for a given deployed system?
  • What error rates should a fingerprinting or attribution method report before its output is relied on in a dispute?
  • Which reverse engineering techniques remain lawful and defensible when the investigator does not own the system?