By NHI Mgmt Group Editorial TeamDomain: AI SecuritySource: Pillar SecurityPublished July 20, 2026

TL;DR: Sandbox escapes and boundary bypasses were reproduced across Cursor, Codex, Gemini CLI, and Antigravity, showing that agentic coding tools can influence trusted host components even when direct sandbox escape is blocked, according to Pillar Security research. The practical lesson is that endpoint control must shift from process isolation to trust-hand-off governance.


At a glance

What this is: The article argues that AI coding agents are changing the endpoint threat model because sandbox boundaries fail when host components trust agent-written files and commands.

Why it matters: This matters because IAM, PAM, and NHI teams increasingly need to govern agentic tools as endpoint actors with write paths, approvals, and delegated execution risk.

By the numbers:

👉 Read Pillar Security's research on the week of sandbox escapes


Context

Agentic coding tools sit at the intersection of software development, endpoint control, and identity governance. They can read untrusted content, write files, trigger helpers, and influence local automation, which means the security question is no longer just whether the agent itself is confined. The real issue is whether the host components around it treat agent-created artefacts as trusted input.

Pillar Security's research focuses on the gap between a sandbox boundary on paper and the trust relationships that exist on a developer machine in practice. That is a genuine identity and privilege problem as much as it is an endpoint problem, because the agent's effective power comes from the credentials, local daemons, and execution paths it can reach.

The pattern is not unusual for modern developer environments. What is unusual is the speed at which AI coding tools are being treated as infrastructure before most organisations have established governance for their write paths, approval paths, and execution handoffs.


Key questions

Q: What breaks when an AI coding agent can write files that host tools later trust?

A: The sandbox boundary breaks in practice, even if the agent process itself never escapes. Host tools such as task runners, Git helpers, and IDE extensions may treat agent-created files as trusted configuration and execute them. The result is indirect code execution, which means the real control gap is trust in the artefact, not containment of the process.

Q: Why do AI coding tools increase endpoint privilege risk for security teams?

A: They sit near source code, SSH keys, cloud tokens, and local automation, so their write access can affect high-value workflows quickly. If the tool can influence commands, hooks, or daemon interactions, it can inherit more effective privilege than the user expected. That is why endpoint and identity governance now overlap for agentic tooling.

Q: How do security teams know whether sandbox controls are actually working?

A: They know by testing for alternate expressions of the same action, not by checking whether one blocked syntax case still fails. A sandbox is weak if template literals, reflective APIs, indirect property writes, or call arguments can still produce the same privileged effect. The right signal is whether equivalent behaviour is contained across different language forms.

Q: Who is accountable when an AI coding tool introduces insecure code into production?

A: Accountability stays with the organisation that allowed the tool to operate without enforced guardrails. The model is not the accountable party. Security, engineering, and platform owners share responsibility for defining policy, enforcing it at runtime, and logging the decision trail that proves controls were applied.


Technical breakdown

How sandbox boundaries fail when host trust sits outside the agent

A sandbox can restrict direct execution while still allowing the agent to modify files that other local components later trust. That creates a three-layer boundary: direct execution, workspace writes, and host trust. Most failures in this research occur in the third layer, where the agent never escapes containment in the classic sense but still causes an unsandboxed component to act on its output. This is why workspace configuration, helper scripts, and discovery routines become dangerous: they turn write access into indirect execution.

Practical implication: model the trust of every host-side reader, not just the sandbox rules around the agent process.

Why allowlists and denylists miss agentic side effects

Denylist sandboxes struggle because operating systems and developer tools expose too many edge cases to enumerate safely. Allowlists fail for the opposite reason: they often trust command names instead of actual invocations, arguments, and side effects. A command that looks read-only can still call helpers, load configuration, or trigger hooks. In agentic environments, command policy has to be evaluated at the invocation level, not the label level, because the agent can adapt around simplistic controls.

Practical implication: enforce policy on command arguments, working directory, and side effects, not on command names alone.

Why local daemons turn endpoint sandboxes into porous control planes

Many developer endpoints include privileged local daemons such as Docker Desktop, language servers, package managers, or task runners. If an agent can reach those daemons, the sandbox boundary shifts from the process to the daemon API, which usually has more host reach than the agent itself. This is the same structural problem across the findings: the agent is not the whole blast radius. Anything that consumes agent-written output, or any daemon the agent can reach, becomes part of the effective control plane.

Practical implication: inventory and restrict every local daemon that can execute or relay agent-influenced work.


Threat narrative

Attacker objective: The objective is to convert agent write access into host execution or credential-adjacent control without breaking the sandbox directly.

  1. Entry occurs when the agent receives untrusted input such as repository content, docs, or prompts that shape files and commands inside the workspace.
  2. Escalation happens when host-side helpers, task runners, or local daemons treat agent-written artefacts as trusted and execute them outside the sandbox.
  3. Impact follows when the agent influences code execution, configuration, or credential-bearing workflows on the developer endpoint.

NHI Mgmt Group analysis

Agentic coding tools are endpoint actors, not just productivity features. Their real risk comes from the trust handoffs they can influence on the host, not only from the code they execute directly. That changes the control problem for endpoint security, because the boundary now includes workspace artefacts, local helpers, and developer tooling that were not designed for machine-authored inputs. Practitioners should treat agentic tools as governed execution participants.

The named concept here is trust-handoff exposure. This is the failure mode where a sandboxed agent writes something that an unsandboxed component later accepts as trustworthy. It is a more precise model than generic sandbox escape language, because it explains why configuration, discovery, and hook mechanisms are repeatedly exploitable. Security teams should map every trust handoff before they assume isolation exists.

Allowlist and denylist controls are too brittle for agentic endpoints. The research shows that security depends on whether a policy understands the full invocation context, not just the command label or filesystem boundary. That aligns with broader endpoint governance and with identity thinking, because the effective privilege is delegated through execution paths, not just through user login. Practitioners should govern side effects, not names.

Local daemons are becoming implicit privilege amplifiers. A sandbox that leaves open a host-reachable daemon has merely relocated the trust boundary. This is an operational issue for EDR, endpoint hardening, and IAM-adjacent control owners because it shows where identity, local privilege, and application trust intersect on the same device. Teams should inventory daemon reachability as part of endpoint risk review.

This research validates a broader shift in how agentic AI must be governed. The industry is moving from prompts and outputs toward executable workflows, and that means governance needs provenance, approval, and telemetry at the seam where machine-authored output becomes host action. The practitioners who adapt fastest will be the ones who stop treating sandboxing as a binary control and start treating it as an incomplete boundary.

What this signals

Agentic development is moving faster than endpoint governance can absorb, which means the next control gap will be at the seam between machine-authored output and host execution. The organisations that are already instrumenting provenance, local daemon access, and approval boundaries will be better placed to absorb this shift than those still focused only on prompt filtering. For practitioners, the practical takeaway is to treat agentic tools as governed execution participants, not passive assistants.

Trust-handoff exposure: this is the operational pattern security teams now need to watch for when a sandboxed agent can still influence unsandboxed host behaviour. It is directly relevant to NHI governance because the agent's effective privilege is expressed through files, helpers, and daemon APIs rather than through a single login event. Mapping these handoffs against 52 NHI Breaches Analysis helps teams see how delegated access patterns fail in the real world.

As AI coding tools mature, endpoint security will need better telemetry for what an agent wrote, who trusted it, and which local process executed it. That shifts the programme away from binary sandbox debates and toward control-plane visibility, where identity, device trust, and application behaviour all meet. Teams should align this work with NIST AI Risk Management Framework expectations for governance and OWASP Agentic AI Top 10 threat modelling.


For practitioners

  • Map trust handoffs on every developer endpoint Document which host components read agent-written files, which ones execute them, and which ones consume them without human review. Start with task runners, Git helpers, IDE extensions, and local daemons that can turn a file write into code execution.
  • Move command policy from names to invocations Review sandbox policies for command arguments, working directories, helper calls, and side effects. A safe-looking command name is not a control if the invocation can still load config, run hooks, or reach privileged local services.
  • Treat workspace configuration as executable input Classify repo-controlled task files, hooks, and editor configs as sensitive artefacts when an agent can write them. Require approval before agent-created configuration can trigger automation or launch local tooling.
  • Restrict privileged local daemon access Audit which developer daemons are reachable from AI coding tools and remove access unless a concrete workflow requires it. Where access is necessary, place logging and approval around the daemon interaction, not just the agent process.
  • Instrument provenance for agent-created artefacts Log when a trusted helper reads or executes something the agent produced, and preserve provenance from the initial prompt to the host-side action. Without provenance, investigation will miss the seam where the compromise happened.

Key takeaways

  • Agentic coding tools are changing the endpoint threat model because sandbox boundaries fail when host components trust agent-written artefacts.
  • The research shows a recurring control gap at the trust handoff between workspace writes and unsandboxed execution.
  • Security teams should govern command side effects, local daemon reachability, and provenance of agent-created files before scaling adoption.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Agentic AI Top 10 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10NHI-01Agentic tool boundary failures map to unsafe tool use and execution.
MITRE ATT&CKTA0002 , Execution; TA0004 , Privilege Escalation; TA0008 , Lateral MovementThe article centres on execution through host trust and privilege expansion.
NIST CSF 2.0PR.AC-4The research is fundamentally about access and trust boundaries on endpoints.
NIST AI RMFGOVERNAgentic tools need governance over accountability, policy, and oversight.
CIS Controls v8CIS-5 , Account ManagementAgentic workflows can expand effective privilege through unmanaged local execution paths.

Apply agentic app controls to restrict tool execution, approval bypasses, and unsafe write-to-execute paths.


Key terms

  • Trust Handoff: A trust handoff is the point where one component produces output and another component accepts it as safe enough to act on. In agentic systems, these handoffs matter more than the agent process alone because the security failure often happens when a host tool executes or consumes agent-created artefacts.
  • Sandbox Boundary: A control boundary that separates untrusted execution from sensitive systems, data, and credentials. For agentic development, the boundary must cover both what the code can read and what it can call externally, otherwise a sandbox can still reach production through outbound requests.
  • Agentic Endpoint Security: A governance model for AI tools that act on endpoints with enough authority to access data, run commands, or trigger workflow changes. The focus is not just endpoint detection but runtime scope, identity context, and revocation when the task or session ends.
  • Indirect Execution: Indirect execution happens when a process cannot run code directly but can still cause another trusted component to run it on its behalf. That pattern is central to sandbox bypasses, because the compromise often comes from shaping inputs that host tools later execute automatically.

What's in the full report

Pillar Security's full research covers the operational detail this post intentionally leaves for the source:

  • Reproducible escape chains across Cursor, Codex, Gemini CLI, and Antigravity, including the exact boundary each one crossed.
  • Issue identifiers, advisory status, and patch notes for the sandbox bypasses and command-policy failures.
  • Concrete examples of how workspace config, Git helpers, and local daemons became execution paths on the host.
  • Per-finding analysis that shows where the agent's influence stopped and where host trust began.

👉 The full Pillar Security research covers the individual escape chains, advisory status, and boundary failures in detail.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and secrets management. It helps practitioners connect identity control to the broader security programmes that now include agentic tools.
NHIMG Editorial Note
Published by the NHIMG editorial team on July 22, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org