294 incidents on record · 2026HeadlightsIncident reports by Ellie Harris · Melbourne
10 new this weekLibrary last updated 24 November 2026
← The incident library
HD-INC-075
Technology · United States · 2025 · Unconstrained / manipulated action

Amazon's AI Coding Assistant Shipped with Malicious Deletion Instructions

By Ellie Harris · Filed Malicious commits 13 July 2025; version 1.84.0 released 17 July 2025

Alleged: Amazon Web Services (Amazon Q Developer) developed or deployed the AI system implicated in this incident. Details are drawn from public reports; parties are presumed innocent of any wrongdoing not established by an official finding.

Amazon's AI Coding Assistant Shipped with Malicious Deletion Instructions

What happened

It was reported by 404 Media and subsequently confirmed in AWS security bulletins that an unauthorised contributor had inserted malicious instructions into the open-source repository used to build Amazon Q Developer’s Visual Studio Code extension.

Amazon Q Developer is an AI coding assistant designed to help developers write, understand and modify software. Depending on how it is configured and what permissions it has been given, the assistant can interact with files and development environments on a user’s computer.

On 13 July 2025, the attacker introduced code intended to make the assistant carry out destructive operations. The instructions told the agent to return the user’s system to something resembling a factory state by deleting local files and then using any available cloud credentials to remove cloud resources, including storage and servers.

The attacker also added a script intended to pass those instructions to the agent while disabling safety confirmations that might otherwise have interrupted the process.

Four days later, on 17 July, the modified code was included in version 1.84.0 of the official Amazon Q Developer extension.

The extension had been installed nearly a million times, although that figure represented installations of the extension generally, not the number of users who received or executed the compromised version.

AWS later explained that the attacker had gained access through an improperly scoped access token exposed by the project’s automated build system. Separate security research demonstrated weaknesses in the build environment, and AWS confirmed that a threat actor had exploited the access route.

The company maintained that the malicious code did not cause customer damage. According to AWS, a syntax error prevented the planted instructions from executing as intended, and no customer resources were affected.

The person claiming responsibility gave 404 Media a different explanation. They said the payload had deliberately been made defective because the purpose was to expose weaknesses in Amazon’s security practices rather than destroy users’ data. They also claimed the access they had obtained could have been used to cause substantially greater damage.

Those claims were not independently established. Some technical commentators also questioned aspects of AWS’s explanation, suggesting that portions of the code might have executed harmlessly on certain machines.

What was established was that malicious instructions had entered the official software release, regardless of whether they successfully triggered destructive actions.

AWS withdrew version 1.84.0 and issued a replacement, but did not initially explain publicly that the extension had been compromised. The replacement’s changelog described the update as miscellaneous changes that did not affect users.

On 23 July, following reporting by 404 Media, AWS published a security bulletin acknowledging the incident. The bulletin was updated two days later with further information about the access route and the vulnerability identifier CVE-2025-8217.

AWS said it had revoked and replaced the affected credentials and advised users with version 1.84.0 installed to update their extension to remove the malicious code.

The person responsible had not been publicly identified, and no arrests had been publicly reported as of mid-2026.

Where the gap was

It was reported that an attacker exploited access to Amazon Q Developer’s build process and inserted instructions intended to make the AI assistant delete local files and cloud resources. Those instructions were included in an official extension release before the compromise was publicly disclosed.

The clearest established failure was in the software supply chain. An unauthorised person was able to introduce code into a product distributed through an official channel, creating a route through which malicious instructions could reach an AI agent.

The attempted attack also exposed a risk specific to agents with access to files and cloud services. If an agent accepts instructions from compromised software as though they were legitimate commands, the permissions granted to help a user can potentially be turned against that user.

AWS said the planted code did not execute as intended and that no customer resources were affected. The available evidence therefore does not establish that Amazon Q Developer actually obeyed the destructive instructions or deleted customer data.

Headlights identifies concealment in AWS’s initial handling of the incident, rather than treating the attempted deletion as a completed action. AWS removed the affected release before publicly explaining the security issue, and the replacement changelog described miscellaneous changes rather than a compromise. A security bulletin followed only after 404 Media’s reporting, so users initially had little reason to know why the update mattered. This is Headlights’ interpretation of the reporting, not a finding by a regulator.

What could have helped

It was reported that AWS’s subsequent security bulletins identified an improperly scoped access token in the project’s automated build system as the route the attacker used, and that the malicious instructions reached an official release four days after they were added.

A record of where each instruction given to the agent came from could have made the change easier to spot. It could have shown which file and which code change introduced the instructions, who approved that change and whether it came from an authorised maintainer or from the build process itself.

Checks before release could have done more. Reviewing changes to the files that tell the agent what to do, and blocking a release that contained unreviewed instructions to delete files or cloud resources, could have stopped the code reaching users.

The agent itself was a further safeguard. If it had refused destructive commands that arrived without a verified source, or always asked the user to confirm them, a compromised release would have had less power to cause harm.

Records alone would not have stopped the release. Their value was in showing quickly what had changed, when and how, so that the vendor and its users did not have to rely on outside researchers and reporters to piece it together.

What governance should have looked like

An AI agent that can delete files and act in cloud accounts should treat its own instructions and configuration as something to verify, not something to trust automatically. Instructions that would destroy data should need a verified source and the user’s explicit confirmation, however they arrive.

The build and release process needs the same care as the product. Access tokens should be limited to what each task requires, changes to the instructions an agent follows should be reviewed by a named person, and a release should not ship if those checks have not been completed.

When a vendor discovers that a tampered build has reached users, it should say so plainly and promptly. A changelog describing miscellaneous changes leaves users without the information they need to decide whether to update urgently or check their systems.

AWS said a syntax error prevented the planted instructions from working and that no customer resources were affected. The incident still showed how a weakness in the software supply chain could put destructive instructions within reach of an AI agent installed on many developers’ computers.

Failure Pattern: an attacker used an improperly scoped access token in the build system of Amazon Q Developer’s Visual Studio Code extension to plant instructions telling the AI agent to delete local files and cloud resources, and the tampered code shipped in an official release. AWS withdrew the release and replaced it with a changelog that did not mention the compromise, before acknowledging the incident in a security bulletin after it was reported. AWS said a syntax error stopped the instructions working and that no customer resources were affected.

Governance Principle: an AI agent with access to files and cloud accounts should act only on instructions from a verified source and require confirmation before destructive actions. Vendors should review every change to the instructions an agent follows before release, and disclose a compromised release promptly and plainly.

Sources

The mailing list

Fresh incident reports every week. One email to match.

We add new incidents to the library regularly, and send a single short email each week with what's new. The library stays free and open; this is just how you keep up with it.

Sent through Substack. Unsubscribe in one click.

Headlights summarises publicly reported AI incidents. All summaries are independently written, attributed to their original sources, and intended for research and educational purposes. Allegations are identified as such until established through official findings.

This report is based on the sources listed above and reflects information available at the time of review; later developments may not be captured. Where a person is described as charged with or alleged to have done something, that allegation is unproven unless a conviction or a court or regulatory finding is stated. Headlights publishes journalism and commentary, not legal advice.

Want to write back?

Direct to my inbox.

ellie@useheadlights.com →