mlsanityData to 7 Oct 2026

Skills That Don't Exist: A Large-Scale Study of Hallucinated Skill Recommendation in LLM Agents

arXiv 2607.12340 ↗First posted 14 Jul 2026cs.SE cs.CRcited by 0

On the map: LLM agents and tool use → Agent threats, guardrails and governance

Abstract (arXiv)

LLM agents acquire new capabilities by downloading skills from open registries. Instead of browsing these catalogs manually, developers typically ask the agent to recommend and install a skill. This convenience hides a risk: agents frequently invent names for skills that exist in no registry. We term this flaw skill name hallucination. A fake name may seem harmless, but it opens the door to supply-chain attacks. Because registries rarely verify publishers, an adversary can prompt the agent, collect the fake names it returns, pre-register malicious skills under them, and wait for a victim to install the payload. We conducted the first large-scale measurement of skill name hallucination, evaluating 15,000 prompts across 12 configurations (4 standalone LLMs and 8 agents). We conservatively counted a name as hallucinated only if it was missing from all live registries and GitHub. The results reveal a systemic vulnerability: every configuration hallucinates. Rates average 36.0% for standalone LLMs and 36.9% for agents, rising to 43.1% on real-world developer questions. In total, the systems generated 5,669 distinct hallucinated names. Crucially, these names are not random noise. Agents repeat the same fake names across prompts and models, giving attackers highly reliable targets to hijack. Finally, we tested four model-level defenses and found a severe conflict between security and usability. The strongest, retrieval grounding, cut the hallucination rate from 40.8% to 3.2% but crippled usefulness: even the best-defended system recommended the correct skill only about one in six times. Skill name hallucination is thus a highly exploitable vulnerability requiring minimal attacker effort. Fixing it cannot rely on prompt engineering or model tuning alone. It demands ecosystem-wide structural changes: registry-level name reservations and verified recommendation pipelines.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 26 of its 50 references that are in the map. First posted on arXiv 14 Jul 2026.

Builds on

26 of 50 references.

Closest ancestors · 11

Same direction, newest first

  1. 2026MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skills5 Jun
  2. 2026Supply-Chain Poisoning Attacks Against LLM Coding Agent Skill Ecosystems3 Apr
  3. 2026Agent Skills in the Wild: An Empirical Study of Security Vulnerabilities at Scale15 Jan
  4. 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
  5. 2024When LLMs Go Online: The Emerging Threat of Web-Enabled LLMs18 Oct
  6. 2024AgentHarm: A Benchmark for Measuring Harmfulness of LLM Agents11 Oct
  7. 2024The Emerged Security and Privacy of LLM Agent: A Survey with Case Studies28 Jul
  8. 2024AgentPoison: Red-teaming LLM Agents via Poisoning Memory or Knowledge Bases17 Jul
  9. 2024GuardAgent: Safeguard LLM Agents by a Guard Agent via Knowledge-Enabled Reasoning13 Jun
  10. 2024IsolateGPT: An Execution Isolation Architecture for LLM-Based Agentic Systems8 Mar
  11. 2024R-Judge: Benchmarking Safety Risk Awareness for LLM Agents18 Jan

Other references · 15

  1. 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,106
  2. 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 417
  3. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 325
  4. 2024PoisonedRAG: Knowledge Corruption Attacks to Retrieval-Augmented Generation of Large Language Modelscited by 251
  5. 2022Do Users Write More Insecure Code with AI Assistants?cited by 186
  6. 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 179
  7. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 124
  8. 2024Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defensescited by 68
  9. 2024We Have a Package for You! A Comprehensive Analysis of Package Hallucinations by Code Generating LLMscited by 61
  10. 2020Backstabber's Knife Collection: A Review of Open Source Software Supply Chain Attackscited by 57
  11. 2022Taxonomy of Attacks on Open-Source Software Supply Chainscited by 57
  12. 2023The Philosopher's Stone: Trojaning Plugins of Large Language Modelscited by 31
3 more
  1. 2024Using AI Assistants in Software Development: A Qualitative Study on Security Practices and Concernscited by 27
  2. 2024On Mitigating Code LLM Hallucinations with API Documentationcited by 21
  3. 2024Is ChatGPT a Good Software Librarian? An Exploratory Study on the Use of ChatGPT for Software Library Recommendationscited by 7

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Skill-Inject: Measuring Agent Vulnerability to Skill File Attacks
  2. 2026How Your Credentials Are Leaked by LLM Agent Skills: An Empirical Study
  3. 2026"Do Not Mention This to the User": Detecting and Understanding Malicious Agent Skills in the Wild
  4. 2026Can Agents Trust Their Skills? Uncovering Unsafe Chains of Trust in Skill-Based LLM Agents
  5. 2026Black-Box Skill Stealing Attack from Proprietary LLM Agents: An Empirical Study
  6. 2026What Keeps Agent Skills from Being Reusable? Evidence from 138K SKILL.md Files
  7. 2026SKILLLITE: Evidence-Guided Malicious Skill Auditing with Compact LLMs
  8. 2026HarmfulSkillBench: How Do Harmful Skills Weaponize Your Agents?