Metraipolis › archive › dc_2e3bd5a319f1
Checked-In Secret Detection: Strings Are All You Need — arXiv:2608.04523
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.04523
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-31T11:27:28.819Z
- SHA-256 of the archived text
f2c20fcd795798cc6df786b29ca4a2e16e2b98fe024bc5ad6925562a693ecce8- Stable URL of this page
https://metraipolis.com/documento/dc_2e3bd5a319f1
How to cite
Checked-In Secret Detection: Strings Are All You Need — arXiv:2608.04523 — arXiv (en), https://arxiv.org/abs/2608.04523 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_2e3bd5a319f1 (Metraipolis archive dc_2e3bd5a319f1, sha256 f2c20fcd795798cc6df786b29ca4a2e16e2b98fe024bc5ad6925562a693ecce8)
BibTeX
@misc{dc2e3bd5a319f1,
title = {Checked-In Secret Detection: Strings Are All You Need — arXiv:2608.04523},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.04523},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_2e3bd5a319f1; sha256 f2c20fcd795798cc6df786b29ca4a2e16e2b98fe024bc5ad6925562a693ecce8},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.04523. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Hardcoded secrets in source code pose critical security vulnerabilities which can be easily exploited by malicious adversaries. Existing regex-based detection approaches suffer from fundamental limitations, as secrets often lack identifiable patterns, resulting in poor precision and recall. Recent studies have explored context-aware detection methods, as surrounding code can reveal the purpose of candidate strings. However, these methods confront three key challenges: (1) obfuscation robustness where models over-rely on easily obfuscated identifiers, (2) cross-language generalization difficulties due to uneven training data distribution, and (3) lengthy and noisy context that introduces excessive irrelevant tokens and slows inference. We observe that strings serve as a critical information source for code semantics, offering superior contextual density, obfuscation robustness, and language independence. Based on this insight, we propose StringGroup, a novel context extraction algorithm that mines strings surrounding potential secrets. By introducing a relatively simple modification to existing patterns that narrows the analysis specifically to string literals, the method achieves significant gains. With only 33.2% of the original context, it preserves over 80% of semantic information and significantly improves the signal-to-noise ratio for secret detection. We further design a context-aware secret detection tool, Secretron, based on StringGroup methods and Transformer model. Evaluation on the SecretBench dataset demonstrates high accuracy with 98.74% F1-score and strong robustness under obfuscation and cross-language scenarios, outperforming state-of-the-art LLM-based baselines. We deploy our tool in real-world environments and successfully detect 48 previously unknown secret keys from 26 applications, demonstrating the practical effectiveness of our approach. Tema degli esploratori: fiducia digitale e crittografia (retro-catalogo arXiv: annunci del 2026-08-06 in cs.CR). Categorie arXiv: Cryptography and Security (cs.CR) ; Software Engineering (cs.SE). Pagina del lavoro: https://arxiv.org/abs/2608.04523 — 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-31T11:17:19.441Z dalla pagina https://arxiv.org/catchup/cs.CR/2026-08-06?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).