Safety, Security & Responsible AI·Question 68 of 70Quick-fire

What is the difference between a jailbreak and prompt injection?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

A jailbreak tries to get the model to violate its own safety training and produce content it should refuse (the target is the model's guardrails), while prompt injection tries to override the developer's instructions and hijack the application's behavior (the target is your prompt and your agent). They overlap in technique but differ in intent and defense: jailbreak resistance is largely the provider's training plus your output filtering, whereas injection defense is your architecture, separating instructions from untrusted data, least-privilege tools, and human approval. An agent can be injected without any policy-violating content, simply doing the attacker's bidding with legitimate-looking actions. Knowing the distinction keeps you from assuming a safe model means a safe application.

Full worked answer

A jailbreak tries to get the model to violate its own safety training and produce content it should refuse (the target is the model's guardrails), while prompt injection tries to override the developer's instructions and hijack the application's behavior (the target is your prompt and your agent). They overlap in technique but differ in intent and defense: jailbreak resistance is largely the provider's training plus your output filtering, whereas injection defense is your architecture, separating instructions from untrusted data, least-privilege tools, and human approval. An agent can be injected without any policy-violating content, simply doing the attacker's bidding with legitimate-looking actions. Knowing the distinction keeps you from assuming a safe model means a safe application.

Learn more: Safety and Security topic

What a good answer covers

  • A jailbreak tries to get the model to violate its own safety training and produce content it should…
  • They overlap in technique but differ in intent and defense
  • An agent can be injected without any policy-violating content, simply doing the attacker's bidding with…
  • Knowing the distinction keeps you from assuming a safe model means a safe application

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep