Skip to content

Evaluation

doormat is measured on real spreadsheets, not only on synthetic fixtures. The full method, labelling rubric and caveats are in bench/corpus/README.md; this page summarises them.

Corpus

The Enron spreadsheet corpus (Hermans and Murphy-Hill, ICSE 2015, CC BY 4.0): 15,929 real spreadsheets attached to Enron emails. It is not redistributed with doormat; bench/corpus/fetch_enron.py downloads and verifies it.

Files are split by hash: about 20% form a test split, the rest dev. The test split was labelled before any detection change and is now frozen; later fixes were partly designed from its errors, so out-of-sample precision is measured on dev.

Results

Split Engine Findings Precision Recall
test 0.1.0 334 16.5% 31.2% (55 of 176)
test 0.2.0 90 67.8% (in sample) 34.7% (61 of 176)
test main 120 90.0% 61.4% (108 of 176)
dev 0.2.0 243 59.3% not measured
dev main 201 93.5% credential tables 44 of 46
  • Recall is measured against keyword-discoverable credentials. Credentials with no label nearby are invisible to both doormat and the reviewer, so true recall is likely lower.
  • Results are concentrated. One directory file holds 31 of the test-split true positives, and recurring service-account templates repeat across dev. Counting each distinct (key, value) pair once, precision is 76% on test and 34% on dev.
  • Credential tables (main) were designed on dev and checked once on test. They found 47 of 100 test table credentials with no false positives, but 39 of those are in copies of a workbook whose dev copy shaped the rule; the one unrelated workbook gives 8 of 31. Details in the corpus README.
  • Labels were assigned by one reviewer, who also designed the fixes. No second-annotator agreement has been measured.

Credential exports (set A)

A second, synthetic evaluation set lays credentials out like the exports of password managers and browsers, in 8 layouts taken from vendor documentation and source code. Its protocol was committed before any data or result, and splits are by layout family. On the test split, run once, precision is 100% and password recall 23%: Chromium-format exports are found in full, while Bitwarden's login_password header was not recognised. Details in bench/exports/RESULTS.md.

Configuration variables (set A2)

A third set, built to fix compound labels such as login_password (#19), lists configuration variables taken from the Docker Official Images documentation, including hard negatives (POSTGRES_PASSWORD_FILE, MYSQL_RANDOM_ROOT_PASSWORD, MARIADB_ROOT_PASSWORD_HASH). Its protocol was committed first and splits are by image family. On the test split, run once, recall is 81/81 and precision 98.8% (one false positive), against 12/81 before. Re-running set A's spent test split, which is not independent evidence because Bitwarden motivated the change, finds 592 of 605 Bitwarden and Chromium passwords. Details in bench/configs/RESULTS.md.

Spreadsheets from the public web (set B)

The first set of real files not used for any tuning: 36,439 spreadsheets from the Fuse corpus (Common Crawl), split by layout family, with a protocol committed before download and an answer key committed before the run. The test split, topped up from the reserve under a pre-registered minimum-yield rule, holds 11,200 files and 60 credentials. Both 0.3.0 and main found 58 of the 60 with 58 of 74 findings correct, but all 58 are one account table: outside it, doormat missed a password written in prose and one two cells from its label, and raised 16 false alarms. main reads 10,656 of the files against 0.3.0's 6,640, after the .xls fix (ADR 0015). Details in bench/web/RESULTS.md.

Robustness

0.2.0 reads all 15,929 files. The last 4 failures were malformed parts that hold no cells (an invalid print-titles name, a pivot cache with - where a number belongs); the .xlsx reader now skips those parts. Reading the whole corpus takes about 27 minutes of summed per-file time.

Reproducing

python bench/corpus/fetch_enron.py
python bench/corpus/scan.py --workers 4
python bench/corpus/evaluate.py bench/corpus/results/scan.jsonl

Labels are stored with SHA-256 hashes of values, never the values themselves.