Debug logging causes most credential leaks in LLM agent skills, requiring cross-modal analysis
76.3% of credential leaks need joint code and natural-language analysis and 73.5% stem from debug logging, with 89.6% of leaked credentials exploitable without privileges
AI/ML arXiv 3 Apr 2026 Measurement Prototype evidence
Published as “Credential Leakage in LLM Agent Skills: A Large-Scale Empirical Study”
Why it matters
Credential leakage can be silently broadcast via stdout, enabling attackers to harvest usable secrets from widely distributed agent skills.
Summary
Most credential leaks (89.6%) are exploitable at runtime, but they appear in only 3.1% of sampled skills, and the majority (84.0%) stem from developer negligence rather than malicious intent. The study analyzed 17,022 real-world skills from the SkillsMP marketplace, using static regex/AST analysis, dynamic sandbox testing, and manual review to uncover 1,708 leakage issues across 520 skills. Evidence is strong for the specific patterns reported, but it is limited to a single open-source skill platform.
What they found 3
- Cross-modal analysis is required to detect the majority of leaks
“76.3% of cases can only be detected by jointly analyzing natural language descriptions and programming logic; neither modality alone reveals the exposure”
- Debug logging is the dominant exposure vector
“Information Exposure via print/console.log accounts for 73.5% of all vulnerability issues (1,007/1,371), because agent frameworks capture stdout into the LLM context window, making logged credentials retrievable through natural language queries.”
- Most affected skills are exploitable at runtime
“Dynamic sandbox testing confirms 89.6% exploitability (466/520 skills), with 92.5% triggered during routine execution requiring no elevated privileges.”
Caveats 5
- Only 3.1% of sampled skills contain any credential leakage ("520 (3.1%) contain 1,708 credential leakage issues").
- The vast majority of leaks arise from developer negligence rather than malicious intent ("84.0% from developer negligence").
- Our AST-based credential-flow analysis covers only Python and JavaScript at the intra-procedural level.
- All data come from one platform, SkillsMP.
- Classifying intent-whether a credential leak is accidental or deliberate-is inherently subjective.
What’s new here 4
- Identifies cross-modal leakage where 76.3% of cases are visible only when natural-language descriptions and code are analyzed together.
- Shows that debug logging (print/console.log) is the dominant exposure vector, accounting for 73.5% of issues.
- Demonstrates that leaked credentials remain exploitable in 89.6% of affected skills during normal execution without elevated privileges.
- Reveals fork-based distribution preserves leaked credentials even after upstream remediation.