Skip to content
Dennis Gumprich
Dennis Gumprich

Content Operations · AI · Business Case

AI Quality and Governance 5 min read Reviewed by Dennis Gumprich, as of 11/2026

Prompt injection

Definition

Prompt injection is an attack on AI systems in which manipulated inputs or instructions embedded in external content are meant to divert the system from its intended rules. A distinction is made between the direct variant via the input and the indirect variant via websites, documents or emails that the system processes.

The risk is particularly relevant for agents that read third-party content and operate tools. Protection is provided by limited access rights, review steps and human approval for consequential actions.

Why this matters for you

As soon as AI tools read external content, for example websites, emails or documents, hidden instructions can be contained in it. Prompt injection is therefore one of the most important security risks when using AI agents. Whoever knows about it places rights, checks and approvals specifically where they are needed.

Context

There are direct and indirect prompt injection. In the direct form, a person tries to manipulate the system via their own input, for example to bypass protective rules. In the indirect form, the instructions are contained in content that the system processes, for example in hidden text on a web page, in a PDF or in an email. The model cannot reliably distinguish these instructions from legitimate content.

The OWASP list of the top risks for applications with large language models puts prompt injection in first place. There is no complete technical solution yet. Protection arises from several layers: limited rights, separation of confidential data, checking of inputs and results and human confirmation before critical actions.

How do you protect yourselves against prompt injection?

You protect yourselves against prompt injection above all through limited rights and review steps, because there is no completely secure technical defense yet.

  • Minimize rights: only give AI agents access to the data and tools they need for their task.
  • Approve consequential actions: publishing, sending, deleting or passing on data should be confirmed by a person.
  • Separate sources: treat content from websites, documents and emails as data, not as instructions, and choose tools that support this separation technically.
  • Log: record which content an agent has read and which actions it has carried out.
  • Report anomalies: train the team to recognize unusual outputs, for example sudden links, requests to enter data or deviations from the assignment.

Involve IT security early if agents are to access internal systems or confidential data.

What types of prompt injection are there?

The most important forms at a glance:

  • Direct prompt injection: a person enters manipulative instructions directly into the chat.
  • Indirect prompt injection: instructions are hidden in websites, documents or emails that the AI processes.
  • Hidden text: white text on a white background, comments in the source code or metadata.
  • Manipulated images: instructions in images that multimodal models read.
  • Data exfiltration: instructions intended to get the system to disclose confidential information.
Practical example

A retrieved document asks the agent to pass on confidential information.

Typical mistakes

  • Giving AI agents too many rights: the more an agent may do, the greater the possible damage.
  • Having external content processed unchecked: every third-party source can contain manipulated instructions.
  • Automating critical actions: sending, publishing and deleting should be confirmed.

Frequently asked questions

Prompt injection or jailbreak: what is the difference?

A jailbreak tries to use clever inputs to get a model to give answers that its safety rules are actually meant to prevent. Prompt injection smuggles third-party instructions into a system, often hidden in content it processes. With a jailbreak, the user is usually the attacker; with indirect prompt injection, it is a third party that the user does not even notice.

Does prompt injection also affect normal AI chats?

Yes, prompt injection also affects normal AI chats as soon as they process third-party content, for example uploaded documents, websites or emails. Hidden instructions can then falsify summaries or steer answers in a certain direction. The risk increases considerably if the chat also has access to inboxes, files or other tools.

Is prompt injection a recognized security risk?

Yes, prompt injection is considered one of the most important security risks of applications with language models. The non-profit security initiative OWASP puts it in first place in its top 10 list for LLM applications. For companies this means: AI agents with access to systems belong in the same risk assessment as other software with access to confidential data.

Who is responsible for protection against prompt injection?

Tool vendors, IT security and the specialist department are jointly responsible for protection against prompt injection. The vendor provides technical protective measures, IT assesses rights and connections. Marketing defines which tasks an agent may carry out independently and where human approval is necessary. You should document these limits in writing.

What is prompt injection, simply explained?

Prompt injection is an attack on AI systems in which hidden or manipulated instructions are meant to get the AI to do something other than intended. The instructions can be entered directly or be contained in websites, documents and emails that the AI reads.

Related terms