Documented Incident · AML.CS0047 · Critical severity

Code to Deploy Destructive AI Agent Discovered in Amazon Q VS Code Extension

In July 2025 (tracked as AIID Incident 1158 and addressed in Amazon Q Developer VS Code extension update v1.84), an attacker exploited compromised repository permissions to submit a malicious commit containing a destructive system prompt into the public Amazon Q VS Code extension codebase. The injected prompt instructed the AI coding agent to wipe local filesystems and delete cloud infrastructure resources if executed by affected users before AWS revoked and patched the release.

Incident dossier metadata

Case ID
AML.CS0047
Classification
Incident
Date
Severity
Critical
Sector
Developer Tooling & Cloud IDE Extensions
Attack vector
Supply-Chain Compromise Injecting Destructive Agent Prompt
System type
IDE coding assistant extension (Amazon Q Developer for VS Code v1.84)
CVE / reference
AIID-1158
Reference URI
https://raw.githubusercontent.com/mitre-atlas/atlas-data/f56c1468731d6428e5bf875263b4643b46d67437/dist/v6/ATLAS-2026.10.yaml#:~:text=AML.CS0047%3A

Inspect AML.CS0047 in Interactive Incidents & Cases Hub

Defensive takeaway

Protect agent system-prompt templates and IDE extension repositories with hardware MFA, mandatory signed commits, multi-party code review, and automated CI diff checks flagging destructive prompt changes.

Mapped AI security techniques

Source citation records