Details may change as reporting changes. Information comes from the linked sources, and we do not guarantee it is complete or current.
In plain English
An extension is a small add-on that you install into your coding app. This one, Amazon Q Developer for VS Code, includes an AI assistant that can run commands on your computer.
An attacker slipped a hidden instruction into the extension's code. Reports say it told the AI to delete files and cloud resources. Because the instruction was shipped inside an official update, any user who installed that version had the bad text on their machine.
AWS said a mistake in the attacker's code stopped it from running, and that customers' systems were not changed. The lucky part is that it did not run. The unlucky part is how it got in: a key with too much power was sitting in the build system.
Words used here
- Extension
- An add-on that gives your coding app extra abilities.
- Supply chain attack
- Attacking something you rely on (a package, an update) rather than you directly.
- Token
- A kind of secret key that lets software act on your account.
What happened
Amazon's own security notice (AWS-2025-015) says the Amazon Q Developer add-on for the VS Code editor had a key in its build settings that could do too much. Someone used it to slip harmful code into the open-source project, and it was automatically included in a public release (version 1.84.0).
AWS said it revoked and replaced the credentials, removed the code, and released version 1.85.0. It said the malicious code was distributed but did not execute because of a syntax error, so no customer environments were changed.
The Register's reporting describes the added text as an instruction for the AI to wipe local files and delete cloud resources.
The Register reported the bad version was live on the VS Code marketplace for about two days, and that the intent appeared to be to embarrass AWS rather than cause immediate harm. That last point rests on a claim from someone who presented themselves as the attacker and is unverified.
The issue was assigned CVE-2025-8217. NVD describes the injected code as inert because of a syntax error.
How it unfolded
- July 2025
The attacker commits the malicious code, and it is included in release 1.84.0.
- July 23, 2025
AWS publishes bulletin AWS-2025-015 and releases version 1.85.0.
- July 25, 2025
AWS updates the bulletin.
Who was affected
Anyone who installed version 1.84.0 of the extension. AWS said the code could not execute, and that it did not change customer environments.
What the response was
- AWS revoked and replaced the credentials.
- AWS removed 1.84.0 from distribution and released 1.85.0.
- AWS told users to remove 1.84.0, including forked copies, and update.
What went wrong
- A build token had more permission than it needed.
- Malicious code reached a public release without being caught first.
What worked
- The attacker's code did not run, and AWS fixed and disclosed it within days.
What a small team should do differently
- Give build systems the smallest permissions that work.
- Review every change that goes into a release.
- Keep extensions and AI tools in your company's list of approved software.
- Do not give an AI assistant permission to run commands without asking you.
What you can do today
- Open your coding app's extensions list and check that Amazon Q is not on version 1.84.0 if you use it.
- Remove extensions you no longer use.
- In your AI coding tools, keep the setting that asks before running commands switched on.
Official help for the platforms involved
The lesson to take away
AI tools that can run commands are powerful targets. A single over-powered key in a build system can turn into a hidden instruction on thousands of machines.
Sources
- AWS Security Bulletin AWS-2025-015Amazon Web Services, Jul 23, 2025
- NVD: CVE-2025-8217NIST National Vulnerability Database
- The Register: Destructive AI prompt published in Amazon Q extensionThe Register, Jul 24, 2025
Finished this one?
Add it to What I learned and earn 40 Trust. You can open your list from the badge at the bottom of the page.