Skip to content

doormat 0.3.0

Choose a tag to compare

@dipan010 dipan010 released this 16 Oct 22:13
· 57 commits to main since this release
pip install --upgrade doormat

Documentation: 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 Password column with one account per row is reported row by row (reason table_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; see bench/corpus/README.md for 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 with ValueError once 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; None removes the limit (#12)
  • Compound credential labels: an identifier-style label such as MYSQL_ROOT_PASSWORD, login_password, mail__options__auth__pass or ME_CONFIG_MONGODB_ADMINPASSWORD is a credential label when its final part is a credential word; POSTGRES_PASSWORD_FILE and ..._PASSWORD_HASH are not. In a list of configuration variables each label takes the value across from it (reason variable_value), ..._KEY/..._SALT labels count when the value is key material, and NAME=value lines are read as inline credentials. Switches (yes, true, 0) and signed or decimal amounts are never reported as credentials (#19)
  • TOTP secrets: totp and otpsecret are secret labels, so a TOTP column in an export is reported like a password column

Fixed

  • .xlsx text 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 Password category 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 &
  • .ods sheets containing a merged range were skipped and listed in GridDoc.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.md pointed to the wrong steps for the inline pattern and formula handling, and ended with a stray EOF line

Performance

  • Recognising compound labels costs about 3-4% in the Rust core on the criterion benchmarks (process_sheet 1k 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 removing arrow2 to 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.py reports table_column findings 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. See bench/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, whose login_password header is not recognised). Enron: test precision 80.6% -> 90.0% and dev 66.0% -> 93.5% with recall unchanged. See bench/exports/RESULTS.md