Separate disclosures from Wiz and the AI Now Institute this week exposed two different ways attackers can push AI coding agents, including Claude Code, Cursor and Amazon Q Developer, past the security controls vendors sell as safeguards.
Wiz’s GhostApproval defeats the approval prompt that’s supposed to keep a developer in the loop before the agent acts. The AI Now Institute’s Friendly Fire defeats the layer beneath it, undermining the model’s own judgment about when it’s safe to act without asking a human at all.
Together, the two reports sharpen a shift already underway in how agentic coding risk gets assessed. Concerns are no longer just about how an AI code assistant writes, it’s what the assistant is tricked into trusting while it works. That includes the code repositories it’s pointed at, the documentation it reads for instructions, and, in GhostApproval’s case, filename tricks that quietly redirect the agent to a different, more sensitive file than the one it thinks it’s editing.
How each one breaks
Wiz disclosed a weakness called GhostApproval. This is a symlink-based technique letting a booby-trapped repository make an AI coding agent write outside its workspace sandbox while the developer sees a fake, harmless-looking confirmation prompt.
Wiz tested six tools including Amazon Q Developer, Claude Code, Augment, Cursor, Google Antigravity and Windsurf. It found a variant of the flaw in all six. Wiz researchers framed what it found as an informed-consent problem, not a UI bug.
“The Human-in-the-Loop security model only works if the loop provides accurate information,” researchers wrote. When an agent shows a developer one file name while writing to a different, more sensitive target, it argues, the approval itself becomes meaningless.
The same day, the AI Now Institute published Friendly Fire, a separate proof-of-concept showing that Claude Code running Sonnet 4.6, Sonnet 5 or Opus 4.8, and OpenAI’s Codex running GPT-5.5, could be steered by prompt injections hidden in a third-party library’s documentation into executing an attacker’s binary during automated security review of untrusted code.
AI Now researchers Boyan Milanov and Heidy Khlaaf locate the failure one layer up from Wiz’s.
“AI agents’ inability to distinguish between untrusted data sources and safe instructions,” they wrote. The attack requires no malicious plugin, MCP server or custom agent configuration file. Ordinary source-code documentation is enough to make a defensive coding agent execute an attacker’s binary while reviewing code it was told to check.
Expanding the prompt
The disclosures come just as major AI vendors are pitching coding agents not just as developer productivity tools, but as defensive security infrastructure.
Enterprise use of AI coding assistants is accelerating faster than the controls meant to secure them. Gartner projects 90% of enterprise software engineers will use AI code assistants by 2028, up from under 14% in early 2024. A Q1 2026 survey of nearly 2,850 developers found prompt injection had already climbed to the No. 2 reported pain point in agentic coding workflows.
Both research teams describe the same underlying trust issues and access trend. The deep, largely unsupervised reach these AI tools have into enterprise codebases and cloud credentials can be turned against the developers who granted them accesss.
How vendors responded to the AI Now Institute and Wiz reports varied sharply.
Vendor response: Three fixed, two pending, one disputed
Three of the six vendors Wiz tested had fixes in production before the July 8 disclosure. AWS patched Amazon Q Developer’s language server on May 27 in version 1.69.0, addressing a flaw tracked as CVE-2026-12958. AWS said the fix applies automatically for most customers after an IDE reload. Its advisory also disclosed a second, related flaw, CVE-2026-12957, in which a poisoned repository could auto-load a configuration file and run commands capable of stealing a developer’s AWS credentials.
Cursor shipped its fix June 5 in version 3.0 for CVE-2026-50549. Its advisory credits both Wiz and Cato Networks’ AI Labs, whose separate June research, DuneSlide, independently identified the same class of issue. Google patched Antigravity on May 22 in version 1.19.6 and is still evaluating whether to assign a CVE.
Two vendors acknowledged the report but had not shipped fixes as of Wiz’s disclosure. Augment said a patch is “in progress,” with no release date. Windsurf acknowledged Wiz’s report June 23 but had not updated its status. Wiz rated Windsurf’s implementation the most severe because the tool wrote malicious content to disk before the approval dialog appeared, turning the “Accept/Reject” prompt into an after-the-fact undo option rather than a security gate.
Anthropic was the only vendor to dispute the finding. The company told Wiz the scenario falls “outside our current threat model,” arguing the developer had already consented by trusting the directory and approving the edit shown in the dialog. Anthropic also said Claude Code shipped a symlink warning in version 2.1.32 on Feb. 5, nine days before Wiz filed its report, as unrelated proactive hardening.
Securing the model isn’t enough, said Anirban Banerjee, CEO and co-founder of Riscosity. On a LinkedIn post he made the point, GhostApproval is less a model flaw verses a governance problem if organizations can’t see which assistants are in use and what repositories they can reach and where enterprise data is flowing.
Wiz said it discovered GhostApproval on Feb. 10, filed vendor reports from Feb. 12 to March 5, and publicly disclosed the issue July 8 after a coordinated window of more than 90 days.
This Is Not Theoretical
The twin disclosures follow months of research and real-world incidents showing that developer tools, agent configuration files and repository content are becoming part of the software supply-chain attack surface.
In June, StepSecurity reported that the Miasma worm campaign reached Microsoft’s Azure GitHub organizations. GitHub disabled 73 repositories across four Microsoft organizations after a malicious commit was pushed to Azure/durabletask using a previously compromised contributor account, according to StepSecurity.
The attack planted configuration files that could execute a credential-harvesting payload when a developer opened the repository in Claude Code, Gemini CLI, Cursor or VS Code. That campaign was notable because the trigger moved from package installation to folder opening. StepSecurity put it plainly: “Cloning the repository is safe. Opening it is not.”
Claude Code has also had a prior sandbox issue involving symlinks. NVD describes CVE-2026-39861 as a Claude Code sandbox escape in versions before 2.1.64, where sandboxed processes could create symlinks pointing outside the workspace and an unsandboxed process could later write through them without prompting the user. NVD rated the issue critical under CVSS 3.1.
Other research teams have been circling the same category.
Cato AI Labs disclosed DuneSlide, two critical Cursor RCE vulnerabilities involving sandbox escape and prompt injection. Adversa AI’s TrustFall research described one-keypress RCE patterns across Claude Code, Gemini CLI, Cursor CLI and Copilot CLI through project-defined MCP servers. Tenet Security’s Agentjacking research showed how fake Sentry errors could trick coding agents into running attacker-controlled code. Mozilla’s 0din team also reported a Claude Code attack path using a benign-looking Markdown workflow and DNS TXT record to trigger a reverse shell.
The common theme is not that AI coding agents are uniquely sloppy. It is that they collapse several trust decisions into one workflow. They read untrusted content, infer developer intent, execute tools, modify files and summarize the result back to a user who may never see the full chain.
That same pattern is showing up beyond GhostApproval. Ron Bobrov of Tenet Security, discussing the firm’s Agent-jacking research, said the individual proof-of-concept attacks were not exotic, but chained together they turned a “boring error log into an attack path.”
He said ordinary project material can become executable guidance once an agent treats context as instruction.
Can this be fixed?
The harder fix is architectural, researchers point out.
GhostApproval-style issues can be reduced by resolving symlinks before display, showing canonical paths in approval prompts, blocking writes outside the workspace and never writing before explicit approval. Friendly Fire-style issues are harder because they arise from the agent’s core job: reading unfamiliar code and deciding what matters.
Michele Chubirka, a principal security engineer and architect at Red Hat, pointed to the older lesson underneath the new AI wrapper: symlinks have a long history of being abused to cross file-system boundaries.
In a LinkedIn post, she called GhostApproval an “ancient security bypass trick” applied to AI coding agents — a reminder that agentic tools can make familiar bugs more consequential by acting on them with developer-level privileges.
That does not mean AI coding agents cannot be used safely. It does mean enterprises should stop treating approval prompts and sandboxes as independent guarantees. If the model misreads attacker-controlled context, and the sandbox or prompt hides the real effect of the action, the human-in-the-loop may be in the loop only on paper.
“The confirmation dialog transforms from a security control into a formality,” said Wiz characterizing the trust-boundary problem.
AI Now’s Friendly Fire researchers echo the same point from a different direction. “[The risk is] AI agents’ inability to distinguish between untrusted data sources and safe instructions.”
If the model can be fooled by hostile context, and the approval prompt hides what the agent is really doing, the human-in-the-loop becomes less a safety layer than a checkbox with better branding.