Secret Scanner Agent: Extracting Secrets and Access Context from Unstructured Documents
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
Exposed documents such as emails, chat threads, tickets, and incident notes routinely leak credentials, but during incident response a leaked secret is only half the story. Responders also need to identify the ``door'' the secret opens: the account, tenant, endpoint, database, cloud resource, or other system that the credential could allow an attacker to access. Traditional secret scanners rely on regular expressions or trained classifiers which work well on well-formatted code, yet they struggle when a credential is fragmented, reformatted, or far from the resource it unlocks, and they report the secret string without naming what it opens. We present Secret Scanner Agent (SSA), a multi-agent large-language-model system that extracts both the secret and its associated door, together with supporting evidence, from unstructured exposed documents. SSA pairs a detection agent that favors recall with a review agent that filters false positives and recovers missing context. Because real credential data is sensitive, we evaluate SSA on synthetic benchmarks we generated that span 23 secret types and multiple document formats, scored with a three-step pipeline of programmatic matching, an LLM judge, and human review. Across six models, multi-agent SSA improves extraction precision over a single-agent variant, with the largest gains on door extraction, by up to 16 percentage points. SSA matches a regular-expression scanner's precision while more than tripling its recall, and against thirteen security analysts it is more precise, recovers nearly twice as many secret--door pairs, and runs five to seventeen times faster. By returning the secret, its door, and supporting evidence in one result, SSA turns credential detection into an actionable finding for triage and remediation.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 20 of its 36 references that are in the map. First posted on arXiv 10 Jul 2026.
Builds on
20 of 36 references.
References · 20
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversationcited by 1,906
- 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
- 2023Improving Factuality and Reasoning in Language Models through Multiagent Debatecited by 1,739
- 2023CAMEL: Communicative Agents for "Mind" Exploration of Large Language Model Societycited by 1,348
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,096
- 2023ChatDev: Communicative Agents for Software Developmentcited by 893
- 2022WANLI: Worker and AI Collaboration for Natural Language Inference Dataset Creationcited by 200
- 2024Source2Synth: Synthetic Data Generation and Curation Grounded in Real Data Sourcescited by 27
- 2024DataGen: Unified Synthetic Dataset Generation via Large Language Modelscited by 22
8 more
- 2023Interpreting the Curse of Dimensionality from Distance Concentration and Manifold Effectcited by 14
- 2024Machine Learning vs Deep Learning: The Generalization Problemcited by 6
- 2022UTNLP at SemEval-2022 Task 6: A Comparative Analysis of Sarcasm Detection Using Generative-based and Mutation-based Data Augmentationcited by 5
- 2023A Comparative Study of Software Secrets Reporting by Secret Detection Toolscited by 5
- 2025Detecting Hard-Coded Credentials in Software Repositories via LLMscited by 2
- 2024Secret Leak Detection in Software Issue Reports using LLMs: A Comprehensive Evaluationcited by 1
- 2025You Have Been LaTeXpOsEd: A Systematic Analysis of Information Leakage in Preprint Archives Using Large Language Modelscited by 1
- 2025Evaluating Large Language Models in detecting Secrets in Android Appscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026CredLeakBench: Evaluating Credential Leakage and Recovery in LLM Agents
- 2026Caught in the Act(ivation): Toward Pre-Output and Multi-Turn Detection of Credential Exfiltration by LLM Agents
- 2025Argus: A Multi-Agent Sensitive Information Leakage Detection Framework Based on Hierarchical Reference Relationships
- 2026Backdoor in the Loop: Compromising Agentic Search via Malicious Retrievers
- 2026AgentDoxx: Agentic Re-identification of Anonymized Text with Web Search
- 2026OCELOT: Inference-Leakage Budgets for Privacy-Preserving LLM Agents
- 2026Beyond Visual Evidence: Revealing and Mitigating Relational Privacy Leakage in Document MLLMs
- 2026API Secrets Should Never Become Tokens in the LLM's Vocabulary: A Threat Analysis of API Credential Handling in LLM Agent Systems and an Empirical Evaluation of a Vault-Mediated Execution Boundary