P/01

Kanca

AI-powered phishing link scanner

A web app and Chrome extension that scans suspicious links from SMS, email and WhatsApp, gives a 0–100 risk score and explains why, in Turkish or English.

Year
2026
Status
Live
235K
URLs in training data (PhiUSIIL)
93.7%
phishing precision
~110K
USOM entries, refreshed hourly
58
automated tests on GitHub Actions

Kanca is Turkish for “hook”: phishing is oltalama (“fishing with a rod”) in Turkish. Paste a suspicious link or a whole message; Kanca extracts the links and gives each one a 0–100 risk score with the reasons behind it.

What it does

  • Risk score and verdict: safe, suspicious or dangerous
  • Explainable results: every score lists the signals that triggered it
  • Turkey-aware: detects impersonation of Turkish banks, carriers and e-commerce brands, such as fake PTT cargo or Garanti BBVA links
  • Paste a whole message: links are extracted from SMS, WhatsApp or email text
  • Threat intelligence: USOM’s national phishing list and OpenPhish, refreshed hourly; Google Safe Browsing; domain age from RDAP
  • Browser extension: scan the open page, or right-click any link → Scan link with Kanca

How it works

Message ──► link extraction ──► URL(s)
URL ──► Google Safe Browsing ──listed──► dangerous
    ──► Reputation (allowlist + Tranco top 10k) ──known──► safe
    ──► USOM / OpenPhish blocklists ──listed──► dangerous
            │ unknown
            ▼
     Hostname features ──► Gradient boosting model ──► P(phishing)
            +  domain age (RDAP): < 30 days ↑, > 2 years ↓
            +  brand impersonation (typo, look-alike letters, bait words)
            +  path / scheme rules (@, //, brand in path, no HTTPS)
            ▼
     risk score + reasons

The model is a HistGradientBoostingClassifier on 19 lexical hostname features: length, digits, subdomain structure, entropy, suspicious TLD, punycode and more.

The interesting part: catching a data leak

The first model, trained on full URLs, scored 99.6% accuracy, but it flagged github.com/... and youtube.com/watch?v=... as phishing. The data showed why:

HTTPS Has a path Starts with www.
Legitimate URLs 100% 0% 100%
Phishing URLs 49% 28% 41%

Every legitimate URL in the dataset was a bare https://www.<domain> homepage, so the model had learned “has a path → phishing” instead of what phishing looks like.

The fix: train on hostname-only features, deduplicate by hostname so the same domain can’t appear in both train and test, and move path-level signals into explicit rules. The honest result:

Metric Value
Accuracy 85.2%
Precision (phishing) 93.7%
Recall (phishing) 66.1%
F1 0.775
ROC AUC 0.862

The score is lower, but the model now behaves correctly on real-world links.

The same bias, again: subdomains

After launch, Kanca flagged its own address and sites like docs.python.org. No legitimate host in the dataset had a subdomain, so the model learned “has a subdomain → phishing”. I added subdomain augmentation, three new features and a rule for long-established parent domains:

Before After
False alarms, legitimate subdomains 81.8% 6.1%
Phishing caught, hosts with subdomains 96.6% 95.3%

Tech stack

  • Backend: Python, FastAPI, scikit-learn, pandas, httpx
  • Tests: pytest (58 tests), GitHub Actions
  • Frontend: Next.js 15, React 19, TypeScript, Tailwind CSS
  • Extension: Manifest V3 (Chrome, Edge, Brave)
  • Deploy: Render (API) and Vercel (web)
Esc
↑↓ selectEnter open