---
title: "What is prompt injection? A hidden instruction that hijacks the AI."
url: https://www.bonbay.fr/en/ia/comprendre-ia/lexique-ia/injection-de-prompt/
site: "Bonbay IA"
description: "Prompt injection hijacks an AI assistant through an instruction hidden in text it reads. Definition, business examples and the defences to know."
updated: 2026-11-13
---

# What is prompt injection? A hidden instruction that hijacks the AI.

> Prompt injection, also called instruction injection, is an attack that slips an instruction into the text read by an AI assistant to make it ignore its rules. It is direct when the user writes it themselves, and indirect when it is hidden in a web page, document or e-mail that the assistant processes.

An assistant that reads your emails or documents also reads whatever a stranger may have slipped into them. Prompt injection exploits this weakness.

## En bref

- **Instruction or data: it is all text** To a language model, an instruction and a document are made of the same stuff. A sentence hidden in a PDF can pass for an order.
- **The more rights, the greater the risk** An assistant that only answers can say something foolish. An agent that sends emails or edits files can act on your behalf.

## In practice in a business

No filter is guaranteed to block injection. So we assume it will eventually get through, and we limit what it can achieve: the assistant only accesses the data its task needs, sensitive actions such as sending, paying or deleting wait for a person’s approval, and every action is logged.

## Not to be confused with

Prompt injection is not SQL injection, which exploits a flaw in code to reach a database: here nothing is broken, the model simply obeys a piece of text. It also differs from jailbreaking, which seeks to lift the restrictions set by the model’s vendor rather than to hijack a specific application.

## Questions fréquentes

### Where does the term come from?

The term spread in 2022, after public demonstrations on applications built with GPT-3. Since then the risk has applied to every assistant that reads external content.

### Is an assistant that only reads exposed?

Yes, on a smaller scale: it can summarise a document wrongly or slip a malicious link into its answer. The danger grows once it can take actions or access sensitive data.

### Are AI vendors fixing this problem?

They train their models to resist and add filters, which reduces the number of cases. The problem remains unsolved: protection also depends on how the tool is connected in your organisation.
