Nyavu
Check a link

Nyavu

How Nyavu was measured

One held-out set, split by registrable domain, reported without rounding up. Every number the interface quotes is produced by this page's method, and the mistakes are shown too.

The corpus

17,730 addresses, 8,865 labelled phishing and 8,865 labelled benign, drawn from 16,185 registrable domains. The classes are balanced by construction, not by chance, so accuracy is not an artefact of a lopsided sample. Benign addresses come from Tranco (8,865); phishing addresses come from Phishing.Database (8,736) and OpenPhish (129).

The split, and why it is grouped

Train and test are split by registrable domain, not by URL, with a fixed seed. A campaign puts many near-identical URLs on one domain; splitting by URL would put the same domain on both sides and report a score that comes from memory rather than from reading.

count
rows17,730
train rows14,157
test rows3,573
registrable domains16,185
train domains12,948
test domains3,237
domains in both sides0

The zero is measured, not assumed: the split was regenerated from the corpus and the domains intersected. The test set also reproduces the stored predictions URL for URL.

The numbers

measurevalue
accuracy75.40%
precision77.91%
recall70.50%
F174.02%
ROC AUC82.93%
false positive rate19.76%
false negative rate29.50%

Five-fold grouped cross-validation, which repeats the domain-disjoint discipline on the training portion: accuracy 72.80% (sd 1.01), F1 70.70% (sd 1.34), AUC 80.69% (sd 1.44).

modelaccuracyF1ROC AUCfalse positive rate
Logistic Regression75.40%74.02%82.93%19.76%
Random Forest71.34%68.14%78.29%19.09%
Linear SVM75.59%74.25%82.67%19.64%

Logistic Regression was selected because it produces calibrated probabilities, which the interface depends on, and its F1 was within 0.01 of the highest score (Linear SVM).

The confusion matrix

called benigncalled phishing
phishing (1,776)524 missed1,252 caught
benign (1,797)1,442 cleared355 false alarms

1,776 phishing addresses in the test set, 1,252 caught and 524 missed. 1,797 benign addresses, 1,442 cleared and 355 flagged. The false alarms matter: they are the reason a verdict is written as an assessment, not a fact.

Does the number mean what it says?

Calibration asks whether an address scored 80 is phishing about 80 times in 100. Expected calibration error on the test set is 2.80%. The curve below plots predicted against observed across ten bins; the dashed line is perfect calibration.

predicted probability observed rate 0 1
binnpredictedobserved
0.0-0.13380.0600.101
0.1-0.24920.1500.217
0.2-0.34540.2520.256
0.3-0.43520.3500.324
0.4-0.53300.4500.464
0.5-0.63120.5490.567
0.6-0.72260.6510.611
0.7-0.82520.7490.718
0.8-0.93730.8450.882
0.9-1.04440.9650.962

Read the ends honestly: below 0.2 the model is under-confident, predicting about 6 in 100 where 10 in 100 were phishing, and about 15 where 22 were. Near the top it is close. That is the safer direction to be wrong in for a detector, since it under-states risk rather than inventing it.

Where the bands come from

The verdict threshold is 50: at or above it the card says phishing. The bands around that line are for reading the score, not for changing the decision. They sit 15 points either side so a score near the middle is shown as uncertain rather than pushed to one side. The sweep is the evidence for that choice.

thresholdprecisionrecallfalse positive ratefalse negative rate
3066.36%85.53%42.85%14.47%
3568.90%82.21%36.67%17.79%
5077.91%70.50%19.76%29.50%
6584.99%56.76%9.91%43.24%
7087.65%52.76%7.35%47.24%

At 35 the detector catches 82.21% of phishing at the cost of flagging 36.67% of benign addresses; at 65 it flags 9.91% but misses more than it catches. The middle is where both errors stay visible, which is the honest place for a warning.

What it gets wrong

  • False positive http://marpple.shop

    Labelled benign by Tranco, scored 96.8 in 100. The name is short and ends in .shop, a cheap ending the model has learned to distrust, and the reputation list does not reach this domain.

    Measured: cheap ending, length 12.

  • False positive http://telegram.im

    Labelled benign by Tranco, scored 95.6 in 100. This is Telegram's own .im address. The character patterns of the name resemble the brand-imitating domains in the corpus, and there is no institution or reputation entry to override the score.

    Measured: length 11.

  • False negative http://doxa.rs

    Labelled phishing by Phishing.Database, scored 3.3 in 100. Four letters, no digits, no hyphens, no brand: there is almost nothing in the name for the model to read, which is the case it is weakest at.

    Measured: length 7.

  • False negative https://mobilefb-vvme9wil.88live.tv

    Labelled phishing by Phishing.Database, scored 3.5 in 100. The brand sits in a subdomain, but the model reads only the registered domain, so the imitation is invisible to it and the host looks like a hosting suffix.

    Measured: 2 digits, length 9.

These are the highest-confidence errors in the held-out set, not curated examples: two benign addresses the model was most sure about, and two phishing addresses it was most sure were fine. They are the fastest way to see the shape of its blind spots.

What it cannot see

  • Paths and queries. Only the registered domain and its shape are read. A clean domain with a hostile path is invisible to the model, though the interface's credential rule catches some.
  • Registration and reputation. There is no WHOIS, no age, no certificate data. The reputation signal is a Tranco top-1,200 list and an institution list of published addresses.
  • Page content. Nothing is fetched, so what the page would have shown is unknown.
  • Time. The corpus has a date. A domain re-registered after it was labelled can change class, which is why a report is dated.
  • A miss never clears an address. Absence from a list is not evidence of safety, and the card says so.

Reproducing it

python ml/train.py

# split: GroupShuffleSplit(n_splits=1, test_size=0.2, random_state=42)
#        groups = registrable domain of the host
# model: logistic regression, C=4, liblinear, calibrated
# test:  3,573 rows, 3,237 domains, none seen in training

Artefacts: ml/artifacts/metrics.json (all three models, cross-validation, threshold sweep), ml/artifacts/holdout_predictions.csv (per-URL probabilities used for the curve and the matrix), data/processed/urls_v2.csv (the corpus). This page is generated from those files by python tools/build_evaluation.py rather than typed, which is why its numbers cannot drift from the model's.