What is an AI agent, and why does its security change?
Securing an AI agent means controlling what it does, not what it says, because an agent connects a language model to tools and its failure becomes an executed action, not an inaccurate sentence. It has to be managed like an operator holding clearances on the network, with six surfaces to control. In its news bulletin of April 13, 2026, CERT-FR sums up this change of architecture: autonomous assistants "do not merely answer questions" but can run system commands, drive the web browser, read and write local files, manage the calendar and send emails.
This direct access to tools changes the nature of the risk. When an ordinary conversational agent goes wrong, it displays a wrong paragraph that its reader discards without harm. When an autonomous agent goes wrong, it makes a change of state in the information system: a document sent outside, a table purged, a payment order issued. An inaccurate sentence can be ignored. An executed action stays.
CERT-FR draws a firm recommendation from this. According to the agency, autonomous personal assistants such as OpenClaw should not be installed on professional workstations, and their use should be prohibited until the software is stable and proven secure. The bulletin adds that these tools suffer from structural vulnerabilities tied to the sensitivity of language models to prompt injection. A national information-systems defense authority issues such a ban only when the operational exposure is established.
A software agent is managed as an operator holding clearances on the network, never as a text generator.
Like a human employee, an agent needs its own identity, a bounded set of privileges, a chain of managerial validation and a register of accountability. The six sections below look at each of these components.
For security governance, this distinction has a direct consequence. Evaluating a model looks at the statements it may generate. Auditing an agent looks at three entirely different determinants: the resources it can handle, the external content it takes in and the mechanism that can stop its action. Neither audit replaces the other.
1. What it reads: the attacker writes into your data
A language model does not draw a watertight line between passive data and executable instructions. Any text placed in its context window can bend its later decisions. This finding underlies the seminal study published by Kai Greshake and his coauthors in February 2023. Applications built around language models struggle structurally to separate instructions from data, which lets a third party bury hostile orders inside the very documents the agent retrieves during its task.
On June 16, 2025, Simon Willison summed up this exposure under the name "lethal trifecta". An agent becomes vulnerable to exfiltration as soon as it combines three properties: access to confidential data, intake of external content it does not control and the ability to send data out. Removing any one of the three cuts the exfiltration chain. Yet almost every agent deployed in a company combines all three by design from the day it goes live.
The technical anatomy of this attack, and the reasons no statistical filter is enough to contain it, are set out in indirect prompt injection. Offensive sequences split across several turns or several tools are covered in the study of multi-step attacks.
The same surface takes other forms: a poisoned agent memory that outlives the session, a knowledge base the attacker can write into, an agentic browser that reads the whole web. The line between this and a jailbreak comes down to one question, which jailbreak or prompt injection asks: is the damage a text or an action?
2. What it touches: tools are a supply chain
An agent interacts with its environment only through the tool connectors attached to it. The Model Context Protocol (MCP) has become the standard interface for these capabilities. Yet every connected MCP server brings in third-party executable code and third-party text metadata at the same time, since the model reads tool descriptions in its context just like system instructions.
The official MCP specification warns integrators explicitly in its section on tools: client applications must treat tool annotations as untrusted unless they come from a verified server. CERT-FR carries this warning over to work environments: third-party extensions can be loaded on the fly and, depending on the architecture, run "as trusted code, with the same privileges as the application".
The mechanisms of tool-description poisoning, silent modification of servers after validation and connector spoofing are analyzed in MCP and tool server security. The special case of agents built for software development, exposed to secret theft and repository compromise, is covered in code agents and the supply chain.
3. What leaves: data goes out through ordinary channels
When an agent exfiltrates internal information, the usual perimeter probes detect no protocol anomaly. The leak uses the legitimate functions of the application: loading a remote image, opening a hyperlink, calling a business API or sending an email. In its technical post of July 29, 2025, Microsoft documents the Markdown image vector. Once manipulated by an injection, the model inserts into its answer an image tag that points to the attacker's server and carries the stolen data in the URL, which the client browser resolves automatically when it renders the page.
The full inventory of these output channels, the documented incidents and the containment architectures appear in data exfiltration by an agent.
4. Who it is: rights that must be its own
An agent configured to operate "as the user" immediately inherits all the permissions tied to that user's session. CERT-FR puts at the top of its list of vulnerabilities the "excessive access rights given to AI agents across all of the user's office applications" and the direct handing of authentication secrets to the agent. The agency sets as an absolute rule that the catalog of actions and tools open to an agent must be restricted to the strict functional need.
This principle of least privilege cannot rest on a static initial configuration either. The same CERT-FR bulletin notes that an agent may try to extend its own capabilities by getting around the original authorization restrictions. The clearance must therefore be checked at every tool call, following the model detailed in agent identities and least privilege.
5. Who decides: human control needs a point of application
For high-risk AI systems, Article 14(4)(d) of the AI Act requires that the natural persons assigned to human oversight be able to "decide, in any particular situation, not to use the high-risk AI system", or to disregard, override or reverse its output. With an agent that has tools, however, by the time the operator reads the final report, the network call has already gone out. The only effective human intervention is the one that suspends the action before it runs.
CERT-FR states this obligation plainly: explicit human validation must be required before any system command is run or any action with a side effect is taken. OWASP puts the same barrier in its prompt injection defense reference under the heading "Require human approval for high-risk actions".
This requirement meets a symmetrical pitfall. Asking the user at every trivial step builds a habit of mechanical approval without reading. The engineering rules that preserve real vigilance are set out in human control and automation bias.
6. What remains: a record a third party can verify
Every post-incident review or regulatory check on an agent turns on the quality of the evidence kept. Article 12 of the AI Act requires automatic recording of events "over the lifetime of the system". But a log file that the server administrator can edit after the fact has no probative value before an external auditor or a court. A record becomes evidence only when a third party can check its integrity without relying on the word of whoever produced it.
The corresponding cryptographic mechanisms are detailed in tamper-proof logs and signed receipts, while the full reading of the applicable European obligations is the subject of the AI Act read with an agent in mind.
The day an agent is compromised, this record becomes the case file. Responding to an agent incident starts with it, before the notification clocks.
Why can't the defense live in the prompt?
The first reaction of many development teams is to put an instruction in the system prompt telling the model to ignore any instruction found in the documents it reads. CERT-FR rules this out as an illusion: defensive prompt writing helps lower the frequency of drift, but it can still be bypassed by adapted injection techniques.
The designers of the frontier models themselves reach the same conclusion. On November 24, 2025, Anthropic wrote: "No browser agent is immune to prompt injection". The lab stresses that an attack success rate brought down to 1%, despite the progress made, still represents a significant operational risk (A 1% attack success rate [...] still represents meaningful risk). The Microsoft Security Response Center takes the same approach, favoring deterministic controls, the only ones able to give formal guarantees of blocking.
A probabilistic barrier lowers the frequency of compromises. Only a deterministic rule enforced outside the model guarantees that a forbidden action will not go out.
This principle shapes the whole security architecture. The model proposes a call, and an independent control point decides whether it runs. Placed on the tooling bus, this component inspects the requested action and the content read upstream, and never depends on the model being compliant.
OWASP sorts these surfaces into ten categories, read one by one in the Top 10 for agentic applications.
The six-surface grid
| Surface | Control point | Reference page | What SentinelOS does |
|---|---|---|---|
| What it reads | Origin and reliability of the content the agent reads. | Indirect injection | Judges every action before it goes out, including when the order comes from a document the agent read. |
| What it touches | Tool catalog, server provenance and update management. | MCP and tools | Sits between your agents and everything they touch. |
| What leaves | Network and application channels that could exfiltrate data. | Exfiltration | Installed on your premises; nothing leaves your infrastructure by default. |
| Who it is | Scope of the privileges granted and separation from the user account. | Identities | Sits between your agents and everything they touch. |
| Who decides | Clearance of the human validator and the stage at which the action is intercepted. | Human control | Holds the actions that matter for a person; the decision is written in that person's name. |
| What remains | Independent verifiability of the record by an external auditor. | Logs and receipts | Issues an Ed25519-signed receipt for each decision, verifiable offline with the public key alone. |
Where to start, surface by surface
- They build a complete inventory of their agents. For each instance, they list the connected tools, the privileges held, the sources read and the output channels, so as to identify any agent that combines the lethal trifecta.
- They remove at least one factor of the trifecta. Wherever the business allows, an agent exposed to untrusted external content is denied a free output channel or access to confidential databases.
- They put every tool server under supply chain rules. Attested provenance, a pinned version and a systematic review of any change to code or description before deployment.
- They rank calls by how irreversible their effects are. Read, write, send, pay or delete: only the operations that change the state of the world call for human validation.
- They move the security policy outside the model. The rule that blocks a tool call runs in a deterministic layer independent of the LLM's reasoning.
- They build the chain of evidence from the day of deployment. Each decision is recorded with the context the agent read, on their own infrastructure. A listening mode, which observes and logs all flows without blocking, lets them calibrate the rules before turning them on.
SentinelOS judges every action of your agents before it leaves, holds the ones that matter for a person, and signs every decision. Installed on your premises.
Discover SentinelOSSources
- CERT-FR, « Vulnérabilités et risques des produits d'automatisation par IA agentique sur les postes de travail », CERTFR-2026-ACT-016, April 13, 2026. cert.cyber.gouv.fr
- Greshake, Abdelnabi, Mishra, Endres, Holz, Fritz, "Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection", arXiv:2302.12173, February 2023. arxiv.org
- Simon Willison, "The lethal trifecta for AI agents", June 16, 2025. simonwillison.net
- Model Context Protocol, specification 2025-06-18, "Tools". modelcontextprotocol.io
- Microsoft Security Response Center, "How Microsoft defends against indirect prompt injection attacks", July 29, 2025. microsoft.com
- OWASP GenAI, "LLM01: Prompt Injection". genai.owasp.org
- Anthropic, "Mitigating prompt injections in browser use", November 24, 2025. anthropic.com
- Regulation (EU) 2024/1689 (AI Act), Articles 12 and 14. eur-lex.europa.eu
Frequently asked questions
What is an AI agent?
An agent connects a language model to tools. It reads an inbox, opens a directory, changes a production database and sends messages. When it goes wrong, it makes a change of state in the information system, not just a wrong sentence.
Why is AI agent security different from language model security?
Evaluating a model looks at the statements it may generate. Auditing an agent looks at the resources it can handle, the external content it takes in and the mechanism that can stop its action. Neither audit replaces the other.
What are the six attack surfaces of an AI agent?
What it reads, what it touches, what leaves, who it is, who decides and what remains as a record. They cover the content an attacker writes into your data, tools seen as a supply chain, output channels, the agent's rights, human control before execution and a log that a third party can verify.
