Lion Cipher Lab

Detect prompt injection against your own LLM app

Why it matters

Most LLM-security advice is about prevention — how to stop an injection from succeeding. But you cannot improve what you cannot see, and in production the first question after an incident is always "when did this start, and how many times?" That is a detection question, and detection is a separate discipline from prevention. Prompt injection is text — from a user, or from a document your app retrieves — that overrides your app's real instructions and makes it do something you never intended: leak its hidden prompt, call a tool to exfiltrate data, ignore its safety rules, or act on an…

What you'll learn

Steps in this lab

  1. Detection vs. prevention — two different jobs
  2. Direct vs. indirect injection — where the payload comes from
  3. Build a small labelled test set of payloads
  4. Run the set against your OWN local app
  5. Detector 1 — heuristic / keyword filters (and why they leak)
  6. Detector 2 — an open-source classifier / detector
  7. Detector 3 — canary tokens, output checks, and a log for humans
  8. Detection is a leaky layer — depth is the real defense

Open the full interactive lab →