Skip to content
Launchpad Library logo

All resources / Research & Papers

FreeResearch Paper
Research & Papers

How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study

The PDF opens on the site where the paper is published.

Authors
Zhihao Chen, Ying Zhang, Yi Liu, Gelei Deng, Yuekang Li, et al.
Venue
Preprint, not yet peer-reviewed
Published
April 2026
ID
arXiv:2604.03070

Abstract

Large Language Model (LLM) agents increasingly rely on third-party skills that operate within privileged execution environments and routinely handle sensitive credentials, yet how these credentials are leaked remains largely unexplored. To fill this gap, we present the first large-scale empirical study on credential leakage in agent skills. From 170,226 artifacts on SkillsMP, the largest open-source skill marketplace, we sampled 17,022 skills via stratified random sampling and analyzed each through static secret extraction (regex and AST parsing), dynamic sandbox testing with mock credentials, and cross-referencing developer intent against runtime behavior. Our analysis identifies 520 affected skills containing 1,708 security issues, and yields a taxonomy of 10 leakage patterns. Three findings stand out. First, 76.3% of cases require jointly analyzing natural-language descriptions and programming logic, showing that credential exposure in skills is fundamentally cross-modal. Second, debug logging accounts for 73.5% of vulnerabilities because agent frameworks feed stdout into the LLM context window, turning routine debugging into a credential exposure vector. Third, 89.6% of leaked credentials are immediately exploitable -- 92.5% during routine execution without elevated privileges -- and the fork-based distribution model defeats remediation, as secrets removed from 107 upstream repositories persist across 50+ independent forks. Following responsible disclosure, all malicious skills have been removed and 91.6% of hardcoded cases remediated. We release our dataset, taxonomy, and detection pipeline to support future agent security research.

The authors' own abstract, copied from arxiv.org.

How to cite it

Built from the details listed on this page. Check them against the paper before you submit.

APA
Chen, Z., Zhang, Y., Liu, Y., Deng, G., Li, Y., et al. (2026). How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study. Preprint, not yet peer-reviewed. https://arxiv.org/abs/2604.03070
MLA
Chen, Zhihao, et al. "How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study." Preprint, not yet peer-reviewed, 2026, https://arxiv.org/abs/2604.03070.
BibTeX
@article{chen2026how,
  title = {How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study},
  author = {Zhihao Chen and Ying Zhang and Yi Liu and Gelei Deng and Yuekang Li and others},
  journal = {Preprint, not yet peer-reviewed},
  year = {2026},
  url = {https://arxiv.org/abs/2604.03070},
}

What it is

A research paper presenting the first large-scale empirical study of credential leakage in LLM agent skills — third-party add-ons that run in privileged environments and routinely handle sensitive credentials. The study examines how those credentials leak across a large corpus of skills.

Topics

Added Oct 1, 2026 · 0 opens