Amazon Q extension ships with an injected wiper prompt
An outsider used an over-scoped GitHub token to commit a prompt telling Amazon Q to wipe local files and AWS resources, and AWS shipped it in a public release.
An inappropriately scoped GitHub token in the CodeBuild configuration of the Amazon Q Developer extension let an outside party commit code to its open-source repository. The code, a prompt instructing the agent to clean a system to a near-factory state and delete file-system and cloud resources, was automatically included in version 1.84.0, released on 17 July 2025. AWS says the code did not execute because of a syntax error, so no services or customer environments were changed. The person responsible told 404 Media the wiper was meant as a warning about Amazon's security. AWS revoked the credentials, removed the code and released 1.85.0.
- 10 days
- 10 days
- Someone else
- An outside report
What happened
Outsider opens a pull request on aws-toolkit-vscode
The account then gets write access through an over-scoped token and commits the wiper prompt.
Version 1.84.0 with the prompt is released to users
Security researchers report the code to Amazon
404 Media reports the injected prompt; AWS publishes AWS-2025-015
The handler finds out
Security researchers reported the issue to Amazon on this date, per BleepingComputer.
AWS releases 1.85.0 and pulls 1.84.0
Credentials revoked and replaced, code removed.
AWS updates the bulletin
States the code shipped but failed to run because of a syntax error.
Reports differ
Agent failures
Prompt injection / context poisoning, Supply chain compromise
Prompt injection / context poisoning
Supply chain compromise
How it was found
Found first by someone else, from an outside report
- Someone else
- An outside report
- 0 days
Security researchers reported the modified code to AWS, and 404 Media reported it after the person responsible contacted them. AWS says it found the token problem while investigating a separate incident, AWS-2025-016. The release pipeline shipped the change without catching it.
What is publicly known
3 of 12 fully public
| Item | Public? | Detail | Sources |
|---|---|---|---|
| Partial | Amazon Q Developer for VS Code 1.84.0 named; the underlying model is not stated. | ||
| Unknown | No source mentions reasoning settings. | ||
| Unknown | No source says what approval or safety settings would have applied had the prompt run. | ||
| Known | The injected prompt is quoted: clean a system to near-factory state and delete file-system and cloud resources. | ||
| Unknown | No agent session is reported running it; AWS says the code never executed. | ||
| Partial | The VS Code extension; the injected prompt refers to filesystem tools and bash. Tool set not listed. | ||
| Unknown | No source describes network setup. | ||
| Unknown | No execution logs exist or are published. | ||
| Partial | Researchers reported it on 23 July; AWS found the token issue investigating AWS-2025-016. Pipeline raised nothing. | ||
| Partial | 1.84.0 shipped to users; AWS says no environments changed. Some researchers say the code ran harmlessly. | ||
| Known | An inappropriately scoped GitHub token in the CodeBuild configuration let an outsider commit code. | ||
| Known | Credentials revoked and replaced, code removed, 1.85.0 released, 1.84.0 pulled; CVE-2025-8217 issued. |
Controls that apply
Govern
Protect
- All controls →