Case study A3 / When vibe coding goes wrong

Malicious code ships inside an AI coding assistant

An over-scoped token let an attacker commit code that went straight into a release. A syntax error stopped it.

Swallowtail Systems™  /  Published November 30, 2026  /  3 min read

Key points
  • AWS says an inappropriately scoped GitHub token in a build configuration let a threat actor commit code that was automatically included in version 1.84.0.
  • The injected code was designed to call the Q Developer command line tool. A syntax error stopped it from working.
  • AWS revoked the credentials, pulled 1.84.0 and shipped 1.85.0.

What happened

On July 23, 2025, AWS published security bulletin AWS-2025-015 for the Amazon Q Developer extension for Visual Studio Code 1. AWS said the extension "had an inappropriately scoped GitHub token in their CodeBuild configuration," and that with it "the threat actor was able to commit malicious code into the extension's open-source repository that was automatically included in a release" 1.

The record for CVE-2025-8217 says version 1.84.0 contained "inert, injected code designed to call the Q Developer CLI," and that a syntax error prevented it from making a successful call 2. AWS determined the code was distributed with the extension but did not execute, and so made no changes to any services or customer environments 1.

Why it happened

By AWS's account, two things lined up: a credential with more permission than its job needed, and a release path that took what was in the repository and shipped it without a person confirming the change 1. The target matters too. An AI coding assistant runs inside a developer's editor, close to source code, credentials and a command line, and in this case the injected code was aimed at the assistant's own command line tool 2.

What it cost or risked

AWS reports no executed payload and no affected environments 1. The risk is what the bulletin implies: an AI developer tool distributed through an official channel carried attacker code, and the safeguard that held was a mistake in that code. AWS asked every customer to remove 1.84.0, including forked or derivative copies 1.

What a verification-first team does differently

  • Scopes build tokens to one job. A token that runs a build should not be able to write to the repository it builds from.
  • Puts a human approval on releases. Code reaches users only after a named person confirms what changed.
  • Treats AI developer tools as privileged software. It keeps an inventory of which assistants and extensions are approved, pins versions, and has a way to pull one quickly.
  • Limits what an assistant can run on a developer machine, so a compromised tool meets a narrow sandbox rather than a full shell.
Where our work applies

How our services map

  1. Governance and security. An approved list of AI developer tools, version pinning and a fast removal path.
  2. Implementation and custom builds. Release pipelines with scoped tokens and human approval before anything ships.
  3. Secure AI Training for teams. Training engineers on how AI tools in the editor change their own risk.

Swallowtail Systems™ did not work on this incident or study. This case is our reading of the public record, and every figure belongs to the organization cited. The service mapping shows where our work applies to the same risk, not work we performed here. Read how we choose and source cases.

Further reading on this site

Sources

  1. AWS Security Bulletin AWS-2025-015, "Security Update for Amazon Q Developer Extension for Visual Studio Code (Version #1.84)" (July 23, 2025)
  2. NVD, CVE-2025-8217

/ Next step

Want this risk read against your own systems?

In a 30-minute briefing we walk through what we would look for in your environment and what a written scope would include.

Request a briefing