AISim › Chapter 1: Getting it working

The refund trick

Level 5. "Ignore previous instructions and…"

Your assistant is public. 15% of traffic is now people trying to make it leak the system prompt, insult customers, or promise refunds it can't give. A screenshot is already on social media.

Goals

Concepts: Prompt injection, Guardrails.

Hint

No single defense is enough. What checks the input? What checks the output? Watch the accuracy cost of being too strict.

What you learn

Safety is layered. An input classifier catches most attacks cheaply, an output judge catches what slips through (and many hallucinations too) — but each layer has false positives, and the judge must see the full answer, which breaks streaming. Defense in depth is a trade-off, not a checkbox.

More in this chapter

This interactive level needs JavaScript. Built by (cybernerdie).