Destructive prompt in AWS extension

AWS says an outside actor slipped code into its Amazon Q extension

Disclosed July 23, 2025Technology

The record

In July 2025 an outside actor used an overly scoped GitHub token to slip code into version 1.84.0 of AWS's Amazon Q Developer extension for VS Code, AWS said. The Register reported the code instructed the AI agent to delete users' files and cloud resources. AWS said the code failed to execute because of a syntax error, and it pulled the version and released a fix.

  • Compromised AI tool or supply chain
  • Deceived or targeted
  • Malicious model, package or extension
  • No public charges
Organisation
Amazon Web Services
Insider
Amazon Q Developer AI coding extension, given an injected prompt by an outside actor
Method
AWS said a threat actor used an overly scoped GitHub token in its CodeBuild configuration to push code into the open-source extension. The Register reported that version 1.84.0 carried a prompt telling the Amazon Q agent to delete local files and use AWS profiles to delete cloud resources.
When
July 2025
How it was found
Not publicly stated
Outcome
No charges reported. AWS said it revoked and replaced credentials, removed the unapproved code, pulled 1.84.0 and released 1.85.0, tracked as CVE-2025-8217.
Damage
AWS said the code failed to execute because of a syntax error and did not affect any production services or end users.

What each party says

  • Amazon Web Services: AWS said a threat actor pushed code into version 1.84.0 using an overly scoped GitHub token, and that the code "was unsuccessful in executing due to a syntax error."

    Confirmed, per Amazon Web Services

  • The Register: The Register reported the prompt told the agent to "delete all non-hidden files from the user's home directory" and to "discover and use AWS profiles to list and delete cloud resources using AWS CLI commands."

    Confirmed, as reported by The Register

  • A person claiming to be the attacker, per The Register citing 404 Media: A person who presented themselves as the hacker told 404 Media they got admin credentials after submitting a pull request from a random account and that the wiper was designed to be defective, as reported by The Register; AWS has not confirmed this.

    Unverified, as reported by The Register

Sources

Every fact above was checked against these on November 28, 2026.

  1. Security Update for Amazon Q Developer Extension for Visual Studio Code (Version #1.84) (opens in a new tab)Amazon Web Services, company statement, July 23, 2025
  2. Compromised Amazon Q extension told AI to delete everything, and it shipped (opens in a new tab)The Register, news report, July 24, 2025

How Above reads a case

Above's AI investigators work each insider and AI-agent signal to a verdict, with its evidence and reasoning.