Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ChatGPT 软件包幻觉 (AML.CS0022)

一句话通俗理解

AI 会一本正经地推荐不存在的软件包——攻击者抢先注册这些包名,你的 pip install 就是他的后门。

案例速览

维度内容
案例类型演练 / 安全研究
发生时间2024-06-01
攻击者Vulcan Cyber, Lasso Security
受害目标ChatGPT users

事件经过

研究者发现 ChatGPT 等 LLM 会幻觉出软件仓库中不存在的包名。攻击者可抢先在 PyPI/npm 发布这些恶意包,等待开发者被 AI「推荐」后安装——将 LLM 幻觉武器化为软件供应链攻击。

运用的 ATLAS 技术

以下攻击链映射来自 MITRE ATLAS 官方数据(AML.CS0022 的 employs 关系),按官方步骤编号排序;技术名称链接至本库对应技术文档,引用文字为官方对本次运用的描述。

S00

S01

  • 发现 LLM 幻觉 (AML.T0062)

    The researchers prompt ChatGPT to suggest software packages and identify suggestions that are hallucinations which don’t exist in a public package repository.

For example, when asking the model “how to upload a model to huggingface?” the response included guidance to install the huggingface-cli package with instructions to install it by pip install huggingface-cli. This package was a hallucination and does not exist on PyPI. The actual HuggingFace CLI tool is part of the huggingface_hub package.

S02

In practice, the researchers uploaded an empty package to PyPI to track downloads.

S03

  • AI 软件 (AML.T0010.001)

    A user of ChatGPT or other LLM may ask similar questions which lead to the same hallucinated package name and cause them to download the malicious package.

The researchers showed that multiple LLMs can produce the same hallucinations. They tracked over 30,000 downloads of the huggingface-cli package.

S04

S05

关联战术

参考资料

以下为 MITRE ATLAS 官方案例收录的参考来源:


版本: ATLAS 2026.09 | 更新: 2026-10-24 | 模板: ATLAS 案例研究 v1.0