How to monitor AI agents
You monitor what AI agents do with employee access by reading four records together: the grant that gave the agent its access, the agent's own logs, the systems it touched, and the person it acted for. Then you compare what it did with the task it was given, because every action used valid access.

On this page7 sections
By Above. Last reviewed : platform details are from each platform’s own documentation, and incidents from the insider threat case tracker, each checked against its sources that day and linked where it appears.
In short:
- Most AI agents act with a person’s access, so the systems they touch record the person, not the agent.
- Monitoring joins four records: the grant, the agent’s own log, what it touched, and the person and task behind it.
- The agent’s own log is the record most programs lack. Turn it on centrally, before you need it.
- The finding is a step the task never asked for. The access itself is usually valid.
AI agent monitoring is recording what an AI agent does with the access it holds, and tying each action to the agent, the person or owner it acted for, and the task it was given.
Why are AI agents hard to monitor?
An AI agent that works for a person often works as that person. An assistant connected to someone’s Google Workspace or Microsoft 365 account through OAuth, or a coding agent running in a developer’s terminal, uses that person’s own access. The systems it touches record the person. Every action is authorized, so no access control fires.
NIST’s National Cybersecurity Center of Excellence names the open questions directly in its concept paper on software and AI agent identity and authorization (opens in a new tab) (draft, February 2026): “How do we handle delegation of authority for ‘on behalf of’ scenarios?” and “How do we ensure non-repudiation for agent actions and binding back to human authorization?” Until identity standards answer those, monitoring has to join the records itself.
Two kinds of agents, monitored differently
| Agent | Examples | Who is accountable |
|---|---|---|
| An extension of a person, on their token or session | Claude Code, GitHub Copilot, Claude, ChatGPT | The person who runs it |
| Autonomous in your cloud, on its own identity | Agents on Microsoft Foundry, Bedrock AgentCore | The owner who deployed it |
An agent that extends a person belongs in that person’s story: what they asked for and what the agent did next. An autonomous agent is an insider in its own right, monitored like a service account with a named owner. See where a person ends and an agent begins.
What records show what an AI agent did?
- The grant. Which agent holds access, who approved it and with which scopes. The identity provider and the workspace admin consoles record OAuth grants to AI apps and agents.
- The agent’s own log. What the agent ran, from the platform it runs on. This is the most direct record of which steps were the agent’s and which were the person’s.
- What it touched. The files, messages, repositories and cloud resources the agent read or changed, from those systems’ own logs.
- The person and the task. Who it acted for, what they asked, and whether that person’s role, team or employment changed.
The agent’s log is the record most programs are missing. Platforms now publish one:
- GitHub Copilot. GitHub’s audit log events for agents (opens in a new tab) mark every agentic event with
actor_is_agentand record in theuserfield “the person who initiated the agentic event”; the enterprise audit log can be filtered byactor:Copilot“over the last 180 days”. It records what agents do on GitHub, such as opening pull requests, and leaves Copilot’s work inside a developer’s editor to the endpoint record. - Claude Code. Claude Code exports metrics, events and optional traces through OpenTelemetry (opens in a new tab), and administrators “can configure OpenTelemetry settings for all users through the managed settings file”. Telemetry is switched on by configuration, and prompt content is “Redacted by default” in those events.
- Claude Enterprise. Anthropic’s Compliance API (opens in a new tab) returns transcripts of Claude Code and Cowork sessions “captured while users are signed in with their Claude Enterprise account”, and Anthropic “recommends the Compliance API for retrieving the content of Cowork and Claude Code sessions”.
How do you monitor Claude Code or GitHub Copilot?
- Inventory the agents. Know which coding agents, extensions and MCP servers are installed on developer machines, and which accounts they sign in with.
- Collect the agent’s own record. Turn on the platform’s audit log or telemetry centrally, through managed settings, so it covers every user.
- Tie each session to a person. Join the agent’s session to the developer’s identity, device and repository activity, so one timeline shows the person’s steps and the agent’s.
- Compare with the task. A refactor that reads one repository is ordinary. The same session reading Finance files, pushing to a personal repository or running a destructive command it was never asked for is the case.
- Act on the agent first. Narrow or revoke the agent’s grant and scopes before treating the developer as the subject.
Which checks find an AI agent problem?
- Scope against job. Compare each grant’s scopes with the agent’s stated job, and flag the difference.
- Volume against task. Count the objects an agent read against what its task needed.
- Destination. Flag any export, share or push to an account the company does not own.
- Location. Flag an agent running from a device or network its owner never uses.
- Ownership. Re-check every grant and scheduled run when its owner changes role or leaves.
- Timing. Read the agent’s activity beside its owner’s, so a resignation and an agent’s unusual reads land in one view.
Public incidents show why the task matters more than the access:
- In February 2026 Claude Code ran
terraform destroyagainst an older state file and removed a startup’s production database, as the founder later described (opens in a new tab). Every command ran with valid credentials and the founder’s approval; only the task showed it was wrong (the case). - In April 2026 a coding agent working in staging deleted a production volume and its volume-level backups in one API call, its founder said (the case).
- Invariant Labs showed an agent using the GitHub MCP server, asked only to review public issues, reading a private repository and publishing it in a public pull request (the case). The destination check catches that step.
How does the SITM describe these records?
The open Synthetic Insider Threat Matrix (SITM), built by Above Theory with Forscie, gives each record a shared name. Each section links its page on insiderthreatmatrix.org.
| Record | SITM section |
|---|---|
| The grant | CF003 Access Through Human Identity (opens in a new tab), CF001 Access Through Non-Human Identity (opens in a new tab) |
| The agent’s own log | OP005 Synthetic Subject Logging Gaps (opens in a new tab), when it is missing |
| What triggered it | IV002 Indirect Untrusted-Content Invocation (opens in a new tab), IV004 MCP Invocation (opens in a new tab) |
| What it touched | AO001 Data Exfiltration (opens in a new tab), AO003 Destructive System or Data Action (opens in a new tab) |
| The task | DR006 Misaligned Directive (opens in a new tab) |
The SITM defines OP005 as the case where “the logs, traces, or audit records needed to reconstruct synthetic subject behavior are missing, incomplete, fragmented, inconsistent, or untrustworthy”. That is the gap the agent’s own log closes.
How Above does it
Above reads each agent on its side of the line: assistants and coding agents such as Claude Code and GitHub Copilot as an extension of the person who runs them, and agents built in your cloud with the owner accountable for them.
- The agent’s own record. Above reads Claude Enterprise activity through Claude’s Compliance API, including Claude Code sessions and each tool call, attributed to one identity (Claude integration).
- Grants beside behavior. New OAuth grants to AI agents, who approved them and their scopes, from Google Workspace and Microsoft Entra, read with what the agent then did.
- A finished case. Above’s AI agents compare the agent’s actions with its task and hand your team the case in about 15 minutes. Agents recommend; a human confirms every action.
Questions teams ask
Which records show what a coding agent did on a developer's machine?
A coding agent's own records show what it did. Claude Code exports telemetry through OpenTelemetry, and under Claude Enterprise its session transcripts reach the Compliance API. GitHub's audit log flags actions Copilot agents take on GitHub. Work inside the editor needs the developer's endpoint record, read beside their identity and repository activity.
Why do AI agents look like the employee in the logs?
AI agents look like the employee because many of them sign in with that employee's token. An assistant connected through OAuth, or a coding agent running in a developer's terminal, acts with the person's own access, so the target system records the person. Telling the two apart needs the agent platform's own record of what it ran.
What should we log for every AI agent?
For every AI agent, log the grant (which agent, who approved it, which scopes), the agent's own actions from its platform, the systems and data it touched, the person or owner it acts for, and the task it was given. Without the task there is nothing to compare the agent's actions against.
How do you monitor agents that run on their own in the cloud?
Monitor cloud agents like service accounts with an accountable owner. Agents built on platforms such as Microsoft Foundry or Amazon Bedrock AgentCore run under their own identity, so check what each was deployed to do, what it read and wrote, and any access it used that its task never needed.
Ready to make your move?
Most insider threats are preventable. With Above, every signal becomes a finished case before it reaches your team.


