PromptInjects learning portal

Learn the moves behind prompt injection.

Learn prompt injection by doing it: practical explanations, safe examples, and hands-on AI security challenges.

  • 24 techniques
  • 5 playable
  • 8 animated
Show
Tier 1 · 12 techniques

Direct

The attacker types the instruction straight into the app.

01

Direct Prompt Injection

Direct prompt injection puts an attacker's instructions in the user message and asks a model to change course, disclose data, or misuse a tool.

Animated
02

Direct System Override

A direct system override tries to replace an application's governing task with a new one, often by asserting that earlier rules no longer apply.

Related practice
03

Role-Based Deception

Role-based deception claims trusted identity or authority so a model treats a sensitive request as ordinary work for an auditor, manager, or operator.

PlayableAnimated
04

Confusion Attack

A confusion attack creates contradictory or ambiguous instructions so a model loses track of the active task and chooses an unsafe interpretation.

Read
05

Crescendo Attack

A crescendo attack escalates across several harmless-looking turns until the model carries a cooperative context into a request it should reject.

PlayableAnimated
06

Encoding

Encoding hides an instruction or requested output behind a reversible representation, testing whether filters inspect meaning rather than only visible text.

Related practice
07

Greedy Coordinate Gradient

GCG is an automated white-box search for adversarial token suffixes that increase a model's probability of an unsafe target response.

Read
08

Instruction Overriding

Instruction overriding tells a model to disregard, replace, or forget its earlier guidance so an attacker can steer the next response or action.

Read
09

Variables and Keywords

Variables and keywords turn a sensitive request into a program-like substitution or trigger, exploiting systems that resolve text without rechecking its meaning.

PlayableAnimated
10

Multi-Language / Character Sets

Mixed languages, scripts, or look-alike characters can hide an instruction from narrow filters while a capable model reconstructs its intended meaning.

Read
11

Narrative-Based

Narrative-based injection wraps a restricted request in fiction, roleplay, or a hypothetical so the model mistakes harmful intent for creative work.

PlayableAnimated
12

Sequences / Delimiters

Sequences and delimiters make untrusted text resemble a control block, testing whether a model treats formatting as authority instead of ordinary data.

PlayableAnimated
Tier 2 · 8 techniques

Indirect

The instruction hides in content the AI reads: documents, pages, images, memory.

Tier 3 · 4 techniques

Tools & Consequences

The AI can act, so a hijacked instruction becomes a real action.

Take it to your team

Get the free facilitator kit.

Everything you need to run a 45-minute AI hacking session your team will actually remember.

  • A minute-by-minute session plan
  • Which challenge to pick for which room
  • Debrief questions mapped to these lessons
  • A QR slide and a one-page handout

No spam, no newsletter. One person reads every request.