"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Liu, Yi, Chen, Zhihao, Zhang, Yanjun, Deng, Gelei, Li, Yuekang, Ning, Jianting, Zhang, Leo Yu
Format: Preprint
Publié: 2026
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910280679686144
author Liu, Yi
Chen, Zhihao
Zhang, Yanjun
Deng, Gelei
Li, Yuekang
Ning, Jianting
Zhang, Leo Yu
author_facet Liu, Yi
Chen, Zhihao
Zhang, Yanjun
Deng, Gelei
Li, Yuekang
Ning, Jianting
Zhang, Leo Yu
contents LLM-based coding agents increasingly rely on third-party extensions called skills, which bundle natural language instructions and helper scripts that execute with full user privileges. Community registries have emerged to distribute these skills, but the security implications remain unstudied due to the absence of labeled threat data. This paper presents a systematic security analysis of 98,380 skills collected from two major registries. Through a combination of static pattern matching and dynamic behavioral verification, we identify 157 skills exhibiting confirmed malicious behavior, encompassing 632 distinct vulnerabilities across 13 attack techniques. Our analysis reveals that these threats are deliberate rather than accidental: each malicious skill contains an average of 4.03 vulnerabilities spanning multiple attack phases. We identify two dominant attack strategies with statistically significant negative correlation -- credential theft via remote code execution, and agent manipulation through adversarial instructions embedded in documentation. Over half of all confirmed cases originate from a single threat actor employing templated brand impersonation at scale. We further observe that attack sophistication correlates with concealment investment, with advanced skills universally employing undocumented capabilities while also exploiting platform-native trust mechanisms. Following responsible disclosure, registry maintainers removed all 157 (100%) of the reported skills. Our dataset and detection pipeline are publicly available to facilitate future research on securing LLM agent ecosystems.
format Preprint
id arxiv_https___arxiv_org_abs_2602_06547
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle "Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills
Liu, Yi
Chen, Zhihao
Zhang, Yanjun
Deng, Gelei
Li, Yuekang
Ning, Jianting
Zhang, Leo Yu
Cryptography and Security
Artificial Intelligence
Computation and Language
Emerging Technologies
LLM-based coding agents increasingly rely on third-party extensions called skills, which bundle natural language instructions and helper scripts that execute with full user privileges. Community registries have emerged to distribute these skills, but the security implications remain unstudied due to the absence of labeled threat data. This paper presents a systematic security analysis of 98,380 skills collected from two major registries. Through a combination of static pattern matching and dynamic behavioral verification, we identify 157 skills exhibiting confirmed malicious behavior, encompassing 632 distinct vulnerabilities across 13 attack techniques. Our analysis reveals that these threats are deliberate rather than accidental: each malicious skill contains an average of 4.03 vulnerabilities spanning multiple attack phases. We identify two dominant attack strategies with statistically significant negative correlation -- credential theft via remote code execution, and agent manipulation through adversarial instructions embedded in documentation. Over half of all confirmed cases originate from a single threat actor employing templated brand impersonation at scale. We further observe that attack sophistication correlates with concealment investment, with advanced skills universally employing undocumented capabilities while also exploiting platform-native trust mechanisms. Following responsible disclosure, registry maintainers removed all 157 (100%) of the reported skills. Our dataset and detection pipeline are publicly available to facilitate future research on securing LLM agent ecosystems.
title "Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills
topic Cryptography and Security
Artificial Intelligence
Computation and Language
Emerging Technologies
url https://arxiv.org/abs/2602.06547