High

GhostApproval, AI coding assistants, symlink, RCE, Wiz, developer security, AI agents

GhostApproval: Poisoned Repos Backdoor AI Coding Assistants

Six popular AI coding assistants can be tricked by a booby-trapped repo into running attacker code, using an old symlink trick against their permission prompt.

Wiz has disclosed GhostApproval, a set of symlink flaws affecting six popular AI coding assistants that let a booby-trapped code project quietly take control of a developer's computer, as reported by The Hacker News. The assistant asks the developer for permission to edit one harmless-looking file, and a symlink redirects that approved write somewhere far more dangerous.

The clever part is that it turns the safety feature into the attack. These assistants ask before touching files precisely so a human stays in control. GhostApproval abuses that trust: you approve an edit to a file you recognize, and the write lands on a script or config that runs code, using a symlink technique that predates AI tooling by decades, per SecurityWeek.

It is not an isolated finding. In a separate proof of concept, researchers at the AI Now Institute showed that AI agents asked to scan open-source code for vulnerabilities can be tricked into executing the very malware they were meant to inspect. The pattern is the same: an agent with real access reads attacker-controlled input and acts on it.

The lesson is not to abandon these tools but to stop treating their prompts as a substitute for isolation. Run untrusted repositories in sandboxes, keep agent file and execution permissions tightly scoped, and remember that an approval prompt only protects you if what you approve is what actually happens.

Sources: The Hacker News, SecurityWeek; AI Now Institute.

Related guide: AI Coding Assistant Security Risks: Claude, Cursor, Codex

This is the class of bug that ships in AI-generated code every day.
This flaw came down to symlink following (CWE-59). Argus scans your own repos for the same patterns before they reach production.
Run a free scan →No setup. Connect a repo, get a prioritized report.
Liked this briefing? Share it:

More briefings

Get the briefings first
Breaking security news, verified fast, with the one fact the headlines skip. No spam - unsubscribe anytime.
AI CODE SECURITY
Catch the bug before it ships
Argus scans your repos for the vulnerability classes behind today's CVEs.
›Prioritized by real exploit data
›Connect a repo in minutes
Run a free scan →
Live NVD · EPSS · CISA KEV