Repository navigation
doormat 0.3.0
pip install --upgrade doormatDocumentation: https://dipan010.github.io/doormat/
Measured on the Enron corpus, precision rose from 59.3% to 93.5% on dev and from 67.8% to 90.0% on test, and test recall from 34.7% to 61.4%; see bench/corpus/README.md and bench/exports/RESULTS.md for which parts are independent evidence.
Added
- Credential tables: a
Passwordcolumn with one account per row is reported row by row (reasontable_column, confidence 190). The column qualifies only when a username or ID label shares its header row and at least 80% of the cells below are single tokens, so help-desk logs, form templates and notes columns do not. On the Enron corpus it finds 44 of 46 table credentials on dev and 47 of 100 on test, with no false positives; seebench/corpus/README.mdfor which parts of that are independent - Credential tables follow their account column: the username or ID label may sit up to 10 columns from the password header, and empty passwords no longer end the table. Password-manager and browser exports with the password column further from the username (Dashlane) are now read row by row
load(..., max_cells=2_000_000): a file is refused withValueErroronce more cells than this have been read. Cells are counted while each sheet is parsed, so an oversized workbook fails early instead of filling memory;Noneremoves the limit (#12)- Compound credential labels: an identifier-style label such as
MYSQL_ROOT_PASSWORD,login_password,mail__options__auth__passorME_CONFIG_MONGODB_ADMINPASSWORDis a credential label when its final part is a credential word;POSTGRES_PASSWORD_FILEand..._PASSWORD_HASHare not. In a list of configuration variables each label takes the value across from it (reasonvariable_value),..._KEY/..._SALTlabels count when the value is key material, andNAME=valuelines are read as inline credentials. Switches (yes,true,0) and signed or decimal amounts are never reported as credentials (#19) - TOTP secrets:
totpandotpsecretare secret labels, so a TOTP column in an export is reported like a password column
Fixed
.xlsxtext beginning with=was treated as a formula, so a stored password such as=k9X...was never reported; only real formula cells are formulas now- An empty form field (
Password:with nothing to its right) was paired with the label below it (Date,Region), the largest false-positive family on the Enron corpus (#7) - A
Passwordcategory value repeated down a column (a help-desk ticket log) was paired with the cell beside it; such a label may still head a credential table - Inline values inside a URL query (
otpauth://...?secret=X&issuer=Y) ran on past& .odssheets containing a merged range were skipped and listed inGridDoc.errors: LibreOffice writes covered cells for every merged range, and reading their span failed. Found by a randomised before/after test of the refactored reader- Table cells holding a placeholder (
N/A,TBD,none,?,xxxx,****) are no longer reported docs/how-it-works.mdpointed to the wrong steps for the inline pattern and formula handling, and ended with a strayEOFline
Performance
- Recognising compound labels costs about 3-4% in the Rust core on the criterion benchmarks (
process_sheet1k cells 137 µs, 5k cells 718 µs; 10 sheets of 5k cells 2.7 ms), measured in one session against the previous commit. The credential-word scan runs once per cell, in the same pass as label detection
Documentation
- The documentation site is built with Zensical, the successor to Material for MkDocs (whose security fixes end in November 2026), keeping the same configuration and look (#14)
- Design decision records under
docs/decisions/(ten so far, from removingarrow2to the cell limit), each with its options and evidence (#13)
Validation
- Credential-table answer key for dev (
bench/corpus/creds_dev_tables.json), built from the keyword pool independently of the detector;evaluate.pyreportstable_columnfindings as their own pathway - New fixture
15_credential_table.xlsx - Evaluation set A2 (
bench/configs/): configuration variables from the Docker Official Images documentation, 11 image families split into design, holdout and test before any result. Test split, run once: recall 12/81 -> 81/81, precision 98.8%. Set A's test split, re-run (not independent): Bitwarden and Chromium passwords 140 -> 592 of 605. Seebench/configs/RESULTS.md - Evaluation set A (
bench/exports/): spreadsheets in 8 documented password-manager and browser export layouts, generated from a protocol committed before any data or result. Test split, run once: 100% precision, 23% password recall (Chromium 140/140; Bitwarden 0/465, whoselogin_passwordheader is not recognised). Enron: test precision 80.6% -> 90.0% and dev 66.0% -> 93.5% with recall unchanged. Seebench/exports/RESULTS.md