AIセキュリティポータル K Program

Carried-Over and Agent-Native Threats in the Supply Chain of LLM Agent Skills

Share
Abstract
Agent skills are reusable packages that extend a large language model (LLM) agent with scripts, third-party dependencies, and natural-language instructions. An agent builds a skill's arguments from user requests and untrusted external content, so a flaw left by a benign author can escalate a prompt injection to code execution. Existing studies target malicious skills or a single attack vector, and none tests whether an agent can reach such flaws. We present the first registry-scale empirical study of the supply chain attack surface arising from unintentional vulnerabilities in agent skills, over all 48,682 skills in ClawHub. The study covers two carried-over risks, dependencies and first-party code, and two agent-native ones, install instructions and credentials printed to stdout. We screen all skills by static analysis, manually review all 3,428 cases flagged by the four main detectors, and test reachability by running sampled flagged skills in a sandbox and with a live LLM agent under indirect prompt injection. First, dependency risk carries over in a different form: 49.6% of the skills with resolvable dependencies depend on a version with a known CVE, and unlike npm packages, which mostly become vulnerable after release, 78.3% of them are born vulnerable, already exposed at publication. Second, few of these CVEs are reachable: agent input reaches the vulnerable function in only 3.0% of the affected skills, whereas 21 of 22 sampled first-party flaws are exploited end to end in the sandbox. Third, a live agent executes the injected payload in 48.5% of the sampled flagged skills, but almost always in its own shell before the skill runs, and the payload reaches a flaw in the skill itself in only 5.0%. Hence, registries should prioritize first-party flaws over dependency alerts, and agent runtimes should not pass skill arguments through a shell.
Empirical analysis of security vulnerabilities in Python packages
Mahmoud Alfadel, Diego Elias Costa, Emad Shihab
Published: 2023
Agentdojo: A Dynamic Environment to Evaluate Prompt Injection Attacks and Defenses for LLM Agents
E. Debenedetti, J. Zhang, M. Balunovic, L. Beurer-Kellner, M. Fischer, F. Tramèr
Published: 2024
On the impact of security vulnerabilities in the npm package dependency network
Alexandre Decan, Tom Mens, Eleni Constantinou
Published: 2018
Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threats
Xinhao Deng, Yixiang Zhang, Jiaqing Wu, Jiaqi Bai, Sibo Yi, Zhuoheng Zou, Yue Xiao, Rennai Qiu, Jianan Ma, Jialuo Chen, Xiaohu Du, Xiaofang Yang, Shiwen Cui, Changhua Meng, Weiqiang Wang, Jiaxing Song, Ke Xu, Qi Li
Published: 2026.3.12
Towards measuring supply chain attacks on package managers for interpreted languages
R. Duan, O. Alrawi, R. P. Kasturi, R. Elder, B. Saltaformaggio, W. Lee
Published: 2020
Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection
Kai Greshake, Sahar Abdelnabi, Shailesh Mishra, Christoph Endres, Thorsten Holz, Mario Fritz
Published: 2023.2.24
The confused deputy: (or why capabilities might have been invented
Norm Hardy
Published: 1988
Pinning is futile: You need more than local dependency versioning to defend against supply chain attacks
Hao He, Bogdan Vasilescu, Christian Kästner
Published: 2025
Model context protocol (mcp): Landscape, security threats, and future research directions
X. Hou, Y. Zhao, S. Wang, H. Wang
Published: 2025
Empirical analysis of vulnerabilities life cycle in Golang ecosystem
Jinchang Hu, Lyuye Zhang, Chengwei Liu, Sen Yang, Song Huang, Yang Liu
Published: 2024
A comparative study of vulnerability reporting by software composition analysis tools
Nasif Imtiaz, Seaver Thorn, Laurie Williams
Published: 2021
Sok: Taxonomy of attacks on open-source software supply chains
P. Ladisa, H. Plate, M. Martinez, O. Barais
Published: 2023
Demystifying the vulnerability propagation and its evolution via dependency trees in the NPM ecosystem
Liu, C., Chen, S., Fan, L., Chen, B., Liu, Y., Peng, X.
Published: 2022
Demystifying RCE vulnerabilities in LLM-integrated apps
Liu, T., Deng, Z., Meng, G., Li, Y., Chen, K.
Published: 2024
Finding security vulnerabilities in Java applications with static analysis
V. Benjamin Livshits, Monica S. Lam
Published: 2005
Backstabber’s knife collection: A review of open source software supply chain attacks
M. Ohm, H. Plate, A. Sykosch, M. Meier
Published: 2020
Vulnerable open source dependencies: Counting those that matter
Ivan Pashchenko, Henrik Plate, Serena Elisa Ponta, Antonino Sabetta, Fabio Massacci
Published: 2018
Beyond metadata: Code-centric and usage-based analysis of known vulnerabilities in open-source software
Serena Elisa Ponta, Henrik Plate, Antonino Sabetta
Published: 2018
Which is better for reducing outdated and vulnerable dependencies: Pinning or floating?
Imranur Rahman, Jill Marley, William Enck, Laurie Williams
Published: 2025
Identifying the Risks of LM Agents with an LM-Emulated Sandbox
Yangjun Ruan, Honghua Dong, Andrew Wang, Silviu Pitis, Yongchao Zhou, Jimmy Ba, Yann Dubois, Chris J Maddison, Tatsunori Hashimoto
Published: 2024
Typosquatting and combosquatting attacks on the Python ecosystem
Duc-Ly Vu, Ivan Pashchenko, Fabio Massacci, Henrik Plate, Antonino Sabetta
Published: 2020
The rise and potential of large language model based agents: A survey
Xi, Z., Chen, W., Guo, X., He, W., Ding, Y., Zhang, B., Liao, Y., Shang, C., Cui, J., Xu, Y., Wen, X., Zheng, T., Zhou, W., Zhao, H., Gui, T., Zhang, Q., Huang, X.
Published: 2025
Modeling and discovering vulnerabilities with code property graphs
F. Yamaguchi, N. Golde, D. Arp, K. Rieck
Published: 2014
What are weak links in the npm supply chain?
Nusrat Zahan, Thomas Zimmermann, Patrice Godefroid, Brendan Murphy, Chandra Maddila, Laurie Williams
Published: 2022
Adaptive attacks break defenses against indirect prompt injection attacks on llm agents
Q. Zhan, R. Fang, H. S. Panchal, D. Kang
Published: 2025
InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents
Qiusi Zhan, Zhixiang Liang, Zifan Ying, Daniel Kang
Published: 2024.3.5
Mitigating persistence of open-source vulnerabilities in maven ecosystem
Lyuye Zhang, Chengwei Liu, Sen Chen, Zhengzi Xu, Lingling Fan, Lida Zhao, Yiran Zhang, Yang Liu
Published: 2023
Latent reuse in agent skills: Multi-modal clone detection at ecosystem scale
Jiaying Zhu, Lyuye Zhang, Wenbo Guo, Yang Liu
Published: 2026
Small world with high risks: A study of security threats in the npm ecosystem
Zimmermann, M., Staicu, C., Tenny, C., Pradel, M.
Published: 2019
Share