Version
1.1.0
Published / updated
Reference status
Reference
Author / editor attribution
Jesse Shelley
Follow the evidence from request to effectRead in sequence; each relationship must be supported by available records.
  1. 01Task & Authority
  2. 02Agent
  3. 03Tool Request
  4. 04External System
  5. 05Observed Effect

What does AI agent forensics examine?

An AI agent can carry out a task through connected tools: editing a document, running a command, querying a service, or handing work to another agent. Each step may leave records in a different place. A conversation can explain the request; the affected system can help establish the result.

This guide covers the examination of those relationships, sometimes described as agentic AI forensics. Start with a specific question, such as whether a file was changed or a message was sent. The AI Agent Forensics field reference sets out the broader scope and its relationships to other forensic work.

When is an agent examination useful?

  • A file or account changed during an automated task, and the origin of the change is disputed.
  • An assistant reported that it completed an action, but the result is missing or different.
  • A task used a connected service or delegated work, leaving an incomplete visible history.
  • A suspected prompt injection may have redirected an agent from the requested task.
  • An incident review needs to establish which actions occurred before and after a task was stopped.

Start with the task and its authority

Record the initiating request, task and session identifiers, runtime version, available tools, and relevant configuration. Identify the accounts used and the permissions in effect at the time. Separate a tool being available from permission to use it for a particular purpose.

Preserve recorded approvals, denials, and later changes in authority. An approval to draft a message may differ from an approval to send it. Examine the scope of each recorded instruction rather than inferring permission from the final outcome. Define the systems and time interval covered by the authorized collection.

What evidence should you preserve?

Collect the original records where available, with their source, collection method, identifiers, timestamps, and integrity information. Retention varies by product and configuration. Use the preservation methods to plan collection before opening applications or rerunning tasks that could alter their state.

What evidence should you preserve?
SourceUseful recordsQuestion it can help answer
Task and conversationInstructions, attachments, message relationships, task IDs, and available contextWhat was requested, and which recorded inputs were available?
Tool and runtimeTool names, arguments, call IDs, results, errors, and execution recordsWhat was attempted, and what did the tool report?
Access and approvalAccount identifiers, permission settings, approval events, and authentication logsUnder which recorded authority and account did the action run?
DelegationParent and child task IDs, assigned scope, returned results, and completion eventsWhich agent performed each part of the work?
Device and browserProcess records, commands, acquired files, browser records, and before-and-after stateWhat local activity or change can be established?
External serviceService audit events, request IDs, job status, object versions, and destination recordsWhat did the affected service accept, complete, or retain?

A plan, a request, and a result are different evidence

Label the state supported by each source. Confirmation concerns a specific effect: a file existing, a service accepting a job, and a recipient receiving a message are different propositions.

A plan, a request, and a result are different evidence
Action stateExample evidenceWhat you can say
ProposedThe agent writes that it will update a fileThe agent described an intended change.
AttemptedA tool-call record contains the file-write argumentsThe record contains a request to write the file.
ReportedThe tool returns a success messageThe tool reported success for that request.
ConfirmedSeparately acquired system records and file bytes support the changeThe examined evidence corroborates the specified external effect.

Follow each tool call into the affected system

Keep the request and result together, including identifiers, arguments, errors, and retries. For a command, seek execution records and resulting files. For a browser action, distinguish viewing a page from submitting a form. For an API, compare the response with the destination service’s record of the operation.

The MCP tools specification, revision 2025-11-25, describes tool names, inputs, results, and error handling. These semantics help interpret a captured exchange. They do not establish which records a particular implementation retained or whether a requested external change became durable.

Keep parent agents and delegated work connected

An initiating agent may hand a task to another agent or process. Retain the parent-child identifiers, assigned scope, permissions, and returned result. Follow the delegated task to its own tool records and external effects. A parent’s final summary may omit failed attempts or intermediate changes.

Use a graph when tasks branch or overlap. A simple transcript can flatten relationships that matter: one agent requests a change, another makes it, and a third reports it. Missing links should remain visible rather than being filled with assumptions.

Build a timeline that another examiner can check

  • Link the initiating task to its tool requests using preserved identifiers.
  • Match those requests to process, browser, filesystem, or service records.
  • Compare object identifiers, file bytes, versions, and before-and-after state where available.
  • Retain raw timestamps. Verify their clock, timezone, units, and event meaning before normalizing them.
  • Reference the source supporting each relationship and record conflicting evidence or alternative explanations.

A generated summary and a log copied from the same runtime may share a source. Assess independence for the claim being tested; two copies do not automatically provide two independent confirmations.

Check what happened after the agent stopped

A cancelled conversation does not establish that all external work stopped. A service may already have accepted a job, a process may still be running, or an earlier change may remain. Examine completion, cancellation, retry, and rollback records where available. Extend the collection interval to cover relevant later activity.

Treat each retry as a separate event until records establish its relationship to earlier attempts. A repeated request might fail, update an existing object, or create another object. Report the behavior observed in the examined system.

Investigating a suspected prompt injection

Prompt injection can involve instructions supplied directly or embedded in external material such as a page or document. OWASP’s LLM01:2025 reference describes these direct and indirect forms. In an examination, preserve the suspected material, its version, and records showing whether it was retrieved or included in available context.

Compare the authorized task with the subsequent tool requests and system effects. Suspicious wording alone does not establish that it caused an action. Record the proposed link, the supporting evidence, and other explanations, including legitimate instructions or a configuration error.

Example: did the agent send the report?

Hypothetical educational example. An assistant says, “I sent the report.” Its tool record contains a send request, and the service response says “accepted.” A separately acquired service audit record shows the matching job was queued. No delivery record was acquired.

The supported finding is that the service accepted the matching request and queued it. Delivery to the recipient remains unresolved. The assistant’s statement records its claim; it does not close the gap between acceptance and delivery. A delivery event or recipient-side evidence could address a further question, while opening or reading the message would require its own support.

Report the action, its evidence, and its limits

For each consequential action, identify the task, acting agent, tool request, account context, observed external effect, and supporting sources. State whether it was proposed, attempted, reported, or corroborated. Include the collection interval, validation performed, missing records, and unresolved relationships.

Account attribution and human control require separate analysis. A credential can connect an operation to an account without identifying the person controlling it. Protect secret values in public reports while preserving the original evidence appropriately. Use the Synthetic Forensics Investigation Framework to organize the work and the confidence vocabulary to describe support.

Common questions about AI agent forensics

How is agent forensics different from chatbot forensics?

Agent forensics follows tool execution and effects in connected systems. Chatbot examination often begins with messages and application storage. A conversational assistant that uses tools can require both approaches; the capabilities and evidence matter more than the product label.

Is AI agent forensics the same as AI content detection?

AI content detection assesses whether an object may be synthetic under a detector’s evaluation conditions. Agent forensics reconstructs an action and its context. A detector score cannot establish which tool ran, which account it used, or what changed.

Are agent logs enough to prove an action happened?

Their value depends on what they record and how they were collected and validated. A plan, a submitted request, and a reported success support different claims. Important external effects should be checked against evidence from the affected system where available.

Does MCP provide a complete forensic audit trail?

The MCP tools specification defines exchanges between clients and tools. It does not guarantee a complete retained history for every implementation. Establish the actual logging, retention, collection coverage, and destination-side evidence for the system examined.

Can deleted or missing agent activity be recovered?

Recovery depends on storage, retention, synchronization, backups, access, and acquisition. Related records may survive in another system even when the visible task history is gone. No recovery is guaranteed, and a gap alone does not show deliberate deletion.

Can you reconstruct why an AI agent made a decision?

You may be able to reconstruct recorded inputs, instructions, tool results, and subsequent actions. Those records do not necessarily expose the model’s internal reasoning. Treat generated explanations as statements to examine and leave unsupported causal conclusions unresolved.

Continue the examination

Use Interaction Forensics for message relationships and context, AI Artifact Forensics for retained application records, and Provenance Forensics for origin and derivation claims. The hypothetical filesystem case follows a tool request to acquired file evidence.

Sources & further reading

Source verification checks the official publication and its scope. It is separate from independent technical review of this reference page.

  1. Model Context Protocol: Tools, specification 2025-11-25

    Tool descriptions, calls, and result semantics for the named protocol revision. A protocol definition does not guarantee persistent audit records.

    Model Context Protocol · Primary · Last verified 2026-10-09
  2. NIST SP 800-86: Guide to Integrating Forensic Techniques into Incident Response

    IT-oriented forensic process and sources; published 2006. It is not a complete investigative procedure or legal advice.

    NIST · Primary · Last verified 2026-10-09
  3. PROV-DM: The PROV Data Model

    A model for entities, activities, agents, and derivation relationships; a W3C Recommendation from 2013.

    W3C · Primary · Last verified 2026-10-09
  4. LLM01:2025 Prompt Injection

    Direct and indirect prompt-injection risk descriptions. This security reference does not validate the cause of a particular historical agent action.

    OWASP Gen AI Security Project · Primary · Last verified 2026-10-09

Canonical reference: https://syntheticforensics.org/agent-forensics/

Report a technical correction