Lion Cipher Lab
Train a detector for AI-written phishing text, then measure its false positives on honest business mail
- AI Security
- Intermediate
- ~45 min
- Free · no account required
Why it matters
Teams are tempted to buy or build a detector that says whether a message was written by AI, and to treat phishing as a problem that detector solves. Attackers use generators because they remove the typos that used to give phishing away. A detector trained on one kind of text can look excellent on a benchmark and still be useless on your inbox, where honest mail is often polished too. Measuring that gap yourself, with a deliberately small and honest experiment, is the best protection against believing a vendor chart. It also points to what does work: judging the request, the link and the…
What you'll learn
- building a small labelled text set and keeping test sets separate from training
- training a TF-IDF and logistic regression text classifier with scikit-learn
- reading a confusion matrix as false positives and misses
- testing a detector on data that does not look like its training set
- explaining why a high score on matching test data does not make a detector trustworthy
Steps in this lab
- The question, and why it is tempting
- Write the synthetic emails
- Train the detector
- Read the three results
- See what it really learned
- What to do instead
- Clean up
Open the full interactive lab →