Skip to content
AI and answer engines

What is Prompt injection?

Prompt injection is an attack where instructions hidden in content an AI system reads — a web page, an email, a document, a form submission — are treated by the model as commands rather than data. It is the main security concern for any agent that ingests untrusted input.

Definition

Definition

Prompt injection is an attack where instructions hidden in content an AI system reads — a web page, an email, a document, a form submission — are treated by the model as commands rather than data. It is the main security concern for any agent that ingests untrusted input.

The indirect form is the dangerous one for marketing systems: an agent that reads inbound leads, scrapes competitor pages or summarises documents is processing text an attacker can author.

There is no complete fix at the model layer. Mitigation is architectural — constrain what the agent can do, separate instructions from data, require confirmation for consequential actions.

The usual error

Where this goes wrong in practice

Treating it as a content-filtering problem. Filtering catches known phrasings; the vulnerability is that instructions and data share one channel.