Lion Cipher Lab

Measure the false-refusal rate of an LLM safety guardrail on legitimate security work

Why it matters

A safety guardrail is code (or a model) that sits in front of an AI system and decides whether a request is allowed through or refused. The obvious failure everyone worries about is the guardrail letting a genuinely harmful request through. There is a second failure, quieter and far more common, that this lab is about: over-refusal, also called exaggerated safety - the guardrail refusing a completely legitimate request because it pattern-matches on scary-sounding words. A security team asks "how do I read my own auth logs for failed SSH logins," "explain what this CVE does so I can tell if we…

What you'll learn

Steps in this lab

  1. What over-refusal is, and why a defender should care
  2. The two numbers you are going to measure
  3. Build the prompt sets and a naive keyword guardrail
  4. Sweep the threshold and read the tradeoff curve
  5. Add intent and context features, then re-measure
  6. The honest negatives - read these before you trust any number

Open the full interactive lab →