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 | |
|---|---|
| rows | 17,730 |
| train rows | 14,157 |
| test rows | 3,573 |
| registrable domains | 16,185 |
| train domains | 12,948 |
| test domains | 3,237 |
| domains in both sides | 0 |
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
| measure | value |
|---|---|
| accuracy | 75.40% |
| precision | 77.91% |
| recall | 70.50% |
| F1 | 74.02% |
| ROC AUC | 82.93% |
| false positive rate | 19.76% |
| false negative rate | 29.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).
| model | accuracy | F1 | ROC AUC | false positive rate |
|---|---|---|---|---|
| Logistic Regression | 75.40% | 74.02% | 82.93% | 19.76% |
| Random Forest | 71.34% | 68.14% | 78.29% | 19.09% |
| Linear SVM | 75.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 benign | called phishing | |
|---|---|---|
| phishing (1,776) | 524 missed | 1,252 caught |
| benign (1,797) | 1,442 cleared | 355 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.
| bin | n | predicted | observed |
|---|---|---|---|
| 0.0-0.1 | 338 | 0.060 | 0.101 |
| 0.1-0.2 | 492 | 0.150 | 0.217 |
| 0.2-0.3 | 454 | 0.252 | 0.256 |
| 0.3-0.4 | 352 | 0.350 | 0.324 |
| 0.4-0.5 | 330 | 0.450 | 0.464 |
| 0.5-0.6 | 312 | 0.549 | 0.567 |
| 0.6-0.7 | 226 | 0.651 | 0.611 |
| 0.7-0.8 | 252 | 0.749 | 0.718 |
| 0.8-0.9 | 373 | 0.845 | 0.882 |
| 0.9-1.0 | 444 | 0.965 | 0.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.
| threshold | precision | recall | false positive rate | false negative rate |
|---|---|---|---|---|
| 30 | 66.36% | 85.53% | 42.85% | 14.47% |
| 35 | 68.90% | 82.21% | 36.67% | 17.79% |
| 50 | 77.91% | 70.50% | 19.76% | 29.50% |
| 65 | 84.99% | 56.76% | 9.91% | 43.24% |
| 70 | 87.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.shopLabelled 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.imLabelled 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.rsLabelled 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.tvLabelled 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.