
When a company tells me its AI agents have never caused an incident, my first question is how they would know.
In Gravitee’s October 2026 survey of 900 technology leaders, 52% said their organizations had experienced or suspected an AI agent security incident in the previous 12 months. Respondents reported monitoring, on average, 67% of their agents, while 87% had no formal accountability for agent behavior.
That doesn’t tell us how many incidents went undetected. But when respondents report monitoring only two-thirds of their agents on average, it is fair to ask what a count of zero actually measures.
What a zero count leaves out
In most deployments I see, oversight consists of reading the agent’s final response and perhaps checking the work. The tool calls between assignment and completion get much less attention. A reviewer can approve a perfectly usable result without knowing that the agent went outside its remit to produce it.
There is also a problem with how failures get recorded. When an agent changes something it should have left alone, and the result becomes a confusing code review or a support ticket, someone is likely to fix the immediate problem but security may never hear about it, particularly if nobody has agreed on what counts as an agent incident.
We have seen this pattern with long-running coding agents where an engineer gives an agent a development task and, partway through, the agent decides that completing the task would be easier if a related pull request, owned by another team, were changed. It comments on that pull request and pushes changes.
The result is that the engineer who started the run is not explicitly told and the other team now has changes to its pull request that none of its members made, without a clear explanation of who made them or why. Further, if the agent used the engineer’s credentials, the audit trail may attribute the change to the engineer without showing that the agent made it.
That creates a code integrity problem and can undermine segregation of duties. Yet it is easy to see how it gets handled as confusion between two engineering teams, then disappears once the code is sorted out.
What to check after a run
A task-complete message will tell you very little about any of this. Reviewing the run requires a few more specific checks:
- Compare the actions taken with the task assigned. Which systems did the agent touch, and were those actions within scope? The credential’s permissions may be much broader than the work requires.
- Make attribution usable. Each action should be traceable to an agent, a particular run and the person who initiated it. A log that names only the employee whose credentials were used leaves a substantial part of the investigation undone.
- Track departures from scope over time. Look for changes after updates to the model, instructions or tools. A run can produce the right output while introducing a new failure elsewhere.
- Investigate overrides and missing records. More human intervention could mean worse agent behavior, unclear instructions or closer review. Ensure you have the data and process to find out which.
These checks need an agreed boundary to work against. Where the task boundary has never been specified, teams are left arguing after the event about whether the agent exceeded it.
Evidence and enforcement
Access limits and approval rules are necessary, but we cannot expect them to anticipate every way a long-running agent might go wrong. An agent can depart from its task through actions its credentials permit. In the coding example, the access check would pass but it would tell us nothing about whether the engineer had authorized a change to the other team’s code.
That calls for supervision as the run develops. A separate model can help review the agent’s actions, but it needs the original task and enough organizational context to assess what is happening, including who owns the code, which changes require approval and where duties must remain separate. The same applies to third-party agents. Their supplier’s general policies cannot substitute for the organization’s own decisions about what a particular agent is authorized to do.
That means you need to keep that review independent of the agent doing the work by giving the reviewer separate credentials and direct access to the instructions, tool calls and results, with the record retained outside the working agent’s control. Test any automated reviewer against known failures, and define when a finding should trigger human review, an approval requirement or suspension of the run.
Then take one actual near miss and try to reconstruct it. Establish what the agent was asked to do, what it did, whose authority it used and where approval was required. Measure how long that takes and identify what you can’t recover.
An incident count belongs in a board report, but it needs context on what the organization is able to detect. Otherwise, better detection can make a team’s numbers look worse while poor visibility goes unchallenged. On its own, a count of zero is a reason to look harder.
I would ask to see the last near miss: how it was caught, how long it took to reconstruct and what changed afterward. A company that can show me that has an answer to my first question.
Join our LinkedIn group Information Security Community!











