Lion Cipher Lab

Evaluate adversarial robustness the RIGHT way — PGD, AutoAttack, and the obfuscated-gradients trap

Why it matters

Almost every 'robust' model you read about was not broken by a cleverer attack — it was broken because its EVALUATION was too weak to notice it was never robust in the first place. That is the uncomfortable lesson of the last decade of adversarial machine learning, and it is a DEFENSIVE skill: before you trust a model in anything that matters (a malware classifier, a content filter, a fraud model, a perception stack), you have to be able to measure how robust it really is — not how robust a flattering attack makes it look. The trap is that robustness is measured with attacks, and a weak…

What you'll learn

Steps in this lab

  1. State the threat model BEFORE you measure anything
  2. Set up: train a small MNIST CNN and record CLEAN accuracy
  3. FGSM: watch a single-step attack OVERESTIMATE robustness (the gradient-masking trap)
  4. PGD (Madry): more steps + restarts + an epsilon sweep drive the number toward the truth
  5. AutoAttack: the parameter-free ensemble that finds what PGD missed
  6. Defend with PGD adversarial training, then RE-MEASURE with the same strong protocol
  7. The methodology verdict — name every failure mode, and empirical vs certified

Open the full interactive lab →