AI Package Hallucination
summary
Research shows attackers can prompt ChatGPT via the OpenAI API to invent nonexistent package names, publish malicious npm/PyPI packages with those names, and later have ChatGPT recommend them to other developers. The team queries Node.js and Python Stack Overflow questions (~430 queries) and finds 120 hallucinated package answers across sessions, about 30% of queries producing hallucinations. Proof of concept includes uploaded malicious packages that ChatGPT repeatedly suggests from different IPs and prompts, and installing such packages can escalate from developer machines into production.
AI-written summary · about
chapters (10)
- 0:00Introduction to AI package hallucination
- 1:12Generative AI growth and risks
- 3:45What are LLM hallucinations
- 6:36Supply chain attacks overview
- 7:23New attack technique explained
- 9:50Research process details
- 12:41Proof of concept demonstration
- 14:47Research results and impact
- 15:31How to stay safe from attacks
- 17:16Conclusion and Q&A
