📰 Key Takeaways

Early today, a Chinese developer on a Mac used Alibaba Cloud’s official command-line tool to query servers and billing for about an hour, then noticed several Alibaba Cloud open APIs suddenly returning a 7,153-byte English error message. The text claimed identity verification was required before the request could go through, but it was actually a prompt injection aimed at coding AIs like Claude Code. It told the AI to hand over the computer’s username, Git commit email, public IP, and cloud host info, to check local environment variables, to read the hidden file ~/.claude/settings.json, and to report the user’s task instructions and available tool list. At the end it added four rules requiring every item to be backed by a local file line number or a runnable command, which pushes the AI to actually execute commands on the machine and pull the data.

The poster first suspected malware or a hijacked network connection. Then they checked the same connection with a standalone program and confirmed the response carried Alibaba Cloud’s genuine official certificate. They also tested with other request tools and no account keys, and found that as long as the request carried the version number of the macOS CLI 3.3.4, the server returned this text every time. Changing it to 3.0.0 brought back normal responses. So the trigger sits on the server side, and the client wasn’t tampered with.

Just 41 minutes before this happened, James Kettle, head of research at Burp Suite, publicly described how a target website “hacked back” at him during an authorized HackerOne test. The fake error he published matches Alibaba Cloud’s text word for word, and it also asks that report times be filled in Beijing time. The poster has posted the packet capture on V2EX and filed a support ticket. An account claiming to be an Alibaba Cloud employee replied that it is “being handled urgently.” The company hasn’t yet explained the cause.


💬 JudyAI Lab Take

This story matters because it’s the first time a prompt injection has shown up in the error response of an official cloud service API, and the connection certificate was real. The attacker doesn’t have to trick the AI into opening a malicious web page. The server just sends back a plausible-looking verification request, and that’s enough to make a coding AI hand over local info.

For AI builders, this case shows one thing: every piece of tool output an AI agent reads can be an attack surface, even an error message from an official API. This text posed as “identity verification required,” and it added four rules demanding file line numbers or command output as proof, all aimed at forcing the AI to actually run commands locally. The trigger is tied to a specific version number, which means an attack can target just one kind of client. An HTTPS certificate proves who you’re talking to, but it can’t prove the content is trustworthy. An agent that can read files and run commands hands over its permissions the moment it treats a response as an instruction.

My advice is to check your agent setup today. Treat any text a tool returns as data, not instructions, and require manual confirmation before the agent reads hidden config files or sends out user info.


📅 Source Info


🔗 Further Reading