AI cybersecurity: what the AI Act requires
Data poisoning, prompt injection, adversarial examples: AI-specific attacks, what Article 15 of the AI Act says about them, and the measures recommended by France's cybersecurity agency.
AI cybersecurity means protecting artificial intelligence systems against attacks targeting their training data, their model, the prompts they receive and the actions they trigger. The AI Act makes it a legal requirement for high-risk systems: its Article 15 requires accuracy, robustness and cybersecurity, and names the attacks to counter (data or model poisoning, adversarial examples, confidentiality attacks). These requirements will apply in December 2027, but the attacks already exist. This article, which complements our guide to the EU AI Act, covers the threats, the legal framework and the measures recommended by ANSSI, France's national cybersecurity agency.
Why AI system security is a field of its own
An AI system is still an information system: servers, accounts, application programming interfaces (APIs), software dependencies. All the usual measures apply. But it has three particularities. Its behaviour depends on data as much as on code: tampering with the training set amounts to changing the program. It interprets natural language inputs, where instructions and data are mixed. And, more and more, it acts: sending an email, querying a database, changing a file.
ANSSI reviewed the threat in its overview published on 4 February 2026. It is not aware of attacks against French organisations carried out end to end with AI, but notes that AI systems are becoming targets themselves: data poisoning, booby-trapped open-source models, flaws in connectors between agents and tools, AI accounts stolen by infostealers, data leaks by employees. AI security is therefore not a future concern for model providers only: it concerns every organisation that deploys AI.
AI Act Article 15: accuracy, robustness and cybersecurity
Article 15 of Regulation (EU) 2024/1689 is one of the requirements for high-risk AI systems. It falls first on the provider, who designs the system, but it shapes what the deployer can expect. It has three parts.
Accuracy
The system achieves a level of accuracy appropriate to its intended purpose, and that level, with the metrics used to measure it, is stated in the instructions for use. The Commission is to encourage common measurement methods with metrology bodies.
Robustness
The system is as resilient as possible to errors, faults and inconsistencies, in particular those arising from its environment or its interaction with people or other systems. Redundancy, backup or fail-safe solutions can help. For a system that keeps learning after being put into service, biased outputs must not feed back into future inputs (feedback loops).
Cybersecurity
The system resists attempts by unauthorised third parties to alter its use, outputs or performance by exploiting vulnerabilities. Paragraph 5 names the AI-specific attacks that measures must prevent, detect, respond to, resolve and control: manipulation of the training data set (“data poisoning”), of pre-trained components (“model poisoning”), inputs designed to make the model err (“adversarial examples” or “model evasion”), confidentiality attacks and model flaws.
Timeline and standards
Since omnibus Regulation (EU) 2026/1744 entered into force on 27 July 2026, these requirements apply from 2 December 2027 for Annex III systems and from 2 August 2028 for those embedded in regulated products (Annex I). Compliance can be shown through harmonised standards: the one on cybersecurity, prEN 18282, prepared by the joint CEN-CENELEC technical committee JTC 21, was still a draft in October 2026. Article 42 also provides a presumption of conformity for systems certified under a European cybersecurity scheme of the Cybersecurity Act.
Providers of general-purpose AI models with systemic risk have their own cybersecurity obligation (Article 55), applicable since 2 August 2025: ensuring adequate protection of the model and its physical infrastructure.
AI-specific attacks: poisoning, evasion, extraction
Several frameworks classify these attacks. NIST AI 100-2 E2025, published in March 2025, distinguishes evasion, poisoning and privacy attacks for predictive AI, and adds supply chain attacks and direct or indirect prompt injection for generative AI. ANSSI, in its 2024 guide, uses three families: manipulation (misusing the system in production with malicious prompts), infection (contaminating training) and exfiltration (stealing data or model parameters). ENISA offers a three-layer framework of good practices: classic cybersecurity foundations, AI-specific measures, sector-specific measures.
The diagram below maps them onto the four links of an AI system.
| Attack | Target | Example | Measures |
|---|---|---|---|
| Data poisoning | Training, fine-tuning, document bases | Booby-trapped documents inserted into the corpus skew the model's answers | Trusted sources, integrity checks, data review |
| Backdoor, booby-trapped model | Model and pre-trained components | A downloaded model runs code when loaded or reacts to a trigger word | Safe file formats, verified provenance, component inventory |
| Adversarial examples (evasion) | Production inputs | A slightly altered image fools a detection system | Adversarial testing, robust training, performance monitoring |
| Prompt injection | Prompts and content read by a language model | An email contains a hidden instruction that an assistant executes | Filtering, separating instructions and data, least privilege, human approval |
| Extraction and inference | Outputs | Reconstructing training data or copying the model through repeated queries | Rate limiting, output filtering, minimised training data |
| Excessive agency | Agent tools and connectors | An agent with broad rights deletes or sends data on a third party's instruction | Least privilege, sandboxing, human approval of critical actions, logs |
Prompt injection: the number one threat to large language models
A language model does not strictly separate its designer's instructions from the data it processes: it is all text. Prompt injection exploits this weakness. In its direct form, the user writes a prompt that bypasses the guardrails. In its indirect form, the malicious instruction is hidden in a web page, shared document or email that the assistant reads to do its job, without the user knowing.
The OWASP Top 10 for large language model applications (2025 edition) ranks it first, ahead of sensitive information disclosure, supply chain flaws, poisoning, improper output handling and “excessive agency”. That last point becomes central with agents: since December 2025, OWASP has published a dedicated Top 10 for them. The more a system can act, the more a successful injection matters.
No technique removes this risk. ANSSI says so in its 13 April 2026 bulletin on AI agents installed on workstations: defensive wording in the model's instructions can be bypassed, and configuration hardening remains the main lever. It recommends not deploying these tools in production until they are proven, confining them to isolated test environments without sensitive data, limiting their capabilities to what is strictly necessary and requiring human approval for any action with side effects.
Data poisoning and the model supply chain
Poisoning means inserting malicious data into what is used to train or fine-tune a model, to degrade its results or plant a backdoor that only activates when a specific pattern appears. ANSSI's overview cites a study finding that 250 malicious documents can be enough to poison a model. The risk also applies to the document bases an assistant queries to answer (retrieval-augmented generation): slipping a booby-trapped document into them poisons its answers.
Models themselves are third-party software components. Some file formats allow code to run on loading: ANSSI recommends safe formats and integrity checks. Models and datasets downloaded from public platforms, libraries and connectors form a supply chain to inventory, like the dependencies of conventional software; this is the logic of the software bill of materials (SBOM), which some extend to AI components. For purchased AI services, this vigilance goes through third-party risk management and a supplier questionnaire covering model provenance, use of your data and protection against these attacks.
Securing AI systems: what ANSSI recommends
ANSSI's guide Security recommendations for a generative AI system, published on 29 April 2024, is the French reference. It covers the whole lifecycle, from training to production, in 35 recommendations. The most structuring ones:
- carry out a risk analysis before training and build security into every stage;
- assess the trust placed in external libraries, modules and data sources;
- segregate training, deployment and production environments, and isolate the AI system in a dedicated environment;
- prefer SecNumCloud-qualified hosting for sensitive uses;
- train the model only on data its users are entitled to see, and protect the integrity of data and model files;
- filter inputs and outputs, and secure interactions with business applications;
- ban automated actions on critical operations without human approval, and limit those triggered by untrusted content;
- log all processing: prompts, plugin and data calls, filtering, responses;
- plan a fallback mode that works without AI;
- never send sensitive data to consumer online AI services.
ANSSI added a high-level analysis, Building trust in AI through a cyber risk-based approach (February 2025), written with the CNIL, Inria, LNE, PEReN and AMIAD and co-signed by foreign partners, joint recommendations with Germany's BSI on AI coding assistants (October 2024: systematic review of generated code, no generation for critical modules), then the April 2026 bulletin on agents.
AI Act, CRA and NIS 2: how they fit together on AI cybersecurity
Three EU texts meet on AI security. They do not target the same actors or the same object, but they refer to one another.
| Criterion | AI Act (Art. 15) | Cyber Resilience Act | NIS 2 |
|---|---|---|---|
| Object | The high-risk AI system | The product with digital elements, AI included | The entity and its information system |
| Who is covered | Providers (and deployers for use) | Manufacturers, importers, distributors | Essential and important entities in 18 sectors |
| Key requirement | Accuracy, robustness, resistance to AI-specific attacks | Essential cybersecurity requirements, vulnerability handling | Risk management measures (Art. 21), incident notification |
| Timeline | 2 December 2027 (Annex III), 2 August 2028 (Annex I) | Reporting since 11 September 2026, full application on 11 December 2027 | Directive applicable; French transposition not complete in October 2026 |
The most explicit bridge is Article 12 of the Cyber Resilience Act: a product with digital elements that is also a high-risk AI system and meets the CRA's essential requirements is presumed to comply with the cybersecurity requirements of Article 15, to the extent its EU declaration of conformity covers them. Conformity assessment follows the AI Act procedure, except for certain important or critical products under the CRA. A software manufacturer embedding AI should therefore run both efforts together; our guide to the Cyber Resilience Act details its obligations.
Finally, NIS 2 does not mention AI, but its risk management measures (Article 21) cover the entity's whole information system, including the AI systems it uses and the suppliers that provide them. A significant incident affecting an AI assistant, such as a data leak, falls under the notification regime.
Practical measures: bringing AI into your risk analysis
There is no need to wait for 2027 or the harmonised standard. The measures are known; they need to be applied to AI systems methodically.
- Inventory AI systems, their data, their connectors and the rights they hold, including tools used without approval.
- Add AI-specific threats to your risk analysis: risk sources, injection, poisoning or leakage scenarios, following the ISO 27005 or EBIOS RM approach. The NIST and OWASP frameworks serve as threat catalogues.
- Segregate: separate environments, dedicated service accounts, least privilege for every tool an agent can reach.
- Filter inputs and outputs, and treat any external content read by the model as untrusted.
- Keep a human in the loop for critical actions: payments, deletions, external sending, configuration changes.
- Log prompts, responses, tool calls and filtering, and feed these logs into your security monitoring, in line with the GDPR.
- Test: adversarial testing and attack exercises targeting prompt injection or evasion, before go-live and after each major change.
- Govern suppliers and document everything, linking the security analysis to the DPIA, which the CNIL expects to cover AI-specific attacks.
Using AI in compliance tools themselves calls for the same precautions, as we explain in our article on AI and GRC. To carry out and maintain these risk analyses, including with EBIOS RM, see our risk analysis module.
Summary
Article 15 targets high risk
Accuracy, robustness and cybersecurity are required of high-risk systems, with a list of AI-specific attacks to prevent. Application postponed to 2 December 2027 for Annex III.
New attacks
Poisoning, backdoors, adversarial examples, prompt injection, data extraction: AI widens the attack surface, especially when it can take actions.
Known measures, adapted
Risk analysis including AI threats, segregation, filtering, logging, human approval of critical actions and adversarial testing, as recommended by ANSSI.
Frequently asked questions
What does Article 15 of the AI Act say about cybersecurity?
It requires high-risk AI systems to achieve an appropriate level of accuracy, robustness and cybersecurity throughout their lifecycle. They must resist attempts by third parties to alter their use, outputs or performance, and measures must prevent, detect and address AI-specific attacks: data or model poisoning, adversarial examples, confidentiality attacks and model flaws.
What is prompt injection?
It is an attack that slips instructions into what a language model reads so that it ignores its own rules. It is direct when the attacker writes the prompt, indirect when the instructions are hidden in a document, email or web page the system processes. It is the top risk in the OWASP Top 10 for large language model applications.
What is data poisoning?
It is the insertion of malicious data into a model's training or fine-tuning set, to degrade its performance or hide a behaviour triggered by a specific pattern (a backdoor). ANSSI cites a study finding that 250 malicious documents can be enough to poison a model.
When does Article 15 of the AI Act apply?
Since omnibus Regulation (EU) 2026/1744, the high-risk requirements, including Article 15, apply from 2 December 2027 for Annex III systems and from 2 August 2028 for those embedded in regulated products (Annex I). The harmonised standard on AI cybersecurity, prEN 18282, was still a draft in October 2026.
How do the CRA and the AI Act fit together on cybersecurity?
A product with digital elements that is also a high-risk AI system and meets the Cyber Resilience Act's essential requirements is presumed to comply with the cybersecurity requirements of Article 15, to the extent its EU declaration of conformity says so (CRA Article 12). Conformity assessment generally follows the AI Act procedure.
What does ANSSI recommend to secure a generative AI system?
Its April 2024 guide contains 35 recommendations: risk analysis before training, segregation of training, deployment and production, safe model formats, input and output filtering, logging of all processing, no automated actions on critical operations without human approval, and no sensitive data in consumer AI services.
Sources (15)
- EUR-Lex — Règlement (UE) 2024/1689 sur l'intelligence artificielle (AI Act), article 15
- EUR-Lex — Règlement (UE) 2026/1744 du 8 juillet 2026 (omnibus numérique sur l'IA)
- EUR-Lex — Règlement (UE) 2024/2847 (Cyber Resilience Act), article 12
- EUR-Lex — Directive (UE) 2022/2555 (NIS 2)
- ANSSI — Recommandations de sécurité pour un système d'IA générative, 29 avril 2024
- ANSSI — Développer la confiance dans l'IA par une approche par les risques cyber, 7 février 2025
- ANSSI (CERT-FR) — L'IA générative face aux attaques informatiques : synthèse de la menace en 2025, 4 février 2026
- ANSSI (CERT-FR) — Vulnérabilités et risques des produits d'automatisation par IA agentique sur les postes de travail, 13 avril 2026
- ANSSI et BSI — Recommandations sur les assistants de programmation basés sur l'IA, 4 octobre 2024
- NIST — AI 100-2 E2025, Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations, mars 2025
- OWASP — Top 10 for LLM Applications 2025
- OWASP — Top 10 for Agentic Applications 2026, décembre 2025
- ENISA — Multilayer Framework for Good Cybersecurity Practices for AI, juin 2023
- iTeh Standards (catalogue de normes) — prEN 18282:2026, Artificial intelligence, Cybersecurity specifications for AI systems (projet du CEN/CLC/JTC 21)
- CNIL — IA : réaliser une analyse d'impact si nécessaire
A platform and service that adapt to you
Our platform is designed for fine-tuned configuration and broad adaptability to your needs.