Inference Forensics Discuss a matter

Insights

White, Grey or Black Box: How Investigator Access Shapes an AI Investigation

The same AI incident can support three different conclusions. Which one you reach depends less on the system than on what you can reach.

In August 2026, Sajad Homayoun of Aalborg University and I published a paper proposing a process model for the forensic investigation of AI systems (arXiv:2608.03520). Its central claim is simple. Work on AI forensics has been organized by system type: one method for language models, another for classifiers, another for agents. We argue that the more useful way to organize it is by investigator access, because access decides what can be collected, preserved, analyzed and defended in a report. This piece sets out what that means for organizations that may one day commission an investigation, or be the subject of one.

One incident, three investigators

The paper follows a single incident throughout. A regulated financial advisory firm deploys a third-party AI assistant that uses a system prompt, a retrieval store, customer history and a transaction tool guarded by policy checks. Over several weeks, the assistant starts steering clients toward a fraudulent product and eventually triggers an unauthorized transaction. Several causes are plausible: a poisoned fine-tuning set, a corrupted retrieval entry, a prompt injection, a model update or a weakness in the tool authorization layer.

Three parties investigate. The model provider can examine the weights and training data, and traces the behaviour to poisoned fine-tuning examples with high confidence. The deploying firm cannot see inside the model, but it can correlate its prompts, retrieval entries, tool traces and policy logs, and show that the retrieval entry alone does not reproduce the behaviour. That is a medium-confidence finding. The regulator sees only the harmful outputs. It can show a systematic pattern by probing a surrogate, yet it cannot separate a fault inside the model from a fault in the inputs. Its conclusion is low confidence, and by the time it asks, the model has already been updated.

The system is the same in all three investigations. The access differs, and the access sets the ceiling on what each party can prove.

Three access postures

White box
The investigator holds the model's internals and provenance: weights, checkpoints, training configuration, training and fine-tuning data. The typical white-box investigator is the model owner examining its own system.
Grey box
The investigator holds the deployment surface: serving logs, the prompts and system prompts in force, retrieval stores, agent and tool-call traces, orchestration configuration. It does not hold the base model's weights or training data. This is the typical position of an organization that deploys a third-party model, and it is the most common posture in practice.
Black box
The investigator sees only inputs, outputs and externally observable behaviour. Anything deeper requires cooperation from whoever holds the model. This is the usual position of a regulator, an opposing expert or an outside incident response team brought in after the fact.

Real cases rarely fit one posture cleanly. An investigator may have logs without system prompts, or API transcripts without the retrieval store. The postures are a working shorthand for what is forensically reachable in a given case.

How each phase changes with access

PhaseWhite boxGrey boxBlack box
CollectionWeights, checkpoints, training data and logsServing logs, prompts, retrieval store, tool-call traces, configurationInputs, outputs and timing; anything deeper needs the provider
PreservationHash and sign weights and datasets; record lineageSnapshot mutable stores and logs; freeze configuration versionsKeep transcripts, timestamps and the reported model version
AnalysisTraining-data attribution, weight comparison, activation and backdoor checksCorrelate logs and traces; reconstruct injection or retrieval poisoning; replay against reachable componentsBehavioural probing, output statistics, surrogate models
ReportingCausal account with reproducible findingsProbabilistic attribution and partial reconstructionBehavioural findings with low confidence; admissibility hardest

An order of volatility for AI systems

Digital investigators collect the most short-lived evidence first, following the order of volatility in RFC 3227 (Internet Engineering Task Force guidelines for evidence collection and archiving). AI evidence does not map neatly onto storage media, so the paper proposes an order specific to AI systems, from most to least volatile:

  1. Accelerator memory: activations, the key-value cache and in-flight inference state on the GPU.
  2. The assembled context window: the full prompt, system prompt and retrieved content the model actually saw.
  3. In-flight network and tool-call traffic.
  4. Host memory and the orchestration runtime.
  5. Serving and inference logs, where logging is enabled.
  6. Retrieval and vector store state, which changes as documents are added or re-indexed.
  7. Agent and tool-call traces, and persisted agent memory.
  8. Model checkpoints and weights.
  9. Training data, pipeline and lineage.

The first three layers usually exist only if someone was capturing them before the incident. Recovering them afterwards is, with current tooling, largely aspirational.

The inversion that matters

Ordering the evidence this way exposes an uncomfortable pattern. The most volatile evidence, which is often the most proximate to the decision, survives only if logging or instrumentation was already in place. The most stable evidence, which is often the most probative for questions of poisoning or origin, usually stays with the model provider. The party that first notices the harm is typically the one least able to reach the evidence that would explain it.

A second gap follows from it. A conventional examiner can return to a preserved disk image. An AI investigator often cannot return to the model, because the provider may have updated or retired it between the incident and the investigation. The paper calls the missing capability model version attestation: a verifiable, timestamped link between an observed behaviour and the exact model version, configuration, retrieval state and serving context that produced it. Without it, a black-box finding rests on an assumption the investigator usually cannot check, namely that the model examined is the model that caused the harm.

What this means before an incident

Most organizations that deploy AI are grey-box investigators of their own systems, whether they have thought about it or not. Their position in a future dispute is decided now, by what they choose to keep.

The evidence that decays first is also the evidence a deployer can most easily keep: the assembled context, the tool calls and their results, and the configuration in force at the moment of each decision. Persisting that record, with integrity that holds against the organization itself, moves an investigation from inference toward reconstruction.

The evidence a deployer cannot keep, it can contract for. Provider disclosure, retention of version identifiers and some form of version attestation are easier to negotiate before an incident than during one. Every finding should then be graded by the access it rests on, so that a court or regulator can see which claims are causal and which are behavioural.

Regulation is pushing in the same direction. The EU AI Act requires high-risk systems to support automatic event recording (Article 12), addresses the retention of those logs (Article 19), and sets serious-incident duties for providers (Article 73) and for deployers (Article 26). The demand for forensic analysis of models goes well beyond compliance, though. It already arises in litigation, mergers and acquisitions, due diligence and vendor assurance, wherever a model's behaviour or provenance has to be established to an evidentiary standard.

We present the workflow in the paper as a first scaffold, to be tested against real investigations and refined. Its practical point holds already: establish your access level before you promise a conclusion, collect in order of volatility, and say plainly what the evidence could not reach.

Reference

  • Dehghantanha, A., and Homayoun, S. AI Forensics Across White-, Grey-, and Black-Box Access: A Process Model and Research Agenda for Post-Incident Investigation of AI Systems. arXiv:2608.03520, August 2026. arxiv.org/abs/2608.03520

Related: What is AI forensics? A definition · Post-incident investigation

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

Contact us