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

  1. FSE 2026 · Companion, tool paper

    IssueGuard: Real-Time Secret Leak Prevention Tool for GitHub Issue Reports

    Md Nafiu Rahman, Sadif Ahmed, Zahin Wahab, Gias Uddin, Rifat Shahriyar

    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}
    }
  2. MSR 2026 · Technical paper

    Secret Leak Detection in Software Issue Reports using LLMs: A Comprehensive Evaluation

    Sadif Ahmed, Md Nafiu Rahman, Zahin Wahab, Gias Uddin, Rifat Shahriyar

    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}
    }
  3. ESEM 2025 · Technical paper

    Secret Breach Detection in Source Code with Large Language Models

    Md Nafiu Rahman, Sadif Ahmed, Zahin Wahab, S M Sohan, Rifat Shahriyar

    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