Research: LLM agent skill-name hallucination rates reach up to 62%, which can be exploited via squatting for supply-chain attacksSkills That Don't Exist: A Large-Scale Study of Hallucinated Skill Recommendation in LLM Agents
Translation in progress — untranslated text is omitted.
Researchers from Huazhong University of Science and Technology and Nanyang Technological University conducted a large-scale measurement of 15,000 prompts across 12 configurations (4 standalone LLMs and 8 agents), finding that all configurations recommend non-existent skill names, i.e., skill name hallucination. Standalone LLMs had an average hallucination rate of 36.0%, agents averaged 36.9%, rising to 43.1% on real developer questions, with a single-configuration range of 6.5% to 62.0%. These names are not random noise: Claude Sonnet 4.6 repeated the same hallucinated name an average of 7.8 times across 10 runs, and 410 names were shared by more than two configurations, accounting for 15.3% of all hallucinated recommendation events. Another 851 hallucinated names were exactly real PyPI or npm package names. Attackers can first collect these predictable names, then squat on registries with little publisher review, registering skills containing malicious SKILL.md files and waiting for victims to install them. The authors argue that fixing this requires registry-level name reservation and a verified recommendation pipeline.
- Large model agents frequently confabulate non-existent skill names when recommending skills; attackers can pre-register malicious skills with the same names, inducing users to install them, enabling supply chain and persistent indirect prompt injection attacks.
- Build an evaluation set of 5,000 real community questions and 10,000 real skill descriptions, measure recommendation results across 12 model and agent configurations, verify through both registry and GitHub code, and evaluate defenses such as self-checking and RAG.
- All 12 configurations exhibited confabulation (rates 6.5%–62.0%), with a confabulation rate of 43.1% on real community questions; confabulated names are repetitive, with the top 500 high-frequency words covering 57% of events; RAG reduced the confabulation rate to 3.2%, but the correct recall rate was at most 16.0%.
- The study only evaluated confabulation and pre-registration preconditions without implementing malicious exploitation, and did not conduct real-user installation tests; recall was measured only on 4 open-source models; the paper did not report query counts and variance across runs.
The paper is the first to systematically measure Agent skill name hallucination, providing hallucination rates for 12 configurations and repeatable names that can be pre-registered, offering a basis for skill registry design.