Prompt Injection

A security attack in which malicious instructions hidden in content try to override a model's intended behavior.

Who is speaking in the assistant’s context?

A visitor asks a museum assistant to summarize a public events leaflet. The leaflet contains an editor’s note about where its publisher should distribute copies.

  1. Visitor request

    The visitor authorized a summary of the leaflet. No publishing or mailing action was requested.

  2. Retrieved document

    The editor’s note is part of the document being summarized. Its author has no authority over the visitor’s account or the assistant’s permissions.

  3. Service decision

    The application supplies only the public information needed to answer and keeps consequential actions behind separate authorization. The answer can describe the note as part of the leaflet.

Authority in this example
Visitor
Requests a summary.
Leaflet publisher
Supplies material to read.
Application
Permits a public lookup and a text reply.

How can a reviewer spot the boundary error?

Trace each statement to its source. If the assistant treats document content as an instruction from the visitor, record that attribution error and check what actions the application actually permitted. A benign note illustrates the same boundary that malicious content targets.

Why Readers Should Understand It

Prompt injection matters because it shows how AI security differs from ordinary chat experience. A model that seems helpful in a demo can become risky when connected to the open web or business systems. The danger is not only what the user types directly. It is also what the model is exposed to while doing its job.

For AI literacy, prompt injection is one of the most important terms for understanding why agentic systems need careful boundaries.

Follow the idea

System Prompt · System prompts express application-level instructions.

Guardrails can constrain what a connected service may do.

Source · NIST taxonomy covering prompt injection and generative AI threats

Return to Prompt Injection in the A–Z glossary