cd /news/artificial-intelligence/credentials-are-leaked-by-llm-agent-… · home topics artificial-intelligence article
[ARTICLE · art-112209] src=arxiv.org ↗ pub= topic=artificial-intelligence verified=true sentiment=↓ negative

Credentials Are Leaked by LLM Agent Skills: An Empirical Study

A new empirical study from researchers on arXiv analyzed 17,022 skills sampled from 170,226 artifacts on SkillsMP, the largest open-source skill marketplace, and found 520 affected skills containing 1,708 security issues, with 89.6% of leaked credentials immediately exploitable. The study, which identifies 10 leakage patterns, reports that debug logging accounts for 73.5% of vulnerabilities because agent frameworks feed stdout into the LLM context window, and that fork-based distribution 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.

read2 min views1 publishedAug 26, 2026
Credentials Are Leaked by LLM Agent Skills: An Empirical Study
Image: source
[Submitted on 3 Apr 2026 (

[v1](https://arxiv.org/abs/2604.03070v1)), last revised 19 Jun 2026 (this version, v2)]# Title:How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study

[View PDF](/pdf/2604.03070)

[HTML (experimental)](https://arxiv.org/html/2604.03070v2)

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.

Submission history #

From: Yi Liu [[view email](/show-email/0c9bce96/2604.03070)]

**Fri, 3 Apr 2026 14:50:16 UTC (301 KB)**

[[v1]](/abs/2604.03070v1)**[v2]** Fri, 19 Jun 2026 04:47:04 UTC (310 KB)

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?)# Code, Data and Media Associated with this Article alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?)# Demos Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?)# arXivLabs: experimental projects with community collaborators arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @arxiv 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/credentials-are-leak…] indexed:0 read:2min 2026-08-26 ·