Skip to content
Back to the AI glossary

Glossary · AI security & threats

Prompt injection

also: input manipulation

In short

An attack that overrides an AI system’s instructions through manipulated inputs (directly or hidden in embedded documents or web pages), so that it performs unintended actions or bypasses safeguards. Especially critical for AI agents, because the agent really acts.

Reference: ISO/IEC 27090:2026, 6.9; OWASP Top 10 for LLM Applications (LLM01)

What it means

A language model cannot reliably tell instructions from data. Anything that ends up in its context may be read as an order. Prompt injection exploits exactly that: someone gets text into the input that overrides the instructions the system was meant to follow. ISO/IEC 27090:2026 describes the attack in 6.9 and distinguishes two forms. In the direct form, the attacker types into the input field, for example to get around safety rules; this is also called a jailbreak. In the indirect form, the instruction is hidden in content the system fetches from elsewhere: a web page, an email, a document in the knowledge base.

For companies the indirect form is the more dangerous one, because the attacker needs no access to the system. It is enough for the system to read their text. The consequences range from wrong or offensive answers and the leaking of confidential information to unwanted actions, where the model is allowed to use tools. The standard notes that the attack is hard to detect precisely because the model does not separate data from instructions. Filters and blocklists only help to a limited extent.

In practice and in the audit

On current knowledge, prompt injection can only be contained, it cannot be eliminated. What matters is therefore what a successful attack could do. Give the system access only to the data and tools its task requires, check content from untrusted sources before it enters the context, and mark it clearly as data in the prompt. Actions with an external effect should require approval by a person. A sentence in the system prompt that forbids attacks is no barrier.

An attack is most likely to show up in logs: inputs, outputs, tools called and the source of every document included. Warning signs are answers that repeat the system prompt, sudden changes of topic or actions nobody asked for. In an audit against ISO/IEC 27001 or ISO/IEC 42001, an auditor expects prompt injection to appear in the risk assessment of every application built on a language model, with reasons given for the chosen controls.

References in standards and law

I cite standards by clause number and in my own words, never verbatim. Legal texts link to EUR-Lex.

  • ISO/IEC 27090:2026, 6.9Direct and indirect prompt injection, consequences, detection and mitigation.
  • ISO/IEC 27090:2026, 5.3Zero trust principles, including checking all inputs before processing.
  • Article 15(5) Regulation (EU) 2024/1689 High-risk AI systems must resist attempts to alter their use or outputs by exploiting vulnerabilities.

Frequently asked questions

Does a good system prompt help against prompt injection?

A little, and you cannot rely on it. What works are limits outside the model: few permissions, vetted sources, approvals for actions and logs that make an attack visible.

Related terms

Further reading in the insights

Matching service

Testing AI applications for prompt injection

I check what injected instructions could do in your AI application and show you which limits are missing.

To AI security

Author: Lars Zimmermann

Term and explanation in my own words. Researched to the best of my knowledge and reviewed for accuracy.

This is my interpretation from practice. For legal advice, please turn to the appropriate professionals.