Skip to main content
AnalysisPublished

been working on a phishing link detector, the false positives were way harder than i thought

Source Reddit Cybersecurity

0

Discussion

This content discusses the development of a phishing URL detector focused on identifying phishing attempts based solely on URL text analysis. The detector achieves about 90% detection on unseen phishing URLs but struggles with false positives and phishing hosted on compromised legitimate sites. It highlights challenges such as phishing URLs hosted on trusted domains like docs.google.com and the difficulty of blocking such domains outright. The tool is open source and intended as a learning resource rather than an active threat report.

r/cybersecurity (opens in a new tab)u/Rough_Card99260 points0 comments

I've been building a phishing URL detector to learn more about detection, using about 15k verified PhishTank URLs. A few things surprised me.

The most common phishing host in the whole dataset was docs.google.com. Firebase, 000webhost and other free hosting sites were near the top too. Kind of obvious in hindsight, but domain reputation doesn't help much when the domain is Google.

A lot of it is just simple URL tricks: paypal.com.account-verify.xyz, paypa1.com, punycode look-alikes, and the old google.com@evil.ru one where the browser ignores everything before the @.

False positives were honestly the hardest part. An early version flagged github.com/login as phishing because to the model every login page looked sketchy. I ended up tuning it so it stays under about 2% false alarms, since a tool that cries wolf just gets ignored.

It only looks at the URL text and never visits the site, and it tells you why it flagged something. Right now it catches about 90% of phishing on sites it hasn't seen before. The weak spot is hacked legit sites, like a small business site with a phishing kit dropped in /wp-includes/. Really hard to tell from the URL alone.

I made it open source and wrote up everything including my mistakes, so if you're just getting into cybersecurity it might be useful as a reference.

For people who work in a SOC or on email security, how do you deal with phishing on Google Docs, SharePoint etc? You obviously can't just block the domain.

https://github.com/1amaaaal/Phisguard

Links cited in the discussion

References

Community reviews

Loading reviews…