Secrets Unlocked: Evaluating LLMs for Secrets Detection in Android Apps
Marco Alecci, Jordan Samhi, Tegawendé F. Bissyandé, Jacques Klein
Key points
From the paper's conclusion- We responsibly contacted all the affected developers, of whom 170 confirmed the issues and updated their apps accordingly.
Abstract
Mobile apps frequently embed sensitive secrets, such as API keys, access tokens, client secrets, and private keys that support internal functionality or enable integration with external systems and third-party services. Developers frequently embed these secrets into Android apps, which allows attackers to extract them through reverse engineering. Once exposed, attackers can exploit them to access sensitive data, manipulate resources, or abuse APIs, resulting in severe security and potential financial risks. In this paper, we present the first large-scale empirical evidence that off-the-shelf large language models (LLMs) can automatically identify secrets in Android apps without any domain-specific prior knowledge, thereby substantially lowering the barrier for attackers. On a benchmark of 5135 Android apps from prior work, LLMs rediscovered 93% of previously known secrets and identified 4361 additional valid credentials (+195%). Extending our analysis to 50 000 Google Play apps collected between August and October 2025, we conducted the largest-scale study to date on secret detection in Android apps, identifying secrets in 17 590 apps (35%). Among the 18 908 detected secrets, 1802 remained active at discovery, including, among others, critical credentials such as Stripe payment keys, OpenAI API keys, and GitHub personal access tokens. We responsibly contacted all the affected developers, of whom 170 confirmed the issues and updated their apps accordingly. Our findings empirically demonstrate the reality of vibe hacking: anyone can now leverage publicly accessible AI models to perform complex offensive security tasks with minimal expertise.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- The Innocent Courier: Covert Exfiltration Through Legitimate LLM Web FetchingarXiv · 2026
- Inadvertent Context Leakage in Language ModelsarXiv · 2026
- GapLeak: When Privacy-Preserving LLM-based Web Agents Become a Privacy RiskarXiv · 2026
- Ghosts in the Memory: Detecting Unintended Sensitive Data in Android AppsProceedings of the ACM on Software Engineering · 2026
- CredLeakBench: Evaluating Credential Leakage and Recovery in LLM AgentsarXiv · 2026
- Eight in Ten LLMs Leak System-Prompt Secrets: Nevan, an Agentic Capture-the-Flag StudyarXiv · 2026