Metraipolis › archive › dc_a744275e1b44
Package Hallucination Attacks on Coding Agents through Prompt Injection in Rule Files — arXiv:2610.09264
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2610.09264
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-08T11:10:47.871Z
- SHA-256 of the archived text
a452ce184fe1f2f406c409a3629dbeef6855428090d76e923540f6606cc86641- Stable URL of this page
https://metraipolis.com/documento/dc_a744275e1b44
How to cite
Package Hallucination Attacks on Coding Agents through Prompt Injection in Rule Files — arXiv:2610.09264 — arXiv (en), https://arxiv.org/abs/2610.09264 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_a744275e1b44 (Metraipolis archive dc_a744275e1b44, sha256 a452ce184fe1f2f406c409a3629dbeef6855428090d76e923540f6606cc86641)
BibTeX
@misc{dca744275e1b44,
title = {Package Hallucination Attacks on Coding Agents through Prompt Injection in Rule Files — arXiv:2610.09264},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2610.09264},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_a744275e1b44; sha256 a452ce184fe1f2f406c409a3629dbeef6855428090d76e923540f6606cc86641},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.09264. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Modern agentic coding frameworks increasingly rely on community-shared rule files (e.g., this http URL or .cursorrules) to guide autonomous code generation, yet the security risks of this pipeline remain underexplored. To bridge this gap, we introduce the package hallucination attack, where an attacker injects malicious prompts into benign rule files to induce coding agents to replace legitimate dependencies with attacker-controlled packages. To obtain effective malicious prompts injected into rule files, we propose PackHallu, an evolutionary optimization framework that iteratively rewrites these injected prompts using trajectory-level feedback and LLM-guided mutations. Evaluations across multiple benchmarks, LLMs, and agent frameworks show that PackHallu achieves high attack success rates and strong transferability across diverse models and agent combinations. Our findings demonstrate that coding agents are vulnerable to package hallucination attacks, highlighting the urgent need for stronger security safeguards in autonomous coding systems. Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.AI, nuovi lavori del giorno). Categorie arXiv: Cryptography and Security (cs.CR) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2610.09264 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-08T10:14:06.067Z dalla pagina https://arxiv.org/list/cs.AI/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).