Security Risks from AI Coding Agents Expand Beyond the Sandbox: Pillar

Dashboard displaying time saved, content created, task automations, search queries, employee engagement score, and usage by department

What matters here for technical teams is not just a โ€œsandbox escapeโ€ label, but a broader trust-boundary problem. AI coding agents are being embedded into developer workflows that already span IDE plugins, CLI tools, Git operations, local interpreters, hooks, and container runtimes. That means the security question is no longer limited to the agent process itself; it extends to every file, command, and local service the host later trusts.

For architects and platform teams, the key design issue is integration sprawl. A single assistant can interact with workspace files, dependency metadata, task runners, and daemonized services that sit outside the sandbox. Each integration widens the blast radius and creates new places where a prompt-injected payload can be transformed into an apparently legitimate action. In practice, security controls must account for command arguments, side effects, and chained execution pathsโ€”not just binary allow/deny decisions on command names.

This also changes how development environments should be governed. If an AI tool can modify environments, influence hooks, or trigger privileged local components, then least privilege has to be enforced across the full toolchain. That includes isolating interpreters, constraining Git and container interactions, and auditing what local daemons can expose to IDEs and agentic CLIs. Traditional endpoint policies may miss these interactions because they look like ordinary developer activity.

Operationally, the implication is clear: enterprises adopting AI coding agents need dedicated detection, policy, and review coverage for agent-generated actions. Security teams should treat these tools as active workload participants, not passive productivity add-ons. Without that shift, organizations can gain coding velocity while quietly expanding their attack surface into places current sandbox models were never designed to protect.


AI coding assistants have become an essential part of developersโ€™ work, automating many of the repetitive tasks โ€“ think boilerplate coding and scaffolding โ€“ that in the past ate up a lot of their time. More jobs can now get done faster.

That said, such agents also represent a significant security risk, making developers โ€“ who were already targets of cybercriminals โ€“ even more attractive. In recent weeks, cybersecurity researchers have reported on such threats as โ€œHalluSquattingโ€ and โ€œGhostApproval,โ€ which target developers and their AI tools.

Thatโ€™s in part because the adoption of AI coding agents is outpacing the development of security tools to protect them. Cyberhaven Lab researchers noted in May that adoption of AI coding agents was growing faster than the use of any other AI tool, jumping 357% between February 2025 and this year. They also are the highest-risk category.

โ€œWhen a developer pastes a code block into a coding assistant, or when an agentic coding tool browses a local repo autonomously, the data exposure isnโ€™t hypothetical,โ€ wrote Mike Leon, machine learning engineer with Cyberhaven. โ€œItโ€™s immediate. Security teams that havenโ€™t built specific detection and policy coverage for coding assistant activity are operating with a significant blind spot, one that is growing by hundreds of users per quarter.โ€

The Threat Outside of the Sandbox

Over the past several months, Pillar Security researchers have written about a range of security flaws in the sandboxes of four popular coding agents โ€“ Googleโ€™s Gemini CLI, OpenAIโ€™s Codex, Cursor, and Antigravity โ€“ that can be abused without directly targeting the sandboxes themselves. Instead, the coding agents needed only to create files that a trusted component outside of the sandbox would later be processed โ€“ run, loaded, scanned, and treated as safe โ€“ by a trusted component outside of the sandbox.

โ€œIn aggregate, these vulnerabilities show that AI coding agents change the endpoint threat model, and that most sandbox designs have not caught up,โ€ researchers Eilon Cohen, Dan Lisichkin, and Ariel Fogel wrote in a report this week dubbed โ€œThe Week of Sandbox Escapes.โ€ โ€œThe bottom line is that an agentโ€™s blast radius is not the agent process; it includes everything the agent can write that the host later trusts.โ€

The AI agents themselves can work โ€“ and remain โ€“ in the sandbox, so the issue isnโ€™t a standard escape. The problem is the files an agentic CLI or IDE produce inside the sandbox can be read and acted upon outside of it. Coding agents run their own tools outside of the sandbox, from Python extensions that resolve interpreters and Git integrations that scan repositories to VS Code running task files, hook engines firing lifecycle commands, and Docker Desktop exposing local sockets.

Prompt Injection Threat

Given that, untrusted input created via a prompt injection attack โ€“ such as malicious code in a README file, web content, a software dependency, or code comments โ€“ can be processed by the agent within the sandbox and acted upon outside of it. Itโ€™s another way that threat actors can abuse the trust inherent in AI coding tools.

Pillar researchers categorized their findings into four โ€œfailure modes,โ€ including denylist sandboxes that arenโ€™t keeping up with the increasing complexity in operating systems and workspace configurations that essentially are executable code. The others are so-called safe command allowlists that trust command names rather than invocations and privileged local daemons that are located outside of the sandbox.

The Security Flaws

Four of the flaws were found in Cursor, including one in which Git metadata indirection โ€“ using a pointer file instead of a Git folder โ€“ escaped the sandboxโ€™s path-based security rules, and another in which the agentic assistant could modify a virtual environment so that a Python extension could execute the changed interpreter. A third vulnerability โ€“ tracked as CVE-2026-48124 and fixed in version 3.0.0 โ€“ could turn a workspace-control Claude hook configuration file into a tool for executing commands outside of a sandbox.

A vulnerability affecting Cursor, Codex, and Gemini CLI at the same time allowed agents to launch privileged containers and let a privileged local daemon become a code execution environment outside of a sandbox. Like the others, this flaw has been fixed.

OpenAI patched a vulnerability in Codex CLI in which a โ€œsafeโ€ command allowlist trusted a command name โ€œwithout modeling dangerous arguments and Git side effects.โ€

Pillar also downgraded two issues in Antigravity โ€“ a sandbox bypass and a macOS Seatbelt denylist bypass โ€“ saying they were difficult to exploit.

An Ongoing Concern

Other researchers also have been investigating the risks of AI coding agents running inside a sandbox. Cymulateโ€™s research lab in May detailed similar sandbox-related issues with Anthropicโ€™s Claude Code, Gemini CLI, Codex CLI, Cursor, and GitHub Copilot. Pillarโ€™s research also echoes the concerns outlined by Cymulate.

โ€œAI coding agents โ€ฆ are rapidly becoming part of modern development workflows,โ€ the researchers wrote. โ€œThese tools are often marketed not only as productivity tools, but also as security tools capable of auditing code, detecting vulnerabilities and improving overall security posture. This research shows that the agents themselves introduce a new attack surface.โ€

https://devops.com/security-risks-from-ai-coding-agents-expand-beyond-the-sandbox-pillar/

Enjoyed this article? Sign up for our newsletter to receive regular insights and stay connected.