Skip to content
BlockBeats·Indexed by this site · Originally published· Event →· Its place in the scan record →SelectedAttention43

Developer says the Apple version of Alibaba Cloud CLI 3.3.4's error message hides a 7,153-byte prompt injection that induces AI to send back local private data

阿里云官方CLI报错藏7153字节提示词注入,诱导Claude Code翻电脑上传用户隐私 - BlockBeats

AI summary

A developer in China, while using Alibaba Cloud's official command-line tool to query their own server and bill, received a 7,153-byte English error message from multiple open interfaces. Disguised as an authentication requirement, it was in fact a prompt injection inducing coding agents such as Claude Code to exfiltrate local private data, specifically requesting the username, Git commit email, public IP, environment variables and ~/.claude/settings.json. After verifying with an independent program, the developer said the response was signed with an official Alibaba Cloud certificate, that it was reliably triggered when the request carried the macOS CLI 3.3.4 version number and returned to normal when changed to 3.0.0, and judged that the interception switch is on the server side. 41 minutes before the trigger, James Kettle, head of research at Burp Suite, posted that during authorized testing on HackerOne he was counter-hacked by the target website, and the fake error message he published is word-for-word identical to this text. The person involved has publicly posted the packet capture on V2EX and submitted a ticket; an account claiming to be an Alibaba Cloud employee replied that it is being handled urgently, and the official side has not yet explained the cause.

Why it was selected

A real case shows that error messages returned by the server can also carry injection instructions targeting coding agents; developers who use Claude Code with local permissions opened can use this to check their own risk.

Read originaltheblockbeats.info