← Lab /Software

LLM agents hallucinate skill names in ~36% of recommendations, enabling supply-chain attacks

LLM agents and standalone models frequently suggest nonexistent skill names when asked to recommend skills

Software arXiv 14 Jul 2026 Measurement Real-world evidence

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

Why it matters

Hallucinated skill names give attackers an easy supply-chain foothold, so fixing the issue requires structural changes to registries and recommendation pipelines.

Summary

Skill name hallucination is pervasive: every tested LLM and agent fabricates non-existent skill names, with average hallucination rates of 36.0% for standalone models and 36.9% for agents, climbing to 43.1% on real developer queries. The authors measured this across 15,000 prompts and 12 configurations, finding 5,669 distinct fake names that often repeat across prompts and models. They evaluated four model-level defenses and discovered a trade-off: retrieval grounding drops hallucinations to 3.2% but also reduces correct recommendations to roughly one in six, showing that simple defenses hurt usability. The paper therefore argues that fixing the problem requires ecosystem-wide changes rather than prompt tricks or model tuning.

What they found 1

  1. Average hallucination rates are around 36% for both standalone LLMs and agents, higher on real developer queries.

    “Rates average 36.0% for standalone LLMs and 36.9% for agents, rising to 43.1% on real-world developer questions.”

Caveats 1

  • The strongest defense, retrieval grounding, cut hallucinations from 40.8% to 3.2% but crippled usefulness: even the best-defended system recommended the correct skill only about one in six times.

What’s new here 4

  • First large-scale empirical measurement of skill name hallucination in LLM agents.
  • Quantifies hallucination rates across multiple models and real-world developer questions.
  • Shows that hallucinated names are repeatedly generated, providing reliable attack targets.
  • Evaluates model-level defenses and reveals a severe security-usability trade-off.