A serious security breach has rocked Amazon’s generative AI-powered coding tool, Amazon Q, exposing how vulnerable today’s AI developer tools can be—even in the hands of major tech giants. A hacker successfully injected malicious data-wiping commands into Amazon Q’s Visual Studio Code extension, affecting nearly one million users before it was discovered and resolved.
What Is Amazon Q and How Was It Compromised?
Amazon Q is a widely-used AI-powered assistant that integrates into Microsoft’s Visual Studio Code (VSC) environment. It helps developers with automated coding, debugging, documentation, and configuration. On July 13, a hacker under the alias ‘lkmanka58’ managed to submit a malicious pull request on Amazon Q’s GitHub repository. Due to misconfigured workflows or poor permission management, the injected code was accepted and subsequently published as version 1.84.0 on the official VSC marketplace by July 17.
The Code That Could Wipe Your System
The hacker’s commit didn’t attempt to cause real damage—yet. Instead, it included a data-wiping prompt designed to simulate a threat. The prompt instructed the assistant to “clear a system to a near-factory state and delete file-system and cloud resources.” Though technically non-functional, the intent was clear: this was a warning shot about how insecure AI-integrated developer environments can be when proper security protocols are lacking.

Amazon’s Response and Clean-Up Efforts
Amazon remained unaware of the breach for several days until security researchers flagged suspicious behavior on July 23. The company quickly investigated, and on July 24 released a cleaned-up version 1.85.0, revoking compromised credentials and purging the unauthorized code.
In a security bulletin, AWS confirmed the issue and detailed its forensic investigation. It noted that although the malicious code was incorrectly formatted and would not execute in user environments, there are conflicting reports from developers claiming the code may have run without causing any damage. Either way, the potential consequences raise red flags about how open-source and AI-based tools are managed.
Why This Incident Shouldn’t Be Ignored
Even though this was a benign breach, the implications are massive. It shows how easily threat actors can slip code into major projects and how automated AI tools can be manipulated to perform destructive actions. For organizations using generative AI assistants, this breach serves as a critical reminder to review repository permissions, audit pull requests more rigorously, and test all releases for unauthorized changes.
Developers using Amazon Q version 1.84.0 should immediately update to version 1.85.0 to ensure their systems remain secure. The older version has already been removed from all official distribution channels.
Conclusion
This breach of Amazon Q highlights the emerging risks associated with AI-driven developer tools. While Amazon was able to address the issue quickly, the incident underscores the need for robust security in open-source environments and greater oversight of AI integrations. As AI continues to automate complex coding tasks, even a single misstep in workflow management can open the door to catastrophic exploits.





