← All tools
EDTOOLKITS GUIDES

Prompt Injection: Distinguish Documents from Instructions

By Team Edtoolkits · AI learning

Use the lesson's harmless planted sentences to compare missed injections, false alarms and a scripted defence.

Use the guide alongside the working tool.

Open Prompt Injection: Hidden Orders in Text →

Explore the lesson

Watch a hidden note try to give orders from inside a document.

Mark the injected line in four sample documents.

Flip the memory card and answer the quick check.

A comparison to try

Compare the naive and defended assistants on the same document cards. Include a clean card as well as one with a planted instruction, so blocking everything cannot look like a successful defence.

Read the result

Read both misses and false alarms. An assistant must use useful document content without treating a sentence inside that document as an instruction from the user or application.

A mistake to avoid

These documents and responses are fixed teaching examples. A correct score here does not establish that a real assistant, retrieval system or filter resists unfamiliar injections. Keep retrieved material within an explicit trust boundary.

Teaching model and privacy

All documents are harmless toys made for teaching, and the two assistants are tiny scripts. Real defences use several layers and are never perfect. Nothing leaves your browser.

Explore a related workflow

All practical guides →

Found unclear instructions or an unexpected result? Contact Team Edtoolkits.

YOUR BROWSER, YOUR CHOICE