Skip to content

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

Jul 2026 · arXiv.org · Vol abs/2607.12340 · 0 citations · 50 references
Computer Science

TL;DR

The first large-scale measurement of skill name hallucination is conducted, evaluating 15,000 prompts across 12 configurations and revealing a systemic vulnerability: every configuration hallucinates.

Abstract

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.

View source

Similar papers

#artificial intelligence Preprint Sep 2026

Closed-World Resolution Against Tool Hallucination in LLM Agents

It is proved hallucination defense must precede any causal gate, and characterize the one irreducible residue (borrowed arguments schema-indistinguishable from a valid call), and the versioned Hallucinated-Tools Benchmark is released so any resolver is comparable across submissions.

Lax Iyer · 0 citations
Preprint Aug 2026

Names Can Hurt: Spotting Slopsquatting Risks Caused by Package Name Hallucinations in Local Coding LLMs

A two layer detector to counter'slopsquatting of Python package names, with findings that hallucination rate scales almost linearly with prompt adversariality, and when primary and fallback share a model family, approximately 84% of primary failures recur on the fallback, motivating cross family pairing.

Akash Raj, Sargam Sahu · 0 citations
Preprint Oct 2026

Fix What's Wrong, Keep What's Right: Hallucination Repair for LLM-Based Optimization Modeling

Large language models (LLMs) are increasingly being explored to automate operations research modeling, reduce modeling time and lower the expertise barrier to optimization based decision support. However, this process often introduces inconsistencies between generated artifacts and the original problem, which we refer...

Jia-Geng Wu, Chao Shen, Zi-Han Guo et al. · 0 citations
Review Open access Sep 2026

A SURVEY OF HALLUCINATION MITIGATION STRATEGIES IN LARGE LANGUAGE MODELS: FROM DECODING-TIME FIXES TO AGENTIC RETRIEVAL AND VERIFICATION

Hallucination – the generation of fluent but factually unsupported or fabricated content – remains one of the most persistent obstacles to deploying Large Language Models (LLMs) in high-stakes domains such as healthcare, finance, and law. A wide range of mitigation strategies has been proposed, spanning several distinc...

Shweta Narayan Bamne, M. S. Shegokar · 0 citations
Open access Feb 2026

PackMonitor: Towards Zero Package Hallucinations via Decoding-Time Monitoring

As Large Language Models (LLMs) are increasingly integrated into software development workflows, their trustworthiness has become a critical concern. However, in dependency recommendation scenarios, the reliability of LLMs is undermined by widespread package hallucinations, where models often recommend hallucinated pac...

Xi-Ting Liu, Yue-Tong Liu, Yi-Tong Zhang et al. · 2 citations
Conference Aug 2026

Adaptive Claim Level Hallucination Detection and Mitigation for BlackBox LLMs on Amazon Bedrock

Large language models (LLMs) deployed through managed cloud APIs are increasingly relied upon in settings where incorrect output carries real cost enterprise search, healthcare triage, financial advisory, and legal question answering among them. Hallucination mitigation in these black-box environments is hard for two r...

Mukunda Rao Katta · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.