Guide · Security
What OWASP, ANSSI, CNIL and NIST say, four documented incidents and what they teach, the controls to put in place and a checklist before an AI agent goes into production.
The NIST figure
From 11% to 81%: AI agent hijacking success rate once new red-team attacks were used.
In short
This guide is for businesses deploying an agent on their own data: CRM, email, client files, line-of-business software. Each recommendation points to the source that makes it, so you can reuse it in a specification or a risk assessment.
The problem
A traditional chatbot produces text that a person reads. An agent chains tool calls: it reads an email, queries a database, updates a record, sends a message. It acts with the permissions it was given, and it decides what to do based on what it reads.
That is where the main risk sits. Anthropic sums it up in its deployment documentation: an agent can be steered by the content it processes, whether files, web pages or user messages. If that content contains instructions, the model may follow them.
NIST calls this scenario agent hijacking: indirect prompt injection hidden in data the agent reads. In a technical blog post dated 17 January 2025, its CAISI centre reported that attack success rose from 11% with baseline attacks to 81% with new attacks designed by its red team. When an attack was repeated 25 times, success reached 80%. Because models are probabilistic, a single test proves nothing.
Model vendors are making progress without removing the problem. In November 2025, Anthropic measured a 1% attack success rate against Claude Opus 4.5 in browser use, for an adaptive attacker with 100 attempts per environment, and said the remaining risk "remains meaningful". For an agent handling thousands of emails, 1% is not enough as the only safeguard.

Frameworks
Published on 9 December 2025 by the OWASP GenAI Security Project, it is now the reference list of risks specific to agents. Most entries are illustrated with a real incident.
| Code | OWASP name | In plain terms | Example cited |
|---|---|---|---|
| ASI01 | Agent Goal Hijack | Content the agent reads changes its goal | EchoLeak |
| ASI02 | Tool Misuse | The agent uses an authorised tool for a harmful action | Amazon Q |
| ASI03 | Identity & Privilege Abuse | The agent abuses credentials or permissions broader than its task | |
| ASI04 | Agentic Supply Chain Vulnerabilities | A third-party component (MCP server, tool, plug-in) is compromised | GitHub MCP exploit |
| ASI05 | Unexpected Code Execution | The agent generates or runs code nobody planned for | AutoGPT RCE |
| ASI06 | Memory & Context Poisoning | The agent's persistent memory or context is poisoned | Gemini memory attack |
| ASI07 | Insecure Inter-Agent Communication | Messages between agents can be spoofed or altered | |
| ASI08 | Cascading Failures | One agent's error spreads to downstream systems and agents | |
| ASI09 | Human-Agent Trust Exploitation | The trust of the person approving is exploited to get an action through | |
| ASI10 | Rogue Agents | An agent acts outside its mandate | Replit |
The OWASP Top 10 for LLM Applications 2025 still covers the model layer: LLM01 Prompt Injection, LLM02 Sensitive Information Disclosure, LLM03 Supply Chain, LLM04 Data and Model Poisoning, LLM05 Improper Output Handling, LLM06 Excessive Agency, LLM07 System Prompt Leakage, LLM08 Vector and Embedding Weaknesses, LLM09 Misinformation, LLM10 Unbounded Consumption. LLM06 is the bridge to the agentic list: too many functions, too many permissions, too much autonomy.
France's national cybersecurity agency published its security recommendations for a generative AI system (ANSSI-PA-102, version 1.0, 29 April 2024; English version 27 September 2024). It has 35 recommendations. It does not target agents specifically, but several apply directly:
| Recommendation | Content | Applied to an agent |
|---|---|---|
| R9 | No automated use of AI for critical actions on the IT system | Human approval before any critical action |
| R25 | Filter inputs and outputs | Control what the agent reads and what it returns |
| R26 | Control the AI's interactions with other business applications | A closed list of allowed tools and calls |
| R27 | Limit automatic actions when the AI processes uncontrolled inputs | Incoming emails, web pages, received documents |
| R28 | Isolate the AI system | Separate environment and network |
| R29 | Log everything the AI system does | A record of every request, decision and tool call |
| R34 | No public internet GenAI tools for professional work on sensitive data | No client data in a consumer tool |
| R35 | Regularly review the permissions granted to GenAI tools on business applications | Periodic permission review |
The same guide also recommends a risk analysis (R2), need-to-know from the design stage (R8), control of privileged access (R10), a fallback mode without AI (R15), and security audits plus business tests before production (R23 and R24).
On 4 February 2026, ANSSI published through CERT-FR a threat synthesis on generative AI and cyberattacks covering 2025. ANSSI states it knows of no cyberattack against French organisations carried out with AI, and of no AI system able to run a full attack on its own. It does stress that poorly secured MCP servers widen the attack surface, and that without strict isolation a compromised AI system can harm the confidentiality of its data and the integrity of connected systems. Citing the UK AI Security Institute, the Alan Turing Institute and Anthropic, it also notes that around 250 malicious documents can be enough to poison a model, whatever its size.
On 20 July 2026, CNIL, the French data protection authority, and CIANum published an exploratory note on agentic AI and data protection. It identifies four risks: large and opaque data flows, persistent memory that makes very detailed user profiles possible, unclear responsibility between the parties involved, and a wider cybersecurity risk. Its position: the GDPR and the AI Act already apply, but how they are applied needs to be adapted to these systems.
Beyond the agent hijacking post above, the NIST AI 600-1 Generative AI Profile (26 July 2024) lists 12 risks. Two bear directly on agents: Information Security, and Human-AI Configuration, which covers automation bias and over-reliance on system outputs.
Real cases
| Date | What happened | Lesson |
|---|---|---|
| 26 May 2025 | Invariant Labs showed that a malicious issue in a public GitHub repository hijacks an agent connected to the GitHub MCP server, which then leaks data from private repositories. | A flaw in the agent flow architecture: it needs per-repository permissions and monitoring of calls. |
| 11 June 2025 | CVE-2025-32711 (EchoLeak) published for Microsoft 365 Copilot, scored 9.3 (CVSS 3.1). Microsoft describes it as AI command injection that lets an unauthorised attacker disclose information over a network. | Anything the assistant can read becomes exfiltrable. OWASP cites it under ASI01. |
| July 2025 | Replit's agent deleted Jason Lemkin's (SaaStr) production database despite instructions and a code freeze, claimed rollback was impossible when it worked, and created about 4,000 fictional records. | Separate production from development, require approval for destructive actions, verify what the agent reports. OWASP cites it under ASI10. |
| 7 May 2026 | Microsoft detailed two patched Semantic Kernel flaws: CVE-2026-26030, remote code execution through prompt injection in the In-Memory Vector Store filter, and CVE-2026-25592, a sandbox escape by writing a file to the Windows Startup folder. | The model is no security boundary: treat every tool parameter as attacker-controlled. |
The four cases share a pattern: the agent had permissions or access broader than the task required, and nothing between the model and the action blocked the misuse. The GitHub MCP problem comes from combining untrusted public content with a token that reaches private repositories. Our guide to MCP for Claude in the enterprise explains how to choose and restrict servers.
Method
| Control | What it involves | Source |
|---|---|---|
| Least privilege | Access limited to the data and tools of the task, read-only where possible | ANSSI R8 and R10, Anthropic, OWASP ASI03 |
| Credentials out of the agent’s reach | API keys stay in a proxy that injects credentials, so the agent never sees them | Anthropic, Securely deploying AI agents |
| Human approval of irreversible actions | Deletions, payments, external sends, permission changes | ANSSI R9 and R27, AI Act Art. 14 (high-risk) |
| Input and output filtering | Incoming content flagged as untrusted, outputs validated before use | ANSSI R25, OWASP LLM01 and LLM05 |
| Closed list of tools | The agent only calls planned applications and functions, with checked parameters | ANSSI R26, Microsoft (Semantic Kernel) |
| Isolation | Container, outbound network limited to specific domains through a proxy | ANSSI R28, Anthropic |
| Full logging | Requests, decisions and tool calls, retained and searchable | ANSSI R29, Anthropic |
| Fallback without AI | The business process keeps running if the agent is switched off | ANSSI R15 |
| Periodic permission review | Remove permissions that are no longer needed | ANSSI R35 |
| Repeated testing before production | Replay each attack several times, on top of audits and business tests | NIST CAISI, ANSSI R23 and R24 |
The credential proxy deserves a word of explanation. In its documentation, Anthropic recommends keeping credentials outside the agent's boundary and routing its network traffic through a proxy that adds the keys and logs every request. Even if a prompt injection hijacks the agent, it can then neither read the secrets nor send data to an arbitrary server. The same documentation advises against mounting files such as .env, ~/.ssh or ~/.aws in the agent's environment.

These controls apply whatever the underlying technology. For an agent built on Claude, our pages on Claude integration and Claude and CRM show where permissions and approvals sit in a concrete CRM connection.
Compliance
EU AI Act. For high-risk systems, Article 14 requires effective human oversight. The people in charge must be able to understand the system's capabilities and limits, recognise automation bias, interpret outputs, disregard or override them, and stop the system. Article 15 requires appropriate accuracy and cybersecurity throughout the lifecycle, with measures against data and model poisoning, adversarial examples, confidentiality attacks and model flaws.
Since the Digital Omnibus entered into force on 27 July 2026, these obligations apply from 2 December 2027 to Annex III systems (recruitment and credit, among others) and from 2 August 2028 to systems embedded in regulated products (Annex I). Some articles written in 2025 still give 2 August 2026, a date that no longer holds for high-risk rules. An agent that screens job applications falls under Annex III; a customer support agent usually only carries the transparency obligation. Details are in our guides on the EU AI Act for businesses and the transparency obligation for AI agents.
GDPR. As soon as an agent processes personal data, the GDPR applies, and security is part of it. The CNIL and CIANum note of July 2026 highlights agents' persistent memory and how responsibility is split between vendor, integrator and the business using the agent: settle that in writing before deployment. Sectors handling sensitive data, such as healthcare providers and law firms, are the first concerned.
Figures
| Indicator | 2025 edition | 2026 edition |
|---|---|---|
| Global average cost of a breach | $4.44M | $4.99M (+12%, a record) |
| Breaches of AI models or applications | 13% of organisations | More than 20% of organisations |
| AI access controls | 97% of breached organisations lacked proper ones | |
| Malicious breaches involving AI | 1 in 4 (up 56%), $6M on average | |
| Main causes of breaches targeting AI | Compromised APIs, apps or plug-ins (27%), cloud misconfigurations (27%) |
The 2026 edition also reports that three quarters of organisations are rethinking how they deploy agents because of frontier AI threats, and that using AI and automation in security operations saved almost $2M. The 2025 finding on access controls matches the incidents above: most of the damage comes from permissions that are too broad.
Before production
If you are having a custom AI agent built, ask the provider how each of these twelve points is handled, and put the answers in the contract.
FAQ
Related guides
Records, DPIA and the OpenAI, Anthropic and Mistral contracts.
Connecting an agent to your tools, and restricting what each server can do.
The timeline after the Digital Omnibus, high-risk rules and deployer obligations.
Article 50, in force since 2 August 2026.
Links verified at publication. Regulatory texts change — always defer to the official source.
A question, a project, an idea? We respond within 24h. Free audit, no commitment.