Guide · Security

AI agent security for businesses: risks, frameworks and controls

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.

Zakaria El Asri15 min

The NIST figure

From 11% to 81%: AI agent hijacking success rate once new red-team attacks were used.

In short

Short answer

An AI agent reads external content and acts with real tools and permissions, which exposes it to hijacking through prompt injection. The OWASP Agentic Top 10 2026 lists ten risks (ASI01 to ASI10), and the ANSSI guide of 29 April 2024 sets out 35 recommendations, including no automated AI use for critical actions (R9) and full logging (R29). The controls every source repeats: minimal permissions, credentials kept out of the agent's reach, isolation, human approval of irreversible actions, and logs.

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

Why an AI agent carries risks a chatbot does not

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.

Diagram of an AI agent connected to email, a CRM and a database, with a malicious instruction hidden in an incoming email that hijacks the agent into sending data outside
Indirect prompt injection enters through the data the agent reads, then acts through its tools.

Frameworks

OWASP, ANSSI, CNIL, NIST: what each framework says

OWASP Top 10 for Agentic Applications 2026

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.

CodeOWASP nameIn plain termsExample cited
ASI01Agent Goal HijackContent the agent reads changes its goalEchoLeak
ASI02Tool MisuseThe agent uses an authorised tool for a harmful actionAmazon Q
ASI03Identity & Privilege AbuseThe agent abuses credentials or permissions broader than its task
ASI04Agentic Supply Chain VulnerabilitiesA third-party component (MCP server, tool, plug-in) is compromisedGitHub MCP exploit
ASI05Unexpected Code ExecutionThe agent generates or runs code nobody planned forAutoGPT RCE
ASI06Memory & Context PoisoningThe agent's persistent memory or context is poisonedGemini memory attack
ASI07Insecure Inter-Agent CommunicationMessages between agents can be spoofed or altered
ASI08Cascading FailuresOne agent's error spreads to downstream systems and agents
ASI09Human-Agent Trust ExploitationThe trust of the person approving is exploited to get an action through
ASI10Rogue AgentsAn agent acts outside its mandateReplit
OWASP Top 10 for Agentic Applications 2026, published 9 December 2025, read 13 September 2026. The plain-terms column is Lumyniq's reading.

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.

ANSSI: the 2024 guide and the 2026 threat synthesis

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:

RecommendationContentApplied to an agent
R9No automated use of AI for critical actions on the IT systemHuman approval before any critical action
R25Filter inputs and outputsControl what the agent reads and what it returns
R26Control the AI's interactions with other business applicationsA closed list of allowed tools and calls
R27Limit automatic actions when the AI processes uncontrolled inputsIncoming emails, web pages, received documents
R28Isolate the AI systemSeparate environment and network
R29Log everything the AI system doesA record of every request, decision and tool call
R34No public internet GenAI tools for professional work on sensitive dataNo client data in a consumer tool
R35Regularly review the permissions granted to GenAI tools on business applicationsPeriodic permission review
Selected recommendations from ANSSI-PA-102 v1.0 (29 April 2024), wording summarised by Lumyniq, read 13 September 2026.

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.

CNIL: the note on agentic AI

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.

NIST

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

Documented incidents involving AI agents

DateWhat happenedLesson
26 May 2025Invariant 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 2025CVE-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 2025Replit'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 2026Microsoft 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.
Sources: Invariant Labs (26 May 2025), CVE-2025-32711 record, The Register (21 July 2025), Microsoft Security Blog (7 May 2026). Read 13 September 2026.

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

Concrete controls, and who recommends them

ControlWhat it involvesSource
Least privilegeAccess limited to the data and tools of the task, read-only where possibleANSSI R8 and R10, Anthropic, OWASP ASI03
Credentials out of the agent’s reachAPI keys stay in a proxy that injects credentials, so the agent never sees themAnthropic, Securely deploying AI agents
Human approval of irreversible actionsDeletions, payments, external sends, permission changesANSSI R9 and R27, AI Act Art. 14 (high-risk)
Input and output filteringIncoming content flagged as untrusted, outputs validated before useANSSI R25, OWASP LLM01 and LLM05
Closed list of toolsThe agent only calls planned applications and functions, with checked parametersANSSI R26, Microsoft (Semantic Kernel)
IsolationContainer, outbound network limited to specific domains through a proxyANSSI R28, Anthropic
Full loggingRequests, decisions and tool calls, retained and searchableANSSI R29, Anthropic
Fallback without AIThe business process keeps running if the agent is switched offANSSI R15
Periodic permission reviewRemove permissions that are no longer neededANSSI R35
Repeated testing before productionReplay each attack several times, on top of audits and business testsNIST CAISI, ANSSI R23 and R24
Controls and matching sources: ANSSI-PA-102 (2024), Anthropic documentation, OWASP 2025 and 2026, NIST (January 2025), Microsoft (May 2026). Read 13 September 2026.

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.

Architecture in which the AI agent runs in an isolated container with no API key and goes through a proxy that adds credentials, filters allowed domains and logs every call to the CRM and email
The proxy pattern: the agent never touches the secrets, and the network only reaches allowed domains.

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

What the regulation says

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

Figures from IBM's Cost of a Data Breach study

Indicator2025 edition2026 edition
Global average cost of a breach$4.44M$4.99M (+12%, a record)
Breaches of AI models or applications13% of organisationsMore than 20% of organisations
AI access controls97% of breached organisations lacked proper ones
Malicious breaches involving AI1 in 4 (up 56%), $6M on average
Main causes of breaches targeting AICompromised APIs, apps or plug-ins (27%), cloud misconfigurations (27%)
IBM Cost of a Data Breach, press releases of 30 July 2025 and 29 July 2026 (Ponemon study, 602 organisations, breaches from March 2025 to February 2026). Read 13 September 2026.

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

Checklist before putting an AI agent into production

  1. A written risk analysis exists, listing the data and tools the agent can reach (ANSSI R2).
  2. Every permission maps to a specific task; no admin access and no global token.
  3. Credentials stay outside the agent's environment, behind a proxy.
  4. Outbound network access is limited to the domains required.
  5. Irreversible actions (deletion, payment, external send, permission change) require human approval.
  6. External content (emails, web pages, attachments) cannot trigger an action on its own.
  7. MCP servers and third-party tools are identified, and either under your control or from trusted providers.
  8. Every request, decision and tool call is logged, and someone knows where to read those logs.
  9. Prompt injection scenarios have been replayed several times each, on top of business tests.
  10. The process works in fallback mode if the agent is switched off, and the shutdown procedure is written down.
  11. A date for the permission review is set.
  12. The AI Act classification is done (transparency or high-risk) and GDPR responsibilities are written down.

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

Frequently asked questions about AI agent security

The OWASP Top 10 for Agentic Applications, published on 9 December 2025, lists ten. For a business connecting an agent to its tools, the most direct are goal hijacking through malicious content (ASI01), misuse of a legitimate tool (ASI02), abuse of credentials or overly broad permissions (ASI03) and a compromised third-party component such as an MCP server (ASI04).

Related guides

Read next

Sources

Links verified at publication. Regulatory texts change — always defer to the official source.

Let's talk about your project

A question, a project, an idea? We respond within 24h. Free audit, no commitment.

Contact details