How accurate is VeilGuard?

Every detector is measured on a labelled test corpus each time the rules change. These are the current numbers, with the method and its limits, so you can judge them yourself.

Summary

Loading the latest results… If nothing appears, open benchmark.json.

How we measure.

Positives per detector

For every detector we generate sentences that contain one fake value, such as "IBAN DE89 ..." or "CNIC 35202-...". Values are random but well formed: where a detector checks a check digit, the value has a correct one. A value counts as caught when this detector, or another one covering the same characters, reports it.

Hand-written phrasings

A second set of about 140 examples is written by hand the way people type values in chats ("my pin is 4821", "pw: ...", an SSN with odd spacing, full-width digits), with about 80 look-alike sentences that must not be flagged ("PIN is required for this card"). It is part of the test suite too.

Near misses

For detectors that verify a checksum, each positive is also tried with its check digit changed. Rejecting those shows the check really runs: a random number in the right format is not reported as an ID, card or account.

Ordinary text, 30+ languages

False positives are counted on about 14,000 everyday sentences: public sentence sets in 12 languages (Tatoeba, CC BY 2.0 FR), English Wikipedia and dialogue sentences (CC BY-SA 4.0), short sentences we wrote in 20 more languages, and business text full of order numbers, dates, prices and versions.

Same corpus, three engines

The browser extension's engine produces these numbers. The Windows app and the Android keyboard run a sample of the same corpus in their own test suites and must report exactly the same findings, severities, confidence and positions.

What these numbers do not say.

Recall here measures whether each detector covers the formats and labels it was built for. Real messages can write values in ways the corpus does not include, so real-world recall will be lower.

The ordinary-text sentences contain real names, birthdays and street addresses of public figures from Wikipedia. Name and address detectors flag some of them; we report that rate separately from IDs, cards, bank details and secrets.

Precision depends on how often each kind of value appears in your text. The per-detector precision below is for this corpus only. Low-severity findings VeilGuard is unsure about ("Possible") never open a warning on their own by default.

The corpus and the script are in the source code (tests/benchmark and scripts/benchmark.mjs), and the test suite fails if accuracy drops below fixed thresholds.

By category.

Ordinary text by language.

Share of sentences with any finding at the default level (Medium and above).

Every detector.

Confidence: High = checksum or vendor format verified, Medium = label or context words, Low = heuristic.