thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Commonly confused · AI & Machine Learning

Prompt Injection vs Jailbreaking: What's the Difference?

Prompt injection smuggles attacker instructions into an LLM's input, often through untrusted content like web pages or documents, so the model follows them instead of the developer's instructions. Jailbreaking is a user directly crafting prompts to bypass the model's safety guardrails.

Prompt Injection

Full definition
vs

Jailbreaking

Full definition
Prompt InjectionJailbreaking
AttackerThird party who plants instructions, or the userThe user talking to the model
TargetThe application's intended instructions and toolsThe model's safety training and policies
DeliveryDirect input or indirect via retrieved content, emails, filesDirect conversation (role-play, obfuscation)
Typical impactData exfiltration, unauthorized tool actionsHarmful or restricted content generated
OWASP LLM Top 10LLM01 Prompt InjectionTreated as a form of direct prompt injection
DefensesSeparate trusted/untrusted inputs, least-privilege tools, human approval, output filteringSafety training, input/output classifiers, monitoring
Remember it

Injection hijacks the app; jailbreaking breaks the guardrails.

Exam tip

Indirect prompt injection, where malicious text sits in a document or web page the model reads, is a favorite exam scenario. The strongest mitigations limit what the model can do, not just what it can read.

Tested on

More AI & Machine Learning look-alikes