Injected Code in Aqua Trivy VS Code Extension Invoked Local AI Agents

· Original article ↗

Summary

Socket reports that OpenVSX versions 1.8.12 and 1.8.13 of Aqua’s Trivy VS Code extension injected code that launched local AI assistants for reconnaissance and attempted exfiltration. No successful exfiltration is confirmed; the affected releases were removed.

Key points

  • Socket found injected code in OpenVSX versions 1.8.12 and 1.8.13, published on February 27 and 28, 2026; the code was absent from the corresponding public GitHub source and tagged releases.
  • The code ran during workspace activation and silently spawned Claude, Codex, Gemini, GitHub Copilot CLI, and Kiro CLI with permissive, unattended execution options.
  • Version 1.8.12 used a broad reconnaissance prompt that directed agents to collect sensitive information and send findings through available reporting channels.
  • Version 1.8.13 directed agents to write findings to REPORT.MD and, if the GitHub CLI was authenticated, create a repository named posture-report-trivy and push the report.
  • Socket reported no confirmed successful exfiltration and found no public posture-report-trivy repositories at the time; impact depended on local AI tools and, for the second release, an authenticated GitHub CLI.
  • The affected releases were removed from OpenVSX after the publisher account holder revoked the publishing token. Recommended checks include reviewing extension history, AI and shell activity, GitHub activity, and rotating potentially exposed credentials.

Article Details

Attack Vectors
  • Malicious code was injected into Aqua Trivy VS Code extension versions 1.8.12 and 1.8.13 published to OpenVSX; the code was absent from the corresponding public GitHub repository and tagged releases.
  • When a workspace was opened, the extension silently spawned installed AI coding assistants with permissive flags, directing them to inspect local systems and sensitive data.
  • Version 1.8.13 instructed an AI assistant to write findings to REPORT.MD and use the authenticated GitHub CLI to create and push to a repository named posture-report-trivy. The article reports no confirmed successful exfiltration.
Defensive Notes
  • Uninstall affected versions 1.8.12 and 1.8.13 and verify extension installation history.
  • Check for unexpected REPORT.MD files, posture-report-trivy repositories, related GitHub activity, and shell or AI-agent logs showing the described commands.
  • Rotate credentials and tokens that may have been accessible during the exposure window, and audit local AI-agent and shell activity.

MITRE ATT&CK

Vendors

Products

Aqua Trivy VS Code extensionVersions 1.8.12 and 1.8.13 of the Aqua Trivy VS Code extension published to OpenVSX contained injected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissiveClaudeVS Code extension published to OpenVSX contained injected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissive modes to perform broad system reconnaissanceCodexextension published to OpenVSX contained injected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissive modes to perform broad system reconnaissance andGeminipublished to OpenVSX contained injected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissive modes to perform broad system reconnaissance and attemptedGitHub CLI[GitHub CLI Activity ] Suspicious gh usage indicating exfiltration attempts – examples to check: “gh auth token”, “gh repo create”, “gh repo push” (and “gh repo clone”)GitHub Copilot CLIto OpenVSX contained injected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissive modes to perform broad system reconnaissance and attempted exfiltration.Kiro CLIinjected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissive modes to perform broad system reconnaissance and attempted exfiltration.OpenVSXVersions 1.8.12 and 1.8.13 of the Aqua Trivy VS Code extension published to OpenVSX contained injected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissiveTrivyVersions 1.8.12 and 1.8.13 of the Aqua Trivy VS Code extension published to OpenVSX contained injected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissiveVS CodeVersions 1.8.12 and 1.8.13 of the Aqua Trivy VS Code extension published to OpenVSX contained injected code that launched local AI coding assistants (Claude, Codex, Gemini, GitHub Copilot CLI, Kiro CLI) in permissive

Related Articles