A symlink trick fooled Claude Code, Cursor and four other AI coding agents into approving edits they didn't disclose

Security researchers at Wiz found that Claude Code, Cursor, Windsurf, Google Antigravity, Amazon Q and Augment can all be tricked into writing to sensitive files like SSH keys while showing the user an approval prompt that names a harmless-looking symlink instead of the real target — and patch response has varied sharply by vendor.

Cloud security firm Wiz published research on 8 July into a flaw it calls GhostApproval: a trust-boundary gap affecting at least six mainstream AI coding agents, including Claude Code, Cursor, Windsurf, Google Antigravity, Amazon Q, and Augment. The mechanism is old — a classic symlink-based attack (CWE-61) — but the target is new. A malicious repository can plant a symlink that looks innocent, get an agent to write through it, and the file that actually changes can be something like ~/.ssh/authorized_keys. The human-in-the-loop safeguard that’s supposed to catch this — the “approve this edit?” prompt — shows the symlink’s name, not what it actually points to. In Wiz’s proof of concept, the agent’s own internal reasoning correctly identified the real target file; the interface just didn’t surface it.

What makes this worth tracking isn’t the exploit mechanics, which are a known category. It’s the patch response, because it varies by vendor in a way that’s directly useful due diligence for anyone choosing a tool. AWS shipped a fix for Amazon Q (CVE-2026-12958). Cursor patched too (CVE-2026-50549). Google’s Antigravity fixed the issue without yet assigning a CVE. Augment and Windsurf had acknowledged the report but not shipped a fix at the time of publication. Anthropic’s initial position was that the behaviour sat “outside our current threat model” — treating the existing directory-trust prompt as sufficient — though Wiz notes Anthropic has since added symlink warnings in a later release.

So what

This is the same pattern as the Alibaba/Claude Code episode two days earlier: AI coding agents now run with enough filesystem and shell access that a single overlooked edge case in the approval UI becomes a real credential-exposure risk, not a theoretical one. The practical takeaway for anyone running these tools against real client codebases isn’t “stop using AI coding agents” — it’s “know which one you’re using, whether the vendor has actually closed this class of gap, and whether your own repo hygiene (no untrusted symlinks, sandboxed execution, least-privilege file access) covers you regardless of vendor patch status.” That’s a governance and process question as much as a tooling one, and it’s exactly what we build into engagements where AI-assisted delivery touches production or client data. See our AI-assisted development page for how we handle it, or get in touch if you want a second opinion on your current stack.

← All research

More research.

GitHub AI usage API now returns per-model token counts, so Copilot spend can finally be traced to models

GitHub's AI credit usage REST API now returns six raw token counts per model for enterprises, organisations and individuals, giving Copilot cost tracking a real audit trail.

Read ›

Claude Code 2.1.335: add remote MCP servers from the terminal, a new Interrupt hook, and a harness audit for older models

Claude Code 2.1.335 adds a one-line command to register remote MCP servers as claude.ai connectors, an Interrupt hook event and a /claude-api harness-audit command for agent code written for older models.

Read ›

GitHub Copilot model controls shift: Claude Opus 4.8 (fast) retired, targeted model rules end 12 January 2027

GitHub retired Claude Opus 4.8 (fast) in Copilot on 30 November and is closing the targeted organisation model rules preview, with migration on 12 January 2027.

Read ›

Claude Code 2.1.334: REVIEW.md now works at folder level, plus a model search box and a visible auto-compact setting

Claude Code 2.1.334 extends REVIEW.md so AI code reviews follow rules held in folders, adds a search box for long model lists and shows the auto-compact window in settings.

Read ›

GitHub Copilot for JetBrains adds scheduled automations in preview and drops support for IDE 2025.2

GitHub Copilot for JetBrains can now run automated tasks on a schedule (preview), adds Microsoft Foundry and Azure OpenAI models to its agent, and no longer supports JetBrains IDEs 2025.2.

Read ›

Claude Code 2.1.333: REVIEW.md shapes AI code reviews, and you can stop one workflow agent

Claude Code 2.1.333 lets teams write their code review rules in a REVIEW.md file, lets one running agent in a workflow be stopped without halting the rest, and changes how permission lists are passed in scripts.

Read ›

Start a project

Building with AI? Let's talk.

Tell us what you are building. We'll give you an honest view of the right approach.

Start a projectSee our work