Lion Cipher Lab

Cluster intrusion sets by ATT&CK TTP overlap — and reason about attribution (from scratch)

Why it matters

When a threat-intel team stares at fifty intrusions, the first useful question is not 'who did this' but 'which of these belong together.' MITRE ATT&CK itself defines Groups as 'activity clusters that are tracked by a common name' — that word, CLUSTERS, is doing quiet, load-bearing work, and this lab is about respecting it. Grouping intrusions by the techniques they share (their TTPs) is genuinely powerful triage: it spots campaigns, links a fresh incident to prior ones, and tells you where to spend scarce analyst hours. But the naive version fails in a specific, dangerous way. Almost every…

What you'll learn

Steps in this lab

  1. What TTP clustering is — and why raw overlap lies
  2. Generate a self-contained, seeded dataset with a known ground truth
  3. Round 1 — naive Jaccard + agglomerative clustering, from scratch
  4. Round 2 — down-weight the techniques everyone uses (IDF weighting)
  5. The attribution half — a cluster groups ACTIVITY, not an actor
  6. The judgment — when TTP clustering earns its keep, and its hard limits

Open the full interactive lab →