Lion Cipher Lab

Run a corpus-scale retrohunt with YARA-X — hunt a family across hundreds of files and measure precision, recall, and scan throughput

Why it matters

Writing one good rule is table stakes; the job is running it against history. When a family is attributed, when a new IOC lands, when a rule finally generalizes, the question a threat-intel team actually asks is 'how many of these did we already have, and where?' — and answering it means a RETROHUNT: pointing the rule at a large historical corpus of files and finding every past sample. That is a different problem from the one the prerequisite lab solved. At corpus scale a rule that missed one variant in a 7-file test now misses hundreds of real samples (a recall problem you cannot see from a…

What you'll learn

Steps in this lab

  1. What a retrohunt is, and why YARA-X (not classic yara) for it
  2. Install the YARA-X `yr` CLI
  3. Generate a labelled corpus at realistic volume
  4. Write the generalizing rule and run the first retrohunt
  5. Measure the hunt: precision and recall
  6. Triage the false positives and tighten — then re-measure
  7. Profile the rule: throughput is a real cost at retrohunt scale
  8. The named failure modes — at scale this time
  9. Judgment: your precision is optimistic, and a retrohunt is not a control
  10. The way a pro runs a retrohunt — and what you built

Open the full interactive lab →