← Lab /Security & privacy

AI coding assistants can be tricked into writing outside the workspace via symlinks

Six major AI coding assistants allow malicious repositories to bypass sandbox protections and write to arbitrary files outside the workspace.

Security & privacy Wiz Research 8 Jul 2026 Disclosure Real-world evidence

Published as “GhostApproval: A Trust Boundary Gap in AI Coding Assistants”

Why it matters

These findings show that current AI coding assistants can silently bypass user consent, enabling privilege escalation on developer machines.

Summary

The researchers created a malicious repository containing a symlink that points to a sensitive file such as ~/.ssh/authorized_keys. When prompted, six AI coding assistants followed the symlink and wrote the attacker-controlled content to the target location, often before showing any confirmation dialog. In many cases the UI displayed the original filename, hiding the true destination, so users approved a seemingly harmless edit. The team reported the issue to vendors; three fixed it, one rejected it as outside the threat model, and two remain pending.

What they found 2

  1. Agents follow symlinks and write to the target file outside the workspace without warning

    “The agent happily followed a symlink pointing outside the workspace and wrote to the target file. No warning, no path resolution, no sandbox enforcement.”

  2. Confirmation dialogs hide the true target path, misleading users

    “When testing our proof-of-concept, the agent's internal reasoning explicitly stated: > "I can see that project_settings.json is actually a zsh configuration file." Yet the confirmation prompt shown to the user simply asked: > "Make this edit to project_settings.json?"”

Caveats 4

  • Anthropic responded with a reasoned rejection: "This falls outside our current threat model..."
  • Anthropic rejected the report as outside its threat model
  • Fixes are version-specific; older versions of the tools remain vulnerable
  • Detection guidance relies on Wiz Sensor, which may not be deployed in all environments

What’s new here 4

  • Identification of a category-level vulnerability (GhostApproval) across multiple AI coding assistants
  • Demonstration that symlink following combined with UI misrepresentation enables silent remote code execution
  • Assignment of CVEs for affected products and coordinated disclosures
  • Guidance and detection rules via Wiz Sensor for early detection of malicious symlinks