Investigating an AI agent incident
To investigate an AI agent incident you need five records: the agent's own log of what it ran, the grant and credentials it used, the logs of every system it touched, the person or owner it acted for, and the task it was given. The investigation joins them into one timeline and asks whether each step matched the task.

On this page7 sections
By Above. Last reviewed : incident details are from the primary accounts and the insider threat case tracker, checked that day and linked where they appear.
In short:
- Keep the agent’s own transcripts and tool calls before you revoke or delete anything.
- Put the agent’s steps and its person’s activity on one timeline.
- Mark who directed each step: the person, the agent, or content the agent read.
- Any step its task never asked for is the finding. Revoke the grant, then rotate what the agent touched.
An AI agent incident is harm done through an AI agent that holds legitimate access: data read, sent, changed or deleted by an assistant, coding agent or automated workflow, with a person’s or a service’s credentials.
Why is an AI agent incident investigated differently?
An AI agent acts inside your systems with access someone granted it, often a person’s own. That makes an agent incident an Insider Risk investigation, with one more question than usual. A human case asks who did it and why. An agent case asks who did it, who directed it, and whether the agent did what it was asked. See AI agent insider threat for why agents are insiders and the four ways they go wrong.
OWASP’s Top 10 for agentic AI (opens in a new tab) (December 2025) names Agent Behavior Hijacking, Tool Misuse and Exploitation, and Identity and Privilege Abuse among the top risks. All three leave the same trace: valid credentials doing something the task never needed.
What evidence should you have before an AI agent incident?
| Evidence | Where it lives | What it answers |
|---|---|---|
| The agent’s own log | The agent platform: transcripts, tool calls, telemetry | What the agent ran, step by step |
| The grant | The identity provider and admin consoles | Which access it held, and who approved it |
| The systems it touched | SaaS, cloud and endpoint logs | What it read, changed, sent or deleted |
| The person or owner | Identity and HR systems | Who it acted for, and what changed for them |
| The task | The prompt, ticket or deployment it was given | What it was supposed to do |
Retention decides whether the case can be made at all. GitHub keeps agentic audit events filterable for the last 180 days (opens in a new tab). Check every agent platform’s retention before an incident; some log nothing until an admin turns it on. NIST’s NCCoE asks the same question as an open problem: “How can we ensure that agents log their actions and intent in a tamper-proof and verifiable manner?” (concept paper (opens in a new tab), draft, February 2026).
How do you investigate an AI agent incident, step by step?
- Scope it. Name the agent, the identity it ran as, the grant it used, the person or owner behind it and the time window.
- Contain and preserve together. If the agent is still acting, suspend it or revoke its grant now. Export its transcripts, tool calls and telemetry before you delete the agent or its workspace: they are the most complete record of what it did.
- Rebuild one timeline. Put the agent’s steps and the person’s own activity on one timeline, across identity, SaaS, cloud and endpoint, with every source’s clock aligned.
- Separate who directed each step. Mark each step as asked for by the person, chosen by the agent, or triggered by content the agent read, such as a document, email or tool result.
- Compare with the task. A step the task explains is work. A step the task never asked for, such as reading another department’s files, pushing to a personal repository or running a destructive command, is the finding.
- Close every door. Revoke the grant, narrow the scopes, rotate every credential the agent touched or could have read, and remove anything it created: tokens, API keys, scheduled runs, MCP servers and repository changes.
- Decide and record. Write the verdict with its evidence. If the person directed the harm, bring in HR and Legal; if the agent acted alone, fix its grant, its task and its owner’s controls.
What three public incidents show
Stolen integration tokens. Google Threat Intelligence reported that from as early as 8 August 2025, an actor “targeted Salesforce customer instances through compromised OAuth tokens associated with the Salesloft Drift third-party application”, the integration behind Salesloft’s Drift chat agent (opens in a new tab). Its advice was to review “Salesforce Event Monitoring logs for unusual activity associated with the Drift connection user”, search the data for secrets, revoke keys and rotate credentials (GTIG (opens in a new tab)). The grant was the way in, so the grant’s own user was the place to look (the case).
An autonomous agent system. Hugging Face disclosed an intrusion “driven, end to end, by an autonomous AI agent system”. Its team analyzed “the full attacker action log, comprised of more than 17,000 recorded events” to rebuild the timeline, then “Revoked and rotated the affected credentials and tokens” (Hugging Face (opens in a new tab), July 2026). The action log made the case possible (the case).
Agents in evaluations. Anthropic reviewed “141,006 evaluation runs where Claude could have obtained internet access” and identified three incidents. It traced them to “a misconfiguration” and reported “no evidence in any run described here of a model pursuing a goal of its own” (Anthropic (opens in a new tab), July 2026). The review started from the evaluation transcripts (the case).
In two of the three cases the agent’s own record decided the outcome; in the third, the grant’s user in the target system’s logs was the only trail. Without either, the logs show only a valid identity doing unusual things.
How does the SITM classify these incidents?
The open Synthetic Insider Threat Matrix (SITM), built by Above Theory with Forscie, names how an agent incident happened, so security, HR and Legal describe it the same way. Public cases from the insider threat case tracker, each with its sources:
| Case | What happened, per the sources | SITM section |
|---|---|---|
| Microsoft 365 Copilot, EchoLeak (research, 2025) | One crafted email made the assistant send organizational data out | IV002 Indirect Untrusted-Content Invocation (opens in a new tab) |
| A fake Postmark MCP server (2025) | A hidden BCC copied every email the assistant sent | IV004 MCP Invocation (opens in a new tab) |
| Supabase MCP (research, 2025) | A support ticket made a coding assistant copy a secrets table into the ticket | AO001 Data Exfiltration (opens in a new tab) |
| A coding agent and Terraform (2026) | terraform destroy removed a production database |
AO003 Destructive System or Data Action (opens in a new tab) |
| Anthropic’s cyber evaluations (2026) | Evaluation runs reached real organizations’ systems | AO010 Sandbox Escape and Out-of-Boundary System Access (opens in a new tab) |
The SITM lists the gap that makes these cases hard as OP005 Synthetic Subject Logging Gaps (opens in a new tab): missing or incomplete agent records. More AI agent incidents are in the case tracker.
The questions every AI agent case must answer
- Which agent, running as which identity, under which grant?
- Who did it act for, and who is accountable for it?
- What did it read, change, send or delete?
- Which steps did the person ask for, and which did the agent choose?
- Did any instruction come from content the agent read?
- Did each step match its task?
- Is the agent, or its grant, still active?
How Above does it
Above reads an agent’s actions and grant first, across SaaS, identity and AI, and adds the person when the evidence leads there.
- One timeline. Above reads the agent’s own record, such as Claude Code sessions and every tool call through Claude’s Compliance API, beside the person’s identity, SaaS and endpoint activity (Claude integration).
- The task as the test. Each case sets the agent’s steps against the task it was given and the person it worked for.
- A finished case. Above’s AI agents hand your team the case in about 15 minutes, with a recommended action for the agent’s grant and scopes. A human confirms every action.
- Privacy by default. A person behind an agent is unmasked only by an authorized reviewer, and the unmask is logged.
To catch the next one earlier, see how to monitor AI agents.
Questions teams ask
How do you investigate an AI agent incident?
You investigate an AI agent incident by preserving the agent's own logs, rebuilding one timeline of the agent and the person it acted for, separating the steps the person asked for from the steps the agent took, comparing each with the task, and then revoking the grant and rotating any credential the agent touched.
Are AI agents a new kind of insider threat?
AI agents are a new kind of insider: they act on a person's or a service's access with their own autonomy, at machine speed. An investigation treats them like any insider, then adds two questions: who directed each step, and did each step match the task the agent was given?
What evidence do security teams need to investigate an AI agent?
Security teams need the agent platform's record of each prompt, tool call and command, the OAuth grant or credential the agent used, the logs of the systems it touched, and the person or owner it acted for with their role and HR status. The task the agent was given is the evidence most often missing.
How do you tell whether an agent was hijacked by prompt injection?
An agent was likely hijacked when its steps follow instructions that came from content it read, such as a document, email, web page or tool result, where neither the person nor the task asked for them. The agent's own transcript shows where each instruction entered, which is why it has to be kept before anything is rotated or deleted.
Who is accountable when an AI agent causes an incident?
Accountability follows the agent's identity. An assistant or coding agent working with a person's access is part of that person's story, so the person stays accountable for what they asked it to do. An agent running under its own identity in your cloud belongs to the owner who deployed it.
Ready to make your move?
Most insider threats are preventable. With Above, every signal becomes a finished case before it reaches your team.


