Lion Cipher Lab

Plant and detect a data-poisoning backdoor: train a classifier that passes every clean test yet flips on a hidden trigger (free, local, CPU-only)

Why it matters

Modern machine learning is assembled from other people's parts: datasets scraped from the public web, labels bought from crowd workers, and pretrained weights pulled from a model hub. Any of those can be quietly poisoned before you ever touch them. A data-poisoning backdoor is the sharpest version of that risk — an attacker teaches the model to behave perfectly on normal inputs (so it sails through your accuracy checks) but to flip to an attacker-chosen answer the instant a secret trigger appears. That is a supply-chain compromise wearing a passing test suite. If you build, buy, or deploy ML…

What you'll learn

Steps in this lab

  1. The words you need: backdoor, trigger, target class, clean accuracy, ASR
  2. Why this is the supply-chain risk of ML — and why clean accuracy can't see it
  3. Set up the machine and define the trigger
  4. Plant the backdoor and train the model
  5. Run it and watch clean accuracy lie to you
  6. Detect it: Activation Clustering, and where the other defenses fit
  7. The honest limits, and doing it better

Open the full interactive lab →