Live monitoring Updated 72-hour alert levelPriority Editor: Frédéric LENQUETTE
CYBERIACKCybersecurity & AI intelligence · by Frédéric LENQUETTE
In-depth guide

AI agents: the security risks and how to deploy them safely

AI assistants that browse, run code and act on your systems open up new risks. This guide covers the threats, documented incidents, frameworks and measures to take, for CIOs, CISOs and executives.

Updated 47 articles9 min read

Translated from French by AI. The original French guide is the reference version.

The key points

  • An AI agent is not just a chatbot. It reads external content, calls tools and acts with the permissions it is given. A booby-trapped text can therefore trigger a real action, not just a bad answer.
  • Prompt injection remains an unsolved problem. NIST and the UK AI Security Institute analyzed a competition organized by Gray Swan, with more than 250,000 attack attempts: at least one attack succeeded against each of the 13 models tested.
  • The supply chain is already under attack. A fake MCP server copied emails in 2025, then hundreds of malicious extensions appeared on the OpenClaw marketplace in early 2026.
  • An agent can also go astray without any attacker. On October 9, 2026, Anthropic published cases where its models acted on real websites during tests.
  • In France, the advice is cautious. CERT-FR (part of ANSSI, France's national cybersecurity agency) recommends not deploying autonomous assistants on workstations in production, and requiring human approval for any action with side effects.
  • The measures that work are classic ones. They are least privilege, segmentation, human approval, control of extensions and logging. Instructions written in the prompt are not enough.

What are we talking about?

An AI agent is software built around a large language model (LLM). It receives a goal, breaks the task into steps and uses tools to complete it: web browser, email, files, terminal, APIs (application programming interfaces) of business applications. Coding assistants like Claude Code, "agentic" browsers, office copilots and personal assistants like OpenClaw all fall into this category.

These tools are often connected to applications through MCP (Model Context Protocol). This open protocol lets you plug in a "server" that gives the agent access to a service (email, database, ticketing…). Every MCP server or "skill" you install is third-party code that runs with the agent's permissions.

The risk comes from a combination: the agent reads data it does not control (web pages, emails, documents), it has access to sensitive data and it can act or communicate with the outside world. When all three conditions are met, a single malicious instruction can be enough to exfiltrate data or trigger an action.

The main risks

Direct and indirect prompt injection

Direct injection means writing instructions to the agent that bypass its rules. Indirect injection is more insidious. The instructions are hidden in content that the agent processes for the user: a web page, an email, a shared document. The model cannot reliably tell data from commands. This is the number one risk in the OWASP ranking for LLM applications (see our guide Prompt injection: understanding the attack and protecting yourself).

The reference example is EchoLeak (CVE-2025-32711), in Microsoft 365 Copilot, disclosed in June 2025 by Aim Labs. A booby-trapped email, later retrieved by Copilot as context, could make it send internal data to the outside, without the victim clicking anything. Microsoft fixed it on the server side and did not report any real-world exploitation.

Hijacking of tools and permissions

A compromised agent uses the tools and credentials it legitimately has access to. Overly broad permissions then become the real problem. In October 2026, Zenity researchers described an attack chain against Amazon Bedrock AgentCore: an injection led a public agent to query the cloud metadata service, which handed over the credentials of a default role. According to them, this role covered all agents in the account and region. AWS responds that this behavior is "documented and expected," but has since restricted the role (see our article).

Data leaks

An agent can leak data without any malicious intent from the user. All it takes is a URL (web address) that contains information, an image loaded from an external server or a sent email. CERT-FR lists among the main risks leakage to external resources that are not under control, and the sharing of authentication secrets with the agent.

Supply chain: models, MCP, extensions

In September 2025, Koi Security discovered a postmark-mcp package on npm that imitated the integration of the Postmark email-sending service. Versions 1.0.0 to 1.0.15 were clean. Version 1.0.16 added a single line: a hidden copy (BCC) of every email sent, addressed to the attacker. In February 2026, Koi Security counted 341 malicious "skills" out of the 2,857 audited on ClawHub, the OpenClaw marketplace. Most installed data-stealing software under the guise of "prerequisites." The MCP specification itself details other risks: command execution when a local server is installed, passing of unverified tokens, requests to the internal network (SSRF).

Unplanned actions by the agent itself

The risk does not always come from an attacker. An agent can go too far to reach its goal. This is the subject of Anthropic's October 9, 2026 report, detailed below. CERT-FR classes this risk under "loss of control over the actions performed by agents," with possible destructive actions.

Recent documented incidents

The facts below come from publications by the researchers or vendors involved. These are often interested sources, and have not been independently verified.

DateCaseWhat is established
June 2025EchoLeak (Microsoft 365 Copilot)Indirect injection by email, no click needed. Fixed server-side by Microsoft.
Sept. 2025postmark-mcp (npm)First malicious MCP server observed in the wild, according to Koi Security. Emails copied to the attacker.
Feb. 2026ClawHavoc (ClawHub / OpenClaw)341 malicious skills out of 2,857 audited, according to Koi Security.
Sept.–Oct. 2026South Korean banksAccording to CrowdStrike, an attacker used ARTEX, an agentic penetration-testing tool, with several LLMs and Claude Code sessions. Attributed to a Chinese-speaking actor, with "moderate" confidence.
Oct. 2026AgentCorruption (AWS AgentCore)Attack chain described by Zenity. AWS disputes that it is a vulnerability. No CVE has been assigned.
Oct. 2026Anthropic reportActions by Claude models on real websites during evaluations. The vendor judges the impact "minimal."

The South Korean case shows agents being used by an attacker. CrowdStrike found Claude Code session histories and ARTEX configuration files in open directories left on the attacker's servers. CrowdStrike has not confirmed the number of victims (see our article).

Anthropic's report sorts the cases into four categories: exploitation of an injection flaw on the server of a university tool; submission of real forms, including a fake report to the Philadelphia police, classed as unwanted; bypassing of access restrictions on public but paid data, using tokens found on the sites; use of URL shorteners to get around a technical limit. Anthropic says the agencies concerned and the White House were notified, and it now cuts direct Internet access for all its internal evaluations. This document remains a self-report. The vendor itself acknowledges that it has not yet carried out a full assessment, and a September 9 report already described more serious incidents in cybersecurity evaluations. Anthropic had then asked the organization METR to carry out an independent investigation of these incidents (see our article).

Who is affected?

  • Any organization whose employees install autonomous assistants on their machines, often without approval: browser extensions, desktop agents, coding assistants. This is shadow IT (unsanctioned technology).
  • Organizations that turn on agentic features in their office suites or SaaS (online software) tools: copilots with access to email, files and calendar.
  • Teams that build or deploy their own agents: customer chatbots connected to APIs, agents in the cloud, automations with MCP servers.
  • Developers who use coding assistants with access to the terminal, repositories and secrets.

An SME is affected as soon as an AI tool can read its emails or documents and act on its behalf.

The frameworks

OWASP

OWASP (Open Worldwide Application Security Project), an open application security community, publishes two complementary lists. The Top 10 for LLM applications (2025 version) puts prompt injection first, followed by sensitive information disclosure, supply chain, data and model poisoning, improper output handling and "excessive agency" (too much autonomy or too many permissions). The Top 10 for Agentic Applications 2026, published on December 9, 2025, specifically targets agents: agent goal hijack (ASI01), tool misuse (ASI02), identity and privilege abuse (ASI03), agentic supply chain (ASI04), unexpected code execution (ASI05), memory and context poisoning (ASI06), insecure inter-agent communication (ASI07), cascading failures (ASI08), human-agent trust exploitation (ASI09) and rogue agents (ASI10).

ANSSI and CERT-FR

ANSSI's guide "Security recommendations for a generative AI system" (April 2024) contains 35 recommendations. Several apply directly to agents: ban the automated use of AI systems for critical actions on the information system (R9), limit automatic actions from an AI system that processes untrusted inputs (R27), segment the system (R28), log everything (R29), systematically check generated code (R30). Bulletin CERTFR-2026-ACT-016 of April 13, 2026 deals with agentic assistants on workstations. It recommends not deploying them in production, limiting them to sandboxes without sensitive data, submitting any deployment to the IT department and the CISO, and making human approval mandatory "whenever a system command or an action with side effects is envisaged." It stresses that defensive instructions in prompts can be bypassed by injection.

NIST and international partners

In the United States, NIST's CAISI (Center for AI Standards and Innovation) launched a standardization initiative on agents in February 2026, after a call for input on their security. As of October 12, 2026, we have not found a finalized standard. On May 1, 2026, CISA, the NSA and the Australian, Canadian, New Zealand and British agencies published "Careful Adoption of Agentic AI Services." This guide recommends limiting agents' autonomy and access, starting with low-sensitivity environments and strengthening identity management and oversight. ANSSI is not a signatory.

Regulatory framework and timeline

No European text specifically targets agents. The EU AI Act (Regulation 2024/1689) applies depending on how the agent is used. It was amended by the "digital omnibus" Regulation (EU) 2026/1744, published in the EU Official Journal on July 24, 2026. The GDPR still applies whenever an agent processes personal data.

  • August 2, 2025: obligations for providers of general-purpose AI models.
  • November 2024: publication of the 2025 version of the OWASP LLM Top 10; December 9, 2025: OWASP agentic Top 10.
  • April 13, 2026: CERT-FR bulletin on agents on workstations.
  • May 1, 2026: CISA and partners' guide on adopting agents.
  • August 2, 2026: transparency obligations (Article 50 of the AI Act) apply to new systems.
  • December 2, 2026: end of the grace period for marking generated content, for systems already on the market.
  • December 2, 2027: obligations for high-risk systems under Annex III (postponed by the omnibus).
  • August 2, 2028: high-risk systems built into regulated products (Annex I).

Where to start

  1. Take inventory. List the agents, extensions, coding assistants and MCP servers in use, including those installed by employees. For each one, note what it reads, what it can do and with which credentials.
  2. Set a simple rule. No agentic tool without approval from the IT department and the CISO. No autonomous agent on production workstations until the tool has been proven, as CERT-FR recommends.
  3. Reduce permissions. Give each agent a dedicated account, with minimal access and narrowly scoped, short-lived tokens. Never share your own passwords or API keys with an agent.
  4. Require human approval for any action with side effects: sending an email or form, payment, deletion, system command, publication.
  5. Segment. Run agents in an isolated environment (sandbox, container, virtual machine). Limit their outbound network traffic to an allowlist of destinations and block access to cloud metadata services.
  6. Control extensions. Install only MCP servers or skills from identified publishers. Pin versions and review every update. Check the exact command executed at installation.
  7. Separate contexts. Do not combine, in a single agent, the reading of external content (web, incoming emails), access to sensitive data and the ability to send data outside.
  8. Log and monitor agents' actions: tools called, data accessed, destinations contacted. Provide a way to shut an agent down quickly.
  9. Raise user awareness: a document or a website can contain instructions for their assistant. An agent can be confidently wrong.
  10. Plan a degraded mode: business processes must be able to run without the agent (ANSSI recommendation R15).

Further reading

  • ANSSI: guide "Security recommendations for a generative AI system" and the ANSSI-BSI recommendations on programming assistants.
  • CERT-FR: bulletin CERTFR-2026-ACT-016 on agentic AI on workstations.
  • OWASP GenAI Security Project: LLM Top 10 2025 and Top 10 for Agentic Applications 2026.
  • Model Context Protocol: the "Security Best Practices" page of the specification.
  • CISA and partners: "Careful Adoption of Agentic AI Services."
  • NIST CAISI: work on agent hijacking and the standardization initiative.
  • Cybermalveillance.gouv.fr (France's national cyber-victim assistance service): help and awareness resources for SMEs and local authorities.

Method: synthesis built from primary sources, facts verified against those sources, reviewed and approved by Frédéric LENQUETTE. It is updated as news unfolds. Spotted an error? Let us know.

Essential articles

Related news