
An agent that says something foolish is an embarrassment. An agent that runs a delete against production is an incident. The control belongs at the tool call.
Most writing about agentic AI security is about the agents a company ships: the assistant inside the product, the chatbot on the website, the MCP server exposed to customers. Meanwhile, a second population of agents is already running inside the same company with far more access and almost no controls. They are the coding agents your developers run. They sit on a laptop with a checkout of your source code, a shell, cloud credentials, and a connection to your production systems, and they take hundreds of actions a day.
For those agents the security question is not what the model says. It is what the model is allowed to do. An agent that writes something foolish in a reply is an embarrassment. An agent that runs a delete against a production database is an incident. This article is about where that line is actually enforced: at the tool call, in the moment between the agent deciding to act and the action happening.
What agentic AI security has to stop
A language model on its own can only produce text. An agent is a model plus tools, and the tools are what turn a bad instruction into a real consequence. Every meaningful risk in an agentic system passes through a tool call: a shell command, a database query, a file write, an HTTP request, an email, a git push, a call to an MCP server.
That changes what you are defending. Traditional application security asks which users may reach which endpoints. Agentic AI security has to ask a harder question: when a non-deterministic system holding your credentials decides to act, what is it permitted to do, and what stops it when the decision is wrong. The answer cannot be "we told it not to," because the instruction and the attack arrive through the same channel.
Why prompt level defenses keep failing
The attack that makes this urgent is prompt injection. The OWASP Top 10 for LLM Applications lists it first, as LLM01 in its 2025 edition, and defines it as a vulnerability that "occurs when user prompts alter the LLM's behavior or output in unintended ways." It separates two forms. Direct injection is the user manipulating the model themselves. Indirect injection "occurs when an LLM accepts input from external sources, such as websites or files," which is the dangerous one for a coding agent, because a coding agent reads external content constantly: dependency README files, issue threads, web pages, API responses, and the descriptions advertised by the tools and MCP servers it connects to.
The instinct is to filter the input. The evidence says filtering does not hold. In its analysis of agent deployments, Sophos lists input filtering, instruction hierarchy, and fine tuned classifiers as the candidate solutions to prompt injection and then states the problem plainly: "adaptive attacks consistently bypass defenses." It cites research by Nasr and colleagues in which twelve proposed defenses were tested and human red teamers reached a one hundred percent bypass rate.
Telling the model to behave fares no better. In an internal red team benchmark of sixty prompts described by Microsoft in April 2026, relying on safety instructions in the prompt alone produced a policy violation rate of 26.67 percent. Roughly one time in four, the instruction did not survive contact with the attack.
Read those two findings together and the design conclusion is unavoidable. A control that lives inside the model, in the same text channel as the attack, will eventually be talked out of it. A control that lives outside the model, in code, at the point where an action executes, will not be. Sophos puts the same conclusion in operational terms: assume the model will be compromised, and contain the blast radius with "controls that operate outside the model."
The lethal trifecta, and why coding agents have all three
There is a useful shorthand for when an agent becomes dangerous, credited to Simon Willison and quoted by Sophos: the lethal trifecta, which is reached when agents "can access private data, process untrusted content, and communicate externally." Any two of those is usually survivable. All three means an attacker who lands an injection can find something valuable and send it somewhere.
Meta's related rule of thumb, the Agents Rule of Two, says an agent should satisfy at most two of three properties: processing untrusted inputs, accessing sensitive systems, and changing state externally.
Now apply that to a coding agent. It reads your private source code and the secrets in your environment. It processes untrusted content every time it pulls a dependency, reads an issue, or fetches a page. And it communicates externally by design, through the network, through package installs, through pushes to a remote. A coding agent does not satisfy two of the three properties. It satisfies all three, on purpose, because that is the job.
This is why the advice to design the trifecta away does not survive in a developer environment. You cannot take the source code away from the agent that edits the source code. The practical move is to leave the capability in place and constrain it where it is exercised, one tool call at a time.
Blocking risky tool calls before they run
The industry is converging on the same enforcement point. Snyk describes the guardrails architecture as two interceptions: "Intercept tool calls before they execute, so we can inspect the inputs," and "Intercept tool results before they reach the LLM," so that injected payloads in a tool's output can be stripped before the model ever reads them. Microsoft's Agent Governance Toolkit, an open source project currently in public preview, takes the same position: "It evaluates each tool call against policy before execution."
In practice a policy at that boundary is a list of what each agent may reach, written at the level of the tool and its target rather than the level of the prompt. Reading from a system is usually fine while deleting from it is not. A query against a development database is routine while the same query against production is not. Opening a pull request is safe because a human reviews it, while sending mail from a company account or recursively removing a storage bucket has no reason to happen inside an autonomous coding session at all.
Two details decide whether such a policy survives in the real world. The first is that a block must be an answer, not a silence: the agent should be told why the call was refused so it can take a different route or stop, rather than retrying the same action in a loop. The second is that a blocked attempt is a security event and must be recorded. The attempts that were stopped are the clearest signal you have about which agents, which tools, and which developers are drifting toward trouble.
What blocking alone cannot do
An honest account of this control has to include its limits, and the clearest statement of the main one comes from the people building it. Of its own governance toolkit, Microsoft writes that "it does not yet correlate sequences of individually-allowed calls that may form a malicious workflow," and that workflow level policies evaluating tool call sequences "are not yet available."
That is the real gap in per call enforcement. Read a config file, allowed. Read an environment variable, allowed. Make an outbound request, allowed. Each call is individually reasonable and the sequence is an exfiltration. A rule engine looking at one call at a time cannot see it, because the harm is in the order, not in any single step.
Sophos names a second limit, and it applies directly to coding agents: "Sandboxing also offers no protection against abuse of the tools and credentials the agent actually needs." You can isolate the process, but the agent still legitimately holds the repository and the database credential, and an attacker who steers it is using exactly the access you granted.
Neither limit argues against blocking. Both argue that blocking has to sit on top of a complete record. If every prompt, command, and tool call is recorded and attributed, the sequence that no single rule caught is reconstructable afterwards, the gap becomes a new rule, and you can prove what the agent did and did not do. This is why oversight has an order to it: you observe first, because you cannot govern what you never recorded, and you cannot investigate a sequence you did not keep. We made the same argument from the other direction in our piece on AI observability for coding agents.
A policy that survives contact with developers
A policy that blocks too much gets switched off within a week, and a policy nobody wrote gets discovered during an incident. The workable path is narrow and boring.
Start in observation only. Record every tool call for a couple of weeks before blocking anything, and write your rules from what the agents actually did rather than from what you imagine they do. Then block the small set of actions that have no legitimate place in an autonomous session, scope the rest by environment, and tighten from there.
Three further details matter. Scope rules per team and per person, because a platform engineer and a contractor should not carry the same permissions. Mask secrets before they are stored, so your security recording does not quietly become your largest credential leak. And flag it when recording is switched off on a machine, because a control that can be silently disabled is not a control.
About Tericsoft and Super Eye
Tericsoft is an AI first, outcome driven technology partner, and Super Eye is our oversight layer for the AI coding agents a company's own developers run. It records every prompt and command from agents including Claude Code, Codex, and Cursor, and it blocks risky tool calls before they run.
The policy model is the one described above. You set allow or block rules for every tool an agent can reach, including every MCP server it has listed, with the example the product itself uses being to permit reading from Salesforce but never deleting from it. Rules are scoped per company, team, or person. A blocked call is stopped before it executes, the agent is told why, and the attempt is logged. Secrets are hidden as they are typed, on the laptop, before anything is stored, and if recording is switched off on a machine that laptop is flagged in the admin panel straight away. The audit trail is exportable.
It runs on your own server, inside your network, and the records go to that server rather than to us. The capability is packaged as Observe, Govern, and Prove, in that order, for the reason this article gives: the record comes first, control sits on top of it, and evidence comes out of both.
We run it on our own fleet, which is also where our numbers come from rather than from a customer. In one recent week it blocked thirty seven actions across our agents, every one of them logged, with recursive storage deletes and production database queries the most frequently stopped.
Controlling what an AI agent is allowed to do, not just what it says, by enforcing policy on each tool call before it executes.
Because adaptive attacks bypass them. A defense living in the same channel as the attack can be talked around, so control belongs outside.
An agent that can access private data, process untrusted content, and communicate externally. Coding agents have all three by design.
A policy layer intercepts each call at the tool boundary and checks it against allow and block rules for that tool and target.
No. Per call rules cannot see a harmful sequence of individually allowed calls, so a complete attributed recording must sit underneath.


