LLM Ghostbusters: Surgical Package Hallucination Suppression via Adaptive Unlearning
Hallucinations remain an unsolved problem for LLMs, and package hallucinations are a particularly dangerous instance of this phenomenon. Package hallucinations occur during code generation when a model fabricates non-existent software packages, recommending imports and installation commands for fictional libraries. This creates a critical supply-chain vulnerability; an attacker can proactively register such packages on public registries with malicious payloads that are subsequently installed and executed by developers or autonomous agents. These hallucinations enable a class of package confusion attack known as slopsquatting. To address this issue, we present Adaptive Unlearning (AU), a p...
| Authors | Joseph Spracklen, Pedram Aghazadeh, Farinaz Koushanfar et al. |
|---|---|
| Primary category | cs.CR |
| Published | 1 May 2026 |
| Last updated at source | 21 September 2026 |
Silytics shows public metadata from arXiv and links to the original. Information may be incomplete or out of date. Last refreshed 17 October 2026. Licenses and terms of the original apply to the work itself. Not financial, legal or professional advice.