Metraipolis › archive › dc_b6d6b3c51de7
Boundary-Mutation Testing for Pattern-Based Secret Detection: A Rule-Level Method and Cross-Scanner Evaluation — arXiv:2609.02983
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.02983
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-17T02:03:56.662Z
- SHA-256 of the archived text
ed0c30a9ba4caa8021b9e0cd10c87db4ee449fb0f7697cabe9fb67f1dac3165e- Stable URL of this page
https://metraipolis.com/documento/dc_b6d6b3c51de7
How to cite
Boundary-Mutation Testing for Pattern-Based Secret Detection: A Rule-Level Method and Cross-Scanner Evaluation — arXiv:2609.02983 — arXiv (en), https://arxiv.org/abs/2609.02983 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_b6d6b3c51de7 (Metraipolis archive dc_b6d6b3c51de7, sha256 ed0c30a9ba4caa8021b9e0cd10c87db4ee449fb0f7697cabe9fb67f1dac3165e)
BibTeX
@misc{dcb6d6b3c51de7,
title = {Boundary-Mutation Testing for Pattern-Based Secret Detection: A Rule-Level Method and Cross-Scanner Evaluation — arXiv:2609.02983},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.02983},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_b6d6b3c51de7; sha256 ed0c30a9ba4caa8021b9e0cd10c87db4ee449fb0f7697cabe9fb67f1dac3165e},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.02983. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Pattern-based secret scanners are commonly validated with example-based fixtures that fix one variable: the text surrounding a credential. We introduce boundary-mutation testing to vary that context, generating credentials from each rule's own regular expression, embedding them in realistic source contexts, and classifying outcomes at the rule level rather than the tool level, yielding three detection metrics. Applied to three scanners - a 43-rule open-source scanner, Gitleaks 8.21.2, and TruffleHog 3.82.13 - detection in the primary subject holds at >=0.9976 across ten contexts but collapses to 0.5233 when a credential ends in a hyphen. Five rules are affected: two, with fixed-count quantifiers, fail totally and deterministically; three, with variable-count quantifiers, backtrack and match a truncated credential; an entropy fallback rescues some failures but downgrades their severity. We validate a repair restoring full robustness with no new false positives, and report a caution: a plausible first attempt silently regressed two rules, caught only by re-running the same battery. Gitleaks has an unrelated, source-confirmed defect - a hard-coded terminator allowlist causing total misses for most credential types - while TruffleHog shows no boundary fragility but narrowest coverage. We report marginal, not conditional, failure probabilities: one common token format is structurally immune, another fails once in 64; on 292,527 lines of real code, the false-positive ordering inverts relative to the synthetic corpus. Because per-type detection is deterministic, the comparison unit is ten credential types, not hundreds of samples; no recall difference reaches significance, so we report the null result, not a ranking. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-09-04 in cs.CR). Categorie arXiv: Cryptography and Security (cs.CR) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2609.02983 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-17T01:28:02.789Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-09-04?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).