Amazon Web Services’ Amazon Q extension for Visual Studio Code reportedly contained a wiper-style prompt injection planted by a hacker last week, according to 404 Media.Someone taking responsibility for planting the injection told 404 Media they submitted a pull request to the open-source aws-toolkit-vscode GitHub repository on July 13, 2025, and were subsequently given “admin credentials on a silver platter.” They then reportedly added a prompt injection that was included in the official release of Amazon Q for VS Code version 1.84.0 on July 17.The Amazon Q extension for Visual Studio Code (VS Code) allows developer to connect their integrated development environment (IDE) with the Amazon Q AI-powered coding assistant and has been installed more than 964,000 times since it was added to the VS Code Marketplace, according to its Marketplace page.The prompt, which its creator claims was designed to be ineffective, tells the AI assistant its goal is to “clean a system to a near-factory state and delete file-system and cloud resources.”It further provides instructions to “run continuously until the task is complete,” clear configuration files and directories using bash commands and delete cloud resources using Amazon Web Servies (AWS) command line interface (CLI) commands.“When a malicious actor can inject wiping commands into a coding assistant and have those commands deployed to end users, it exposes a critical blind spot. Security teams need visibility not just into what agents say, but what they do,” Zenity Chief Technology Officer and Co-founder Michael Bargury told SC Media in an email.The hacker stated their goal was to “Expose their ‘AI’ security theater” and plant “A wiper designed to be defective as a warning to see if they’d publicly own up to their bad security,” 404 Media said in its article published Wednesday morning.In a security update published Wednesday evening, AWS said it responded to a report from security researchers that “a potentially unapproved code modification was attempted” in the extension.“Once we were made aware of the issue, we immediately revoked and replaced the credentials, removed the unapproved code from the codebase, and subsequently released Amazon Q Developer Extension version 1.85 to the marketplace,” the update states.AWS said customers must update to version 1.85 to resolve the issue and ensure any forked or derivative version is also patched. “Security is our top priority. We quickly mitigated an attempt to exploit a known issue in two open source repositories to alter code in the Amazon Q Developer extension for VS Code and confirmed that no customer resources were impacted,” an AWS spokesperson said in a statement provided to SC Media. “We have fully mitigated the issue in both repositories. No further customer action is needed for the AWS SDK for .NET or AWS Toolkit for Visual Studio Code repositories.”
AI/ML, Supply chain, DevOps, Threat Intelligence, Attack surface management
Amazon Q extension for VS Code reportedly injected with ‘wiper’ prompt

(Credit: Robert – stock.adobe.com)
An In-Depth Guide to AI
Get essential knowledge and practical strategies to use AI to better your security program.
Get daily email updates
SC Media's daily must-read of the most current and pressing daily news
You can skip this ad in 5 seconds



