Lion Cipher Lab

Detect phishing URLs with machine learning

Why it matters

Most phishing links are caught, or missed, in the half-second before anyone loads the page, and the only thing you have in that half-second is the URL string itself. Learning to read that string as structure rather than as content is one of the highest-leverage skills in defensive security: the length, the pile of subdomains, an IP address where a brand name should be, an @ buried in the middle, a throwaway top-level domain, plain http instead of https. Teaching a model to weigh those signals is the cleanest possible introduction to feature engineering, the craft of turning messy real-world…

What you'll learn

Steps in this lab

  1. Reading a link before it loads
  2. Install scikit-learn, offline after this
  3. Build your own labeled URL set
  4. Engineer the features from the URL string
  5. Train the detector
  6. Evaluate, and why a false negative is the dangerous one
  7. Inspect what the model leaned on
  8. The honest limits: adaptation, shorteners, and small data
  9. What you can now do that most people can't

Open the full interactive lab →