APEX 100 · AI-Driven Cybersecurity · #043 · Agentic & Tool Layer — L3 · MCP + tool calls

Sandbox Escape via Agent Code Execution

Agentic & Tool Layer · L3 · MCP + tool calls

An agent executing code in a sandbox is one primitive away from the host: path escapes, environment leaks, dependency confusion. The escape needs no model failure — just a code path.

01Control Architecture

How it is defended

The execution sandbox is the L3 boundary: no-escape-by-construction, per-session egress allowlists, escape-attempt canaries in CI. Escape found in test fails release.

02Why It Breaks Naive Defenses

An agent executing code in a sandbox is one primitive away from the host: path escapes, environment leaks, dependency confusion. The escape needs no model failure — just a code path. The execution sandbox is the L3 boundary: no-escape-by-construction, per-session egress allowlists, escape-attempt canaries in CI. Escape found in test fails release.

👤 Dr. Deepanjan Saha · Chief AI Security Red Team Principal & Chief Cybersecurity Architect (CAISO) · 15+ yrs · 47+ CVEs · 200+ pentests · 12 patents
📞 +91 98317 43870 · 💬 WhatsApp · ✉️ core.deepanjan@gmail.com · 🔗 LinkedIn: DRDEEPANJANSAHA · 🌐 drdeepanjansaha.github.io

Book the engagement that kills this, measured

Dr. Deepanjan Saha — Chief AI Security Red Team Principal & Chief Cybersecurity Architect. 15+ years · 47+ CVEs · 200+ pentests · 12 patents. Delivered as the release gate — a residual-risk number with a trend line, not a PDF.

03FAQ

How do agents escape code-execution sandboxes?

Usually through the plumbing, not the model: host paths, environment variables, network access. Deny-by-default construction plus canary escape tests per release.

How do you defend against sandbox escape via agent code execution?

The execution sandbox is the L3 boundary: no-escape-by-construction, per-session egress allowlists, escape-attempt canaries in CI. Escape found in test fails release.

DR. DEEPANJAN SAHA · CHIEF AI SECURITY RED TEAM PRINCIPAL & CHIEF CYBERSECURITY ARCHITECT · AI-DRIVEN CYBERSECURITY · EST. 2010 · 47+ CVEs · 200+ PENTESTS · 12 PATENTS