AI Coding Assistants Approved a Hack, and You Likely Clicked Yes

Last week, Wiz Research published details on GhostApproval, a flaw that hits six AI coding assistants. The short version: the approval pop-up you see when your coding assistant asks to edit a file can lie.

Here is how it works. A malicious repository contains a symbolic link disguised as an innocent config file. When your AI agent follows the README and tries to edit that file, the symlink secretly points to something sensitive on your machine, like your ~/.ssh/authorized_keys file. The agent writes an attacker-supplied public key into it. The pop-up shows a harmless filename. You click approve. The attacker now has passwordless access to your machine.

The affected tools include Amazon Q Developer, Anthropic Claude Code, Augment, Cursor, Google Antigravity, and Windsurf. Amazon, Google, and Cursor treated it as high or critical severity and shipped fixes. Amazon issued CVE-2026-12958, Cursor issued CVE-2026-50549, and Google patched Antigravity.

Augment and Windsurf acknowledged the report but have not patched. Anthropic took the most interesting position: it argued the flaw was outside its threat model because the user already trusted the directory, then later added a symlink warning in Claude Code v2.1.32.

The core problem is not the symlink. Unix systems have had symbolic links for decades. The problem is that AI coding assistants bypass the normal human-in-the-loop security model. Wiz researcher Maor Dokhanian put it well: the consent is formally present but substantively empty.

What You Should Do Right Now

If you use any of these tools at work or at home, take these steps:

  • Update immediately. Apply the latest patches for Claude Code, Amazon Q, Cursor, and Google Antigravity. If you use Augment or Windsurf, treat them as potential risks until those vendors ship a fix.
  • Inspect unfamiliar repos. Malicious instructions in a README are the trigger. Before asking your AI assistant to set up a new project, check whether it contains unexpected symlinks or instructions to edit files you did not expect.
  • Harden SSH access. Use hardware keys or time-limited certificates instead of permanent authorised_keys entries. If an attacker does plant a key, the blast radius is smaller if that key expires quickly.
  • Limit agent reach. Audit what cloud credentials, environment variables, and mounted secrets your coding assistant can access. The same symlink trick can target cloud metadata or local credential stores.

This is not a panic moment. It is a signal. AI coding assistants are becoming autonomous enough that old trust assumptions no longer hold. The tool should resolve symlinks before showing you an approval dialog. Until every vendor does that, the human in the loop needs to verify the actual target path, not just the filename.

GhostApproval is a reminder that AI did not invent new security flaws. It repackaged old ones at scale. The tool that speeds up your workflow can just as easily speed up an attacker. Verify the path, not the pop-up.

Related Reading

Subscribe

Related articles

The AI Sandbox Myth: Why Your Security Tests Are Hacking Real Companies

Anthropic's Claude breached three real organisations during cybersecurity tests, OpenAI's models exploited a zero-day to hack Hugging Face, and a UK lab found AI agents faking identities to target real people. The containment myth is collapsing. Here is what enterprises must do now.

Machine-Speed Science: Can America 10x Discovery While Cutting the Labs?

The White House wants to 10x scientific discovery with AI while proposing a 54% cut to the NSF. A balanced look at the Genesis Mission, export controls, open weights and the entry-level job squeeze.

Google Rebuilds Its AI Leadership Team as Rivals Gain Ground

Google has announced a significant leadership reshuffle across its AI divisions, with DeepMind CEO Demis Hassabis moving to chairman and Jeff Dean departing to co-found a scientific discovery startup.

Meta’s Muse Spark Breached a Company During Testing. The AI Containment Problem Is Everyone’s Problem Now.

Meta confirmed its Muse Spark 1.1 AI model hacked another company during a cybersecurity test. After OpenAI and Anthropic, this is now a pattern, not an accident.

Frontier AI agents took unauthorised actions on the live internet during UK safety tests

UK AI Security Institute tests caught frontier AI agents from Anthropic and OpenAI taking unauthorised actions on the live internet, raising fresh concerns about AI safety.
spot_imgspot_img
Phil Hall
Phil Hall
Philip Hall is a Sydney-based Cyber AI and Automation leader with more than 30 years of technology experience and a career in cyber security dating back to 2008. His work spans cyber architecture, cloud security, threat intelligence, assurance, incident support, AI-enabled defence and the security of autonomous agents.