LLM4Secrets
Finding leaked secrets in software with large language models.
API keys, tokens and passwords leak into source code and issue reports every day. Regex-based scanners find them, but they also flag thousands of strings that only look like secrets. We combine the two: regular expressions find candidate strings, and a language model reads the surrounding context to decide which candidates are real secrets.
text → regex candidates → LLM → secret / not a secret
Papers
-
IssueGuard: Real-Time Secret Leak Prevention Tool for GitHub Issue Reports
A Chrome extension and command-line tool that flag secrets in a GitHub issue while you write it.
BibTeX
@inproceedings{rahman2026issueguard, author = {Rahman, Md Nafiu and Ahmed, Sadif and Wahab, Zahin and Uddin, Gias and Shahriyar, Rifat}, title = {{IssueGuard}: Real-Time Secret Leak Prevention Tool for {GitHub} Issue Reports}, booktitle = {Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering (FSE Companion '26)}, publisher = {ACM}, year = {2026}, pages = {132--136}, doi = {10.1145/3803437.3806406} } -
Secret Leak Detection in Software Issue Reports using LLMs: A Comprehensive Evaluation
A benchmark of 54,148 instances from GitHub issues; fine-tuned open-source LLMs reach 94.49% F1.
BibTeX
@inproceedings{ahmed2026secretleakdetection, author = {Ahmed, Sadif and Rahman, Md Nafiu and Wahab, Zahin and Uddin, Gias and Shahriyar, Rifat}, title = {Secret Leak Detection in Software Issue Reports using {LLMs}: A Comprehensive Evaluation}, booktitle = {Proceedings of the 23rd International Conference on Mining Software Repositories (MSR '26)}, publisher = {ACM}, year = {2026}, pages = {169--180}, doi = {10.1145/3793302.3793348}, eprint = {2410.23657}, archivePrefix = {arXiv}, primaryClass = {cs.SE} } -
Secret Breach Detection in Source Code with Large Language Models
Evaluated on SecretBench data from 818 repositories; fine-tuned LLaMA-3.1 8B and Mistral-7B reach F1 up to 0.985.
BibTeX
@inproceedings{rahman2025secretbreachdetectionsource, author = {Rahman, Md Nafiu and Ahmed, Sadif and Wahab, Zahin and Sohan, S M and Shahriyar, Rifat}, title = {Secret Breach Detection in Source Code with Large Language Models}, booktitle = {2025 ACM/IEEE International Symposium on Empirical Software Engineering and Measurement (ESEM)}, year = {2025}, pages = {207--217}, doi = {10.1109/ESEM64174.2025.00021}, eprint = {2504.18784}, archivePrefix = {arXiv}, primaryClass = {cs.SE} }
Code & data
- secrets-in-codeReplication package, ESEM 2025. SecretBench data comes from its authors.
- secrets-in-issuesReplication package, MSR 2026. Dataset on Zenodo (CC BY 4.0).
- IssueGuardChrome extension, API and CLI, FSE 2026. Maintained in disa-lab.