Lion Cipher Lab

Pivot on a favicon hash to find related adversary infrastructure

Why it matters

A lot of threat-intelligence work is not about one malicious server — it is about finding the OTHER servers that belong to the same operation before they are used against you, which is called PIVOTING: taking one small thing you can observe and using it to discover related infrastructure. One of the most approachable pivots is the favicon hash. A FAVICON is the tiny icon a website serves for its tab and bookmarks, usually at /favicon.ico; a phishing kit, a malware command-and-control (C2) panel, or an off-the-shelf admin login page tends to ship the SAME favicon everywhere it is deployed,…

What you'll learn

Steps in this lab

  1. The idea: turn one favicon into a list of related servers
  2. What the number actually is: MurmurHash3 over base64 of the raw bytes
  3. Install mmh3 (one command, then fully offline)
  4. Get a favicon onto your disk — your own, or a local file
  5. Write the hash function and compute your first favicon hash
  6. Prove it is correct: reproduce it twice, and show a different image differs
  7. OPTIONAL web step: the pivot query in Shodan and Censys
  8. When NOT to trust this — favicon hashing is a WEAK signal
  9. Do it better — corroborate with JARM, certs, and ASN before you act

Open the full interactive lab →