Skip to content
Submit incident
AII-1000-30187
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.Supporting sources are pending verification.

GhostApproval Symlink Flaw Enables Remote Code Execution via AI Coding Assistants

Researchers at Wiz discovered a vulnerability pattern called GhostApproval affecting six popular AI coding assistants, where malicious code repositories can use symlinks to trick the tools into writing to sensitive files outside their intended workspace. The flaw exploits a mismatch between what the AI agent recognizes as dangerous and what confirmation prompts show to developers, potentially enabling remote code execution on developer machines.

8 July 2026 Β· Amazon Β· Security and cyberattacks
8 July 2026
AII-1000-30187
Quick facts
Category
Security and cyberattacks
Country
United States
Date
8 July 2026
Drafted by
Raidu Incident Detection

What happened

Researchers at Wiz discovered GhostApproval, a vulnerability pattern affecting six AI coding assistants: Amazon Q Developer, Anthropic Claude Code, Augment, Cursor, Google Antigravity, and Windsurf. Malicious code repositories can exploit symlinks to trick the tools into writing to sensitive files outside their intended workspace sandbox.

In each case, the agent's internal reasoning recognizes the dangerous target, but the confirmation prompt shown to the user conceals this information. The user approves what they believe is a harmless local edit while the agent writes to a sensitive file outside the project workspace, potentially achieving remote code execution on the developer's machine.

Reported impact

The vulnerability allows attackers to escape the sandbox protections designed into these tools and gain unauthorized access to arbitrary files outside the workspace.

Index analysis

Symbolic links are special files that act as shortcuts to other files or directories and have been used as attack vectors for decades. GhostApproval exploits this well-known technique by combining it with UI misrepresentation of critical information (CWE-451), where the confirmation prompt does not accurately reflect the file that will be modified.

Governance controls

Wiz reported the issue to the six affected vendors. AWS, Cursor, and Google fixed the issue promptly, Augment and Windsurf acknowledged receipt but went silent, and Anthropic had already fixed the problem before being contacted by Wiz.

Classification

Category
Security and cyberattacks
Industry
Digital security
Country
United States
Harm status
Potential harm
Intent
Unknown
Timing
Post-deployment
Harm types
Other
Failure modes
Agent misaction, Manipulation or dark pattern, Prompt injection, Unsafe autonomous behaviour
AI systems
Amazon Q Developer for Visual Studio Code Extension, Augment, Claude Code, Cursor, Google Antigravity, Windsurf

Sources and evidence

Sources not yet published

This record was researched and written by the Index from original reporting. Its sources are still being verified by an editor, and they are listed here once that check is complete. Until then the record carries no reviewer.

How sources are verifiedSuggest a source for this incident