惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

B
Blog RSS Feed
C
CERT Recently Published Vulnerability Notes
P
Proofpoint News Feed
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
云风的 BLOG
云风的 BLOG
H
Help Net Security
Recorded Future
Recorded Future
The Register - Security
The Register - Security
F
Full Disclosure
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hackread – Cybersecurity News, Data Breaches, AI and More
爱范儿
爱范儿
Security Archives - TechRepublic
Security Archives - TechRepublic
Simon Willison's Weblog
Simon Willison's Weblog
Cisco Talos Blog
Cisco Talos Blog
I
InfoQ
T
Tenable Blog
T
Tor Project blog
人人都是产品经理
人人都是产品经理
D
DataBreaches.Net
NISL@THU
NISL@THU
Google DeepMind News
Google DeepMind News
博客园 - 叶小钗
B
Blog
V
V2EX
Jina AI
Jina AI
L
LangChain Blog
月光博客
月光博客
W
WeLiveSecurity
U
Unit 42
AWS News Blog
AWS News Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
博客园 - 聂微东
V
Visual Studio Blog
A
Arctic Wolf
T
Tailwind CSS Blog
The Cloudflare Blog
SecWiki News
SecWiki News
S
SegmentFault 最新的问题
Hacker News - Newest:
Hacker News - Newest: "LLM"
宝玉的分享
宝玉的分享
MyScale Blog
MyScale Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Securelist
www.infosecurity-magazine.com
www.infosecurity-magazine.com
腾讯CDC
雷峰网
雷峰网

Wiz Blog | RSS feed

Meet Wiz for M365: Bringing SaaS into the Security Graph Bringing Security Visibility to Vercel with Wiz Axios NPM Distribution Compromised in Supply Chain Attack Tracking TeamPCP: Investigating Post-Compromise Attacks Seen in the Wild The Wiz Blue Agent, now Generally Available Beyond the Badge: What Achieving Microsoft’s Certified Software Designation Means for Your Cloud Security Introducing the Green Agent: AI-Powered Remediation for the Cloud Three’s a Crowd: TeamPCP trojanizes LiteLLM in Continuation of Campaign KICS GitHub Action Compromised: TeamPCP Strikes Again in Supply Chain Attack Introducing the Wiz Red Agent- AI-Powered Attacker Introducing Wiz AI Application Protection Platform (AI-APP) Introducing Wiz Agents & Workflows: Security at the Speed of AI AI Runtime Threat Detection: From Input to Real-World Impact Trivy Compromised: Everything You Need to Know about the Latest Supply Chain Attack It’s Official: Wiz Joins Google Understanding and Reducing AI Risk in Modern Applications Introducing Wiz Tenant Manager: Multi-Tenant Management for Federated Organizations The Agile FedRAMP Playbook, Part 4: Reactive Risk Management through Enriched Incident Response Wiz Achieves CPSTIC Certification in Spain Seeing AI Clearly: Building Visibility Across Modern AI Applications The Agile FedRAMP Playbook, Part 3: Preventative Risk Management by building Secure by Design Wiz Leads the 2026 Latio Application Security Report with awards in 4 categories Building an Agentic Cloud Security Ecosystem: A Reference Architecture with Wiz MCP and Infosys Cyber Next The Agile FedRAMP Playbook, Part 2: Proactive Risk Management with Continuous Monitoring Cloud-native Security for your Windows environment: Announcing the Wiz Runtime Sensor for Windows Would You Click ‘Accept’? Automatically detecting malicious Azure OAuth applications using LLMs Wiz Named a Leader in The Forrester Wave™: Cloud Native Application Protection Solutions, Q1 2026 From Detection to Remediation: It’s Time to Rethink AppSec Around Exploitability and Root Cause Fixes The Agile FedRAMP Playbook, Part 1: Why Risk is Your Best Starting Point Introducing AI Cyber Model Arena: A Real-World Benchmark for AI Agents in Cybersecurity Wiz + Spotify Backstage: Security at the Developer’s Desk Building AI Security Together: New Ways to Partner with Wiz for AI Security in 2026 Hacking Moltbook: The AI Social Network Any Human Can Control The Year in Wiz Research: 2025 Most Read Blogs WizExtend is Here: AI and Cloud Security Insights in Your Daily Workflow From Detection to Remediation: Wiz in Your JetBrains IDE Agentic Browser Security: 2025 Year-End Review CodeBreach: Infiltrating the AWS Console Supply Chain and Hijacking AWS GitHub Repositories via CodeBuild A 90-Day Action Plan to Turn Resolutions into Results with Wiz Introducing the Wiz Partner Alliance: A New Chapter for Partner Success Preparing for Post-Quantum Cryptography Wiz Recognized as a 2025 Customers’ Choice in the Gartner® Peer Insights™ Voice of the Customer for CNAPP Expanding the Zero Critical Club to set a new standard for AppSec and SecOps teams Snipping the Long Tail of Shai-Hulud 2.0 Protecting Against Zero-Day Vulnerabilities with SOC-Level ASM Alert MongoBleed (CVE-2025-14847) exploited in the wild: everything you need to know The Kenna Transition: Your Strategic Shift to Exposure Management From MCP to Vibe Coding: Full Endpoint Visibility in Wiz AI Security Bringing Oracle Cloud Identity to Wiz Zero‑Days in the Age of AI: Behind the Scenes of ZeroDay.cloud 2025, with a Record High of CVEs in Critical Cloud Infra Gogs 0-Day Exploited in the Wild Code to Cloud Attacks: From Github PAT to Cloud Control Plane Top AWS re:Invent Announcements for Security Teams in 2025 React2Shell: Technical Deep-Dive & In-the-Wild Exploitation of CVE-2025-55182 React2Shell (CVE-2025-55182): Everything You Need to Know About the Critical React Vulnerability Wiz Product Announcements at re:Invent 2025: Expanding Visibility from Code to Cloud Introducing Wiz SAST: Where Code Risk Meets Cloud Context Wiz Becomes Fastest Security ISV to Reach $1 Billion in AWS Marketplace Lifetime Sales It's Here! Wiz Exposure Management is Now GA Shai-Hulud 2.0 Aftermath: Trends, Victimology and Impact Service Catalog is Here: Expand Risk Visibility for Your Service and Its Dependencies, Simplify Issue Ownership WizOS: Powering Secured Image Adoption with AI 3 OAuth TTPs Seen This Month — and How to Detect Them with Entra ID Logs Mastering Software Governance with Hosted Technologies Inventory Shai-Hulud 2.0 Supply Chain Attack: 25K+ Repos Exposing Secrets Get Certified on Wiz Defend for Threat Detection and Response Blueprint for Security: A Guide to Code, Governance, and Response Frameworks Google Unified Security Recommended Program Names Wiz Among First 3 Strategic Partners Introducing Posture Issues: Transform Security Findings into Actionable Outcomes Empower and Accelerate Your SOC with the Blue Agent Exposure Report: 65% of Leading AI Companies Found with Verified Secret Leaks Wizdom 2025 Product Announcements: Extending the Cloud Operating Model When AI Becomes the Heart of Security: Powering a Future You Can Trust AI-Powered Wiz: From Agents to Everyday Intelligence Defend Agentless Workload Detection: Bringing Visibility to Blind Spots in Threat Detection Securing AI Agents with Wiz AI-SPM Introducing Wiz ASM: Context-Driven Attack Surface Management Securing Critical Infrastructure in the Cloud Era: A Policy and Technology Blueprint How CISOs Should Plan Security Budgets for 2026 Beyond the Checkbox: How Wiz Transforms SOC 2 into a Security Powerhouse Bringing Visibility to Kubernetes: Unified Inventory and Network Insight The Foundation Modern AppSec Is Still Missing: Code to Cloud, Rebuilt the Right Way Dismantling a Critical Supply Chain Risk in VSCode Extension Marketplaces Introducing HoneyBee: How We Automate Honeypot Deployment for Threat Research RediShell: Critical Remote Code Execution Vulnerability (CVE-2025-49844) in Redis, 10 CVSS score Defending against database ransomware attacks AI Security 101: Mapping the AI Attack Surface Introducing zeroday.cloud: First-of-its-kind cloud and AI hacking competition Unifying Cloud Risk and Network Defense: Wiz and Check Point The emerging use of malware invoking AI Wiz achieves FedRAMP High authorization Wiz + HCP Terraform: Close the IaC-to-Cloud Infrastructure Security Gap IMDS Abused: Hunting Rare Behaviors to Uncover Exploits Beyond CVEs: The Exploitation of Everyday Misconfigurations Wiz Research Discovers One in Five Organizations Exposed to Systemic Risks in Vibe-Coded Applications - Here's How to Secure Them Introducing Wiz Incident Response: Your Expert Partner for Cloud Security Incidents Shai-Hulud: Ongoing Package Supply Chain Worm Delivering Data-Stealing Malware DORA Compliance in the Cloud Era: Insights from Deloitte and Wiz How Wiz Customers like Brex and FICO See AI Changing Security Wiz Recognized as a Leader in the 2025 IDC MarketScape for ASPM
Amazon Q Vulnerability: Compromise via MCP Auto-Execution | Wiz Blog
https://www.wiz.io/authors/maor-dokhanian · 2026-06-26 · via Wiz Blog | RSS feed
SeverityHigh
CVECVE-2026-12957
Affected VersionsLanguage server version < 1.65.0
Fixed InLanguage server version 1.65.0
VendorAmazon Web Services
StatusFixed

Executive Summary

Wiz Research discovered a high-severity vulnerability in Amazon Q Developer Extension for Visual Studio Code (VS Code), Amazon's AI-powered coding assistant for VS Code, which allowed attackers to achieve arbitrary code execution and cloud credential theft simply by having a developer open a malicious repository. Amazon Q automatically loaded MCP server configurations from workspace files without user consent. Combined with full environment inheritance, this enabled immediate code execution. 

Amazon has remediated this issue in language server version 1.65.0.

This vulnerability is part of a broader pattern affecting AI coding tools. Similar issues have been independently discovered across the ecosystem - including findings by OX Security and Check Point published around the same time - demonstrating that MCP auto-execution is a systemic risk requiring industry-wide attention.

Introduction

AI-powered coding assistants have become essential tools for developers. Extensions like Amazon Q, GitHub Copilot, and others integrate deeply into our development environments, offering code suggestions, automated refactoring, and intelligent tooling. To enable richer functionality, many of these tools have adopted the Model Context Protocol (MCP) - a standard that allows AI assistants to spawn local processes and interact with external services.

This post details a vulnerability discovered in the Amazon Q VS Code extension where MCP server configurations were automatically loaded and executed from workspace files - without user consent. The result: opening a malicious repository could lead to immediate code execution - with full access to the developer's environment, including cloud credentials, API keys, and internal systems.

The Trust Boundary Problem

When you open a project folder in VS Code, you're implicitly trusting dozens of configuration files: package.json, .vscode/settings.json, .eslintrc, and many others. Most of these are declarative - they configure behavior but don't execute code directly.

Extensions, however, often blur this line. They may read workspace-specific configs and act on them automatically. The critical question becomes: what happens when an attacker controls those config files?

The result: a developer clones a seemingly legitimate repository, opens it in their IDE, and malicious configs execute before they've reviewed a single line of code.

MCP: Power and Peril

The Model Context Protocol enables AI assistants to spawn local processes called "MCP servers". These servers extend the AI's capabilities - connecting to databases, calling APIs, running build tools, or accessing local resources.

A typical MCP configuration looks like this:

The security model assumes the user explicitly configures these servers. After all, you're granting an AI assistant permission to run arbitrary commands on your machine. This should require informed consent.

The vulnerability arose when this assumption was violated: Amazon Q automatically loaded MCP configurations from .amazonq/mcp.json within the workspace - no prompt, no consent, no workspace trust check.

Technical Breakdown

The vulnerability stemmed from two behaviors in how Amazon Q handled MCP server configurations:

Problem 1: Auto-execution without consent

The extension loaded .amazonq/mcp.json from the workspace root immediately upon opening the folder. No dialog asked the user to approve these MCP servers. No workspace trust check prevented execution in untrusted folders.

Problem 2: Full environment access

Spawned processes inherited the user's complete environment. For developers working with cloud services, this typically includes: 

  • AWS credentials (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN)

  • Cloud CLI authentication tokens

  • API keys and secrets

  • SSH agent sockets

The combination meant that a single malicious config file could execute arbitrary commands with full access to the developer's credentials - no user interaction required beyond opening the folder and activating Amazon Q.

Proof of Concept

To demonstrate the vulnerability, we created a minimal malicious repository:

The mcp.json contained:

Attack flow:

  1. Victim clones the repository (perhaps a typosquatted package or malicious PR).

  2. Victim opens the folder in VS Code with Amazon Q installed.

  3. When the victim activates Amazon Q, the extension loads and executes the malicious MCP configuration - without prompting for consent.

  4. The attacker's payload runs with access to the victim's AWS credentials.

In our testing, the aws sts get-caller-identity command successfully captured the developer's active AWS session - demonstrating how an attacker could escalate from code execution to cloud compromise.

Impact Assessment

Immediate Impact:

  • Arbitrary code execution on the victim's machine

  • Minimal user interaction required - opening the folder with Amazon Q active

  • Silent execution with no visible indicators

Escalation Potential:

  • Theft of cloud credentials (AWS, GCP, Azure)

  • Cloud persistence - backdoor IAM users, access keys, or infrastructure

  • Access to internal services via inherited VPN/network context

  • Supply chain attacks targeting maintainers of popular projects

  • Lateral movement if the developer has access to production systems

Attack Scenarios:

  • Malicious pull request to a popular repository

  • Typosquatted package names

  • Compromised dependencies with added config files

  • Social engineering - fake job interviews (a known DPRK tactic) where candidates are asked to clone and run "coding tests"

Part of a Broader Pattern

This vulnerability is not unique to Amazon Q. The pattern of auto-executing workspace configurations without consent has been discovered repeatedly across the VS Code ecosystem and AI coding tools. Notable related findings include:

CVEProductResearchers
CVE-2025-59536Claude CodeCheck Point Research
CVE-2026-21852Claude CodeCheck Point Research
CVE-2025-54136CursorCheck Point Research
CVE-2026-30615WindsurfOX Security
CVE-2021-26700NPM ExtensionSlack
CVE-2020-17023VS Code CoreJustin Steven

Broader Security Lessons

Lesson 1: Workspace Configs Are Attacker-Controlled Input

Any file that can exist in a git repository should be treated as untrusted input. Extensions must validate, sanitize, and - most importantly - obtain consent before acting on workspace configs.

Lesson 2: Convenience Features Often Skip Consent

The auto-loading behavior was likely designed for convenience. But convenience and security are often in tension. The safest default is to require explicit consent for any action that executes code. VS Code's workspace trust feature exists precisely for this reason - extensions should integrate with it.

Lesson 3: Environment Inheritance Is an Underrated Risk

When spawning child processes, inheriting the full environment is the path of least resistance. But it's also a significant security risk. Processes should receive the minimum environment necessary. This is especially critical for AI coding tools where developers work while authenticated to cloud services.

Required Actions and Mitigations

Amazon has remediated this issue. No immediate action is required for users on language server version 1.65.0 or later.

However, we recommend developers take the following precautions:

  • Be cautious with untrusted repositories - Treat unfamiliar projects with care.

  • Review MCP consent prompts carefully - When Amazon Q displays an "Untrusted MCP Server" warning, inspect the command before allowing.

  • Review workspace directories - Check for unexpected .amazonq/ folders in repositories.

  • Audit MCP configurations - Review any MCP server configurations in your environment.

Amazon Q now displays a consent prompt before loading MCP servers from workspace configurations, giving users the opportunity to review and reject untrusted commands:

Amazon Q's consent prompt for workspace MCP servers

AWS Public Statement

“We would like to thank Wiz for collaborating with us on this issue. We have remediated this issue in language server version 1.65.0.

The AWS Language Server updates automatically unless the customer's network configuration prevents it, so no action is required in most cases. For existing customers, reloading the IDE will trigger an update to the latest language server version, which includes this fix. If auto-update is blocked, we recommend upgrading to the latest version of the Amazon Q Developer plugin for your IDE. New customers require no action, as the latest patched version will be downloaded automatically.

Customers can learn more by reading Security Bulletin 2026-047-AWS

Responsible Disclosure Timeline

April 17, 2026 - Vulnerability discovered

April 20, 2026 - Initial report submitted to Amazon Security

April 20, 2026 - Amazon acknowledged receipt

May 12, 2026 - Fix deployed via Language Server update, resolving the issue in the Amazon Q VS Code Extension.

June 23, 2026 - CVE-2026-12957 assigned

June 26, 2026 - Public disclosure

Conclusion

The combination of auto-execution, shell spawning, and environment inheritance created a high-severity vulnerability in a widely-used developer tool. A single malicious repository could compromise not just the developer's local machine, but their cloud infrastructure as well.

As AI coding assistants become more powerful and more prevalent, the security community must scrutinize them with the same rigor we apply to browsers, operating systems, and other trusted computing bases. The convenience these tools provide is immense - but so is their potential for abuse.

This vulnerability was discovered by Maor Dokhanian (Wiz) and disclosed responsibly to Amazon. We thank Amazon for their prompt response and collaborative approach to remediation.