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
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
- Supply Chain Compromise: Software AML.T0010.001
- User Execution: Malicious Package AML.T0011.001
- LLM Prompt Injection: Direct AML.T0051.000
- Unsecured Credentials AML.T0055
- LLM Prompt Crafting AML.T0065
- Data Destruction via AI Agent Tool Invocation AML.T0101
- Deploy AI Agent AML.T0103
Source citation records
- MITRE ATLAS: Code to Deploy Destructive AI Agent Discovered in Amazon Q VS Code Extension · MITRE ·
- GitHub commit containing the malicious prompt · Cited by MITRE ATLAS; publisher not independently verified
- 404 Media report on the Amazon Q VS Code extension incident · Cited by MITRE ATLAS; publisher not independently verified
- CVE detailing the Amazon Q Developer VS Code Extension Vulnerability · Cited by MITRE ATLAS; publisher not independently verified
- Medium article detailing the events of the Amazon Q VS Code extension incident · Cited by MITRE ATLAS; publisher not independently verified
- Security Update for Amazon Q Developer Extension for Visual Studio Code (Version #1.84) · Cited by MITRE ATLAS; publisher not independently verified
- AIID - Incident 1158: Alleged Malicious Wiping Command Found in Amazon Q AI Assistant · Cited by MITRE ATLAS; publisher not independently verified