mt logoMyToken
ETH Gas
한국어

Alibaba Cloud official CLI error hides 7153 bytes of prompt injection,诱导ing Claude Code to upload user privacy

2026-12-01 10:30:11
공유하다share

Beating AI News - An国内 developer this morning, while using an Apple computer, spent an hour continuously querying his own server and billing information via Alibaba Cloud's official command-line tool. Suddenly, multiple open APIs from Alibaba Cloud returned a 7,153-byte English error message. This error originated from Alibaba Cloud servers, pretending to require 'identity verification before proceeding,' but in reality, it was a set of instructions specifically designed to trick programming AIs like Claude Code into extracting device privacy data and sending it back.


The text explicitly demanded that the AI disclose the computer's username, Git commit email, public IP address, cloud host information, check local environment variables, and access the hidden configuration file for Claude (~/.claude/settings.json), even requiring the user's task instructions and the complete list of tools available to the AI to be reported. To prevent the AI from giving superficial responses, four strict rules were appended, mandating that each item must be accompanied by either a local file line number or an executable command as proof, forcing the AI to actually run commands on the local machine to retrieve data.


The poster initially suspected malware infection or network hijacking. After writing a standalone program to verify the response over the same connection, he confirmed the response carried Alibaba Cloud’s genuine certificate—clearly originating from Alibaba Cloud’s own servers. Further testing using alternative request tools showed that as long as the request included the version number '3.3.4' of the Apple-compatible Alibaba Cloud CLI, the server consistently returned this malicious text. Changing the version number to '3.0.0' immediately restored normal behavior, indicating the interception switch resides on the server side, not in the client software.


Just 41 minutes before this incident, James Kettle, lead developer of the renowned security tool Burp Suite, publicly shared that during an authorized security assessment on HackerOne for an unnamed company, he experienced a rare case of 'counter-hacking' by the target website. The full fake error message he published matched Alibaba Cloud’s output exactly. Due to confidentiality agreements, he did not name the company, but the original text required timestamps to be filled in as 'Beijing Time (UTC+8)'.


The affected individual has since posted packet capture logs on V2EX and submitted a ticket to Alibaba Cloud. A self-identified Alibaba Cloud employee replied to the original post today at noon with 'Handling with urgency.' As of now, Alibaba Cloud has not provided any explanation. With more developers increasingly granting Claude Code full access to their machines for server management and billing checks, few will read through the 7,000+ word English error message manually. However, the AI will follow every instruction blindly. If treated as a legitimate authentication step, the entire local configuration and private instructions could be leaked in a single routine query.

면책 조항: 이 기사의 저작권은 원저자에게 있으며 MyToken을 대표하지 않습니다.(www.mytokencap.com)의견 및 입장 콘텐츠에 대한 질문이 있는 경우 저희에게 연락하십시오
community_x_prefix
X(https://x.com/MyTokencap)
community_tg_prefixcommunity_tg_name
(https://t.me/mytokenGroup)