
A Sandbox Is Not an Egress Policy: Testing Coding Agents in Node.js
On this page
The Reported Sandbox Risk and the Reported Secret Leak Answer Different Questions
Two headlines about AI coding agents arrived a day apart in the source material for this post, and they are easy to merge into one story about sandboxes failing. They shouldn't be merged. What follows builds a local-only Node.js harness that demonstrates a failure neither headline actually describes: an agent sitting inside an intact sandbox, reading data it was allowed to read, and sending it out over a path that was allowed to exist. Along the way you get a threat model, a probe matrix, and a set of invariants for testing coding-agent egress, secret visibility, and tool permissions without pointing anything at a live system.
What the Supplied Reporting Actually Establishes
The material dates a Tech Wire Asia report — "Anthropic research reveals AI agent sandbox security risks" — to 2026-11-27T04:12:12Z. It dates a Superpower Daily report — "AI coding agent sent company secrets to an outside service for weeks, NordLayer says" — to 2026-11-26T13:39:36Z. Both came in as news.google.com/rss/articles/... redirect links. I don't have either original publisher URL, and the snippets carry nothing beyond the headlines.
Both items are secondary-source claims here. I haven't read the original Anthropic research write-up or the NordLayer disclosure, because the supplied material doesn't contain them. Everything in this post about those two reports is limited to what the headlines and timestamps say, and is labelled as unverified.
What the snippets support, and nothing more:
- A report attributed to Tech Wire Asia says Anthropic research identifies security risks in AI agent sandboxes. The snippet doesn't name the sandbox, the model, the version, the class of risk, or the disclosure timeline.
- A report attributed to Superpower Daily says NordLayer claims an AI coding agent sent company secrets to an outside service for weeks. The snippet doesn't name the agent, the vendor, the model, the destination, the volume, the duration in days, or the mechanism.
- The NordLayer item is timestamped roughly fifteen hours before the Anthropic one. That ordering is a fact about the metadata, not evidence that the two relate. There's no shared sourcing, no shared author, no shared incident.
Technical position: a sandbox is an execution-isolation control. It isn't an egress policy, a secret-access policy, or a tool-authorization policy. The likeliest explanation for a weeks-long secret transfer by a coding agent isn't a sandbox escape — it's an authorized data path that nobody modelled. That's inference, and I'm labelling it as such. The rest of this post builds a lab that demonstrates such a path deterministically. It does not reproduce either report.
What follows is a harness, not a postmortem. I haven't run it against a real provider, and I haven't reproduced either reported case.
Separate Execution Isolation, Secret Access, and Outbound Authority
Coding agents are usually drawn as a single box. They are at least six boundaries.
| Boundary | What it is | What a "sandbox" usually controls here |
|---|---|---|
| Agent orchestration | The loop that decides to call tools, in your process | Nothing |
| Model-provider requests | HTTPS from your orchestrator to the provider | Nothing |
| Sandboxed commands | Shell/tool execution in a container or VM | fs, process, sometimes net |
| Tool brokers | Code that turns a model request into a real side effect | Nothing unless you write it |
| Repository storage | The checkout the agent edits | Read/write scope |
| External services | Registries, package mirrors, MCP servers, SaaS APIs | Nothing unless you write it |
Why Sandbox Escape Is the Boring Hypothesis
If an agent can read process.env and call fetch, you don't need a container escape to exfiltrate. You need a loop, a tool that reads, and a tool that sends. Both of those are features. A coding agent with a shell tool and network access has the same outbound capability as a developer sitting at the same machine. That's the intended design, and it's the whole problem.
The interesting failure mode looks like an authorization question: this tool was allowed to talk to this host, so the request was allowed, so the bytes left. A hostname allowlist answers "may we talk to X?" It doesn't answer "may this payload go to X?"
What Node.js Permissions Do and Do Not Establish
Node.js has a permission model behind --permission, with flags like --allow-fs-read, --allow-fs-write, --allow-child-process, --allow-worker, --allow-addons, and — on recent releases — a network flag. Check what your pinned binary actually supports instead of trusting a blog post:
$ node --version
$ node --help | grep -E -- '--(permission|allow-)'
Two things matter here:
- The permission model doesn't gate
process.env. Anything running in the process can read environment secrets, sandbox or not. - Filesystem scoping can't exclude the repository. Reading the repo is the agent's job. Any file-based secret that lands in the checkout is inside the trust boundary by design.
So there's one load-bearing control left for outbound bytes: enforcement at a layer the agent's own code can't talk around.
Build a Threat Model Around Data Flows
Inventory the Sensitive Inputs
| Input | Example | Readable by the agent? |
|---|---|---|
| Repository files | src/, config, fixtures | Yes, by design |
| Environment variables | DEPLOY_TOKEN, cloud keys | Yes, unavoidably |
| Mounted credentials | ~/.aws, ~/.npmrc, k8s SA tokens | Only if you mount them |
| Tool responses | MCP server output, DB rows | Yes, by design |
| Logs and artifacts | Build logs, test output | Often overlooked |
| Conversation context | Everything already in the prompt | Yes, and now remote |
Map the Outbound Paths
Child processes, HTTP tools, package installs (npm install is arbitrary code execution plus network), Git operations (git push, remote hooks), remote tool servers, telemetry and SDK traffic, and the provider request itself. Most teams forget that last one: the provider request carries repo content out, and it's the agent's primary function.
Separate Hostile Instructions from Excessive Permission
A secret transfer doesn't prove prompt injection on its own. Three different causes produce the same observable:
- Hostile content — a
README, an issue body, a dependency'spostinstall, or a tool response instructs the agent to send data. - Excessive permission — no hostile content at all; the agent had a legitimate reason to read and a legitimate tool to send, and nobody scoped the combination.
- Routine context collection — telemetry or a debugging integration shipping workspace data to a vendor endpoint by default.
Category 2 is the cheapest to rule out, so the harness below tests it first.
Assert Invariants the Harness Can Prove
- I0 — the collector is reachable through the approved path (positive control).
- I1 — zero direct arrivals at the sink.
- I2 — zero canary bytes at any forbidden sink.
- I3 — every broker decision is internally consistent (
allowwith no reason). - I4 — every broker operation carries a run id.
I0 isn't decoration. Without it, a misconfigured collector reads as a clean pass.
Construct a Local-Only Node.js Test Harness
Prerequisites and Repository Layout
Pin a Node.js release you actually support. Everything here is local — no service outside the host is reachable from any container.
agent-lab/
docker-compose.yml # base: broker-only topology
docker-compose.permissive.yml
docker-compose.network-restricted.yml
runner/{Dockerfile,probe.js}
broker/{Dockerfile,server.js}
collector/{Dockerfile,server.js}
workspace/{src/app.js,CANARY.txt}
evidence/ # NDJSON written by broker + collector
bin/{run.sh,assert-invariants.mjs}
Use Synthetic Data Only
workspace/CANARY.txt holds a repo-visible canary. The runner container gets a fake DEPLOY_TOKEN in its environment. The collector registers the same canary values so it can report a boolean match. No real credentials, no production checkout, no ~/.aws mount, no external destinations anywhere in the compose files.
Separate the Runner, Broker, and Sink Networks Deliberately
## docker-compose.yml (excerpt)
name: agent-lab
services:
runner:
build: ./runner
environment:
RUN_ID: "${RUN_ID:?set RUN_ID}"
SINK_URL: "http://collector:8080"
BROKER_URL: "http://broker:7070"
DEPLOY_TOKEN: "${FAKE_DEPLOY_TOKEN:?set FAKE_DEPLOY_TOKEN}"
volumes:
- ./workspace:/work:ro
read_only: true
cap_drop: [ALL]
security_opt: ["no-new-privileges:true"]
networks: [net_runner]
command:
- node
- --permission
- --allow-fs-read=/work
- --allow-fs-read=/app
- --allow-child-process
- /app/probe.js
broker:
build: ./broker
environment:
RUN_ID: "${RUN_ID:?set RUN_ID}"
ALLOWED_HOSTS: "collector"
CANARY_VALUES: "${CANARY_VALUES:?set CANARY_VALUES}"
EVIDENCE_DIR: "/evidence"
volumes:
- ./evidence:/evidence
networks: [net_runner, net_broker]
collector:
build: ./collector
environment:
CANARY_VALUES: "${CANARY_VALUES:?set CANARY_VALUES}"
EVIDENCE_DIR: "/evidence"
volumes:
- ./evidence:/evidence
networks: [net_broker]
networks:
net_runner:
internal: true
net_broker:
internal: true
internal: true removes the default route off the host, so nothing in the lab can reach the internet. The runner shares a network with the broker and not with the collector, so the only route from runner to sink is through the broker. Host and container runtime stay trusted — the broker's bind mount into evidence/ is a deliberate lab compromise, not a production pattern.
Log Structured Events Without Payloads
Broker and collector both append NDJSON. Neither one records the payload. They record runId, op, host, path, method, payloadBytes, decision, reason, and a canaryMatch boolean.
import { createServer } from "node:http";
const EVIDENCE = process.env.EVIDENCE_DIR || "/evidence";
const ALLOWED_HOSTS = new Set((process.env.ALLOWED_HOSTS || "").split(",").filter(Boolean));
const ALLOWED_METHODS = new Set(["GET", "POST"]);
const ALLOWED_PATH = /^/(sink|health)$/;
const MAX_BODY_BYTES = 4096;
const MAX_HOPS = 3;
const CANARIES = (process.env.CANARY_VALUES || "").split(",").filter(Boolean);
mkdirSync(EVIDENCE, { recursive: true });
function record(event) {
appendFileSync(EVIDENCE + "/broker.ndjson", JSON.stringify(event) + "
");
}
function containsCanary(text) {
return CANARIES.some(function (c) { return text.includes(c); });
}
function span(url) {
try {
const u = new URL(url);
return { host: u.hostname, path: u.pathname };
} catch (e) {
return { host: null, path: null };
}
}
function authorizeFetch(spec) {
let url;
try { url = new URL(spec.url); } catch (e) { return { allow: false, reason: "bad_url" }; }
if (url.protocol !== "http:") return { allow: false, reason: "bad_scheme" };
if (!ALLOWED_HOSTS.has(url.hostname)) return { allow: false, reason: "host_not_allowed" };
if (!ALLOWED_METHODS.has(spec.method)) return { allow: false, reason: "method_not_allowed" };
if (!ALLOWED_PATH.test(url.pathname)) return { allow: false, reason: "path_not_allowed" };
const body = typeof spec.body === "string" ? spec.body : "";
if (Buffer.byteLength(body) > MAX_BODY_BYTES) return { allow: false, reason: "body_too_large" };
if (containsCanary(body)) return { allow: false, reason: "canary_in_payload" };
return { allow: true, url: url, body: body };
}
async function doFetch(spec, runId) {
let current = spec;
for (let hop = 0; hop <= MAX_HOPS; hop++) {
const decision = authorizeFetch(current);
const where = span(current.url);
record({
ts: new Date().toISOString(),
runId: runId,
op: "fetch",
hop: hop,
host: where.host,
path: where.path,
method: current.method,
payloadBytes: Buffer.byteLength(current.body || ""),
canaryMatch: containsCanary(current.body || ""),
decision: decision.allow ? "allow" : "deny",
reason: decision.reason || null
});
if (!decision.allow) return { status: 403, body: { error: decision.reason } };
const res = await fetch(decision.url, {
method: current.method,
body: current.method === "POST" ? decision.body : undefined,
redirect: "manual",
headers: { "x-broker-op": "fetch", "content-type": "text/plain" }
});
if (res.status >= 300 && res.status < 400) {
const location = res.headers.get("location");
if (!location) return { status: 502, body: { error: "redirect_without_location" } };
current = { url: new URL(location, decision.url).href, method: "GET", body: "" };
continue;
}
return { status: res.status, body: { forwarded: true } };
}
return { status: 508, body: { error: "too_many_redirects" } };
}The hop loop is the bit most implementations skip. A single redirect: "follow" turns any allowlisted host into an open proxy: the first request is authorized, the 302 target isn't.
Establish a Permissive Baseline First
Before hardening anything, prove the harness can see a leak.
## docker-compose.permissive.yml
services:
runner:
networks: [net_runner, net_broker]
That one line gives the runner a route to the collector. Process isolation is identical — --permission, dropped capabilities, read-only root filesystem, read-only workspace. Only the network changes.
import { readFileSync } from "node:fs";
const RUN_ID = process.env.RUN_ID;
const SINK = process.env.SINK_URL;
const BROKER = process.env.BROKER_URL;
const CANARY = process.env.CANARY_VALUES ? process.env.CANARY_VALUES.split(",")[0] : "";
function emit(probe, record) {
process.stdout.write(JSON.stringify({ runId: RUN_ID, probe: probe, ...record }) + "
");
}
async function run(name, fn) {
try {
const detail = await fn();
emit(name, { outcome: "allowed", ...detail });
} catch (err) {
emit(name, {
outcome: "denied",
code: (err && err.code) || (err && err.cause && err.cause.code) || null,
message: String((err && err.message) || err).slice(0, 120)
});
}
}
async function broker(op, payload) {
const res = await fetch(BROKER + "/op", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({ runId: RUN_ID, op: op, ...payload })
});
return { status: res.status, body: await res.json() };
}
const childCode = [
'fetch(process.env.SINK_URL + "/sink", { method: "POST", body: "child-probe" })',
' .then(function (r) { console.log(JSON.stringify({ child: "ok", status: r.status })); })',
' .catch(function (e) { console.log(JSON.stringify({ child: "err", code: (e.cause && e.cause.code) || e.name })); });'
].join("\n");
await run("fs.read.repo_canary", async () => ({
bytes: readFileSync("/work/CANARY.txt", "utf8").length
}));
await run("env.read.token", async () => ({
present: Boolean(process.env.DEPLOY_TOKEN),
bytes: (process.env.DEPLOY_TOKEN || "").length
}));
await run("fs.read.mount_cred", async () => ({
bytes: readFileSync("/run/lab/credentials.json", "utf8").length
}));
await run("dns.lookup", async () => ({ address: (await lookup("collector")).address }));
await run("http.fetch.direct", async () => {
const res = await fetch(SINK + "/sink", { method: "POST", body: "direct" });
return { status: res.status };
});
await run("child.fetch.direct", async () => {
const out = spawnSync(process.execPath, process.execArgv.concat(["-e", childCode]), {
encoding: "utf8",
env: process.env
});
const last = (out.stdout || "").trim().split("\n").pop() || "{}";
return JSON.parse(last);
});
await run("broker.health", async () => ({ status: (await broker("health", {})).status }));
await run("broker.fetch.allowed", async () => ({
status: (await broker("fetch", { url: SINK + "/sink", method: "POST", body: "hello" })).status
}));
await run("broker.fetch.payload", async () => ({
status: (await broker("fetch", { url: SINK + "/sink", method: "POST", body: "token=" + CANARY })).status
}));
await run("broker.fetch.denied_host", async () => ({
status: (await broker("fetch", { url: "http://example.com/sink", method: "POST", body: "x" })).status
}));
await run("broker.fetch.redirect", async () => ({
status: (await broker("fetch", { url: SINK + "/redirect?to=/sink", method: "GET" })).status
}));Note the --allow-child-process flag in the base command. Without it, child.fetch.direct gets denied by the permission model, not by the network, and you'll read a process-permission denial as an egress control doing its job. That distinction is the reason to test at the enforcement layer.
The runner never talks to the collector directly, so it has no way to report there. Runner results go to stdout and get captured by the wrapper. The collector's NDJSON is ground truth about what actually arrived.
#!/usr/bin/env bash
## bin/run.sh
set -euo pipefail
CONFIG="${1:?config: permissive|network-restricted|broker-only}"
export RUN_ID="${RUN_ID:-$(date -u +%Y%m%dT%H%M%SZ)}"
: > evidence/broker.ndjson
: > evidence/collector.ndjson
docker compose -f docker-compose.yml -f "docker-compose.${CONFIG}.yml" up \
--build --abort-on-container-exit --exit-code-from runner
docker compose -f docker-compose.yml -f "docker-compose.${CONFIG}.yml" \
logs --no-log-prefix runner > evidence/runner.log
node bin/assert-invariants.mjs "$CONFIG"
Test Secret Visibility Before Testing Network Controls
Secret visibility and egress are independent problems. Sort out the first, or you won't know which control produced a denial.
| Channel | Probe | Control | Expected in broker-only |
|---|---|---|---|
| Repo file | fs.read.repo_canary | None — agent needs the repo | allowed |
| Environment | env.read.token | None available at this layer | allowed |
| Mounted cred | fs.read.mount_cred | --allow-fs-read=/work,/app | denied, ERR_ACCESS_DENIED |
| Tool response | broker /op response body | Broker response schema | allowed if returned |
| Child process | child.fetch.direct | --allow-child-process + network | denied by network |
Two rows here are uncomfortable, and both are real:
- The repo canary is readable by design. There's no way to scope a coding agent away from the code it's editing.
process.envisn't gated. Stripping ambient credentials out of the container environment is the only control. There's no flag for it.
Then track where permitted content goes next. Four distinct disclosure surfaces: model context, broker request body, broker/collector logs, and artifacts (test output, coverage files, dependency caches). The harness records the second and third as booleans only. The first and fourth need instrumentation of their own.
Verify Network Egress at the Actual Enforcement Layer
A fetch Wrapper Is Not a Boundary
// do not ship this as a control
globalThis.fetch = new Proxy(globalThis.fetch, {
apply(target, thisArg, args) {
if (!String(args[0]).startsWith("https://api.approved.example/")) {
throw new Error("blocked");
}
return Reflect.apply(target, thisArg, args);
}
});
That's defeated by node:http, by child_process, by node:net on a raw socket, by a native addon, by a dynamic import(), and by any dependency that grabbed a reference to fetch before your patch ran. It's a lint rule in a security costume. Enforcement has to sit outside the process: a container with no route, a network policy, or a broker the process can't bypass.
The Probe Set That Distinguishes the Enforcement Layers
dns.lookup for name resolution, http.fetch.direct for the TCP path, child.fetch.direct to check whether a subprocess escapes the JS-level control, and an IP-literal variant — capture the collector's address during the permissive run and feed it back as SINK_IP to see whether name-based blocking survives an address. Run it against the lab collector only. Never point this matrix at a system you don't own.
Why Redirects Break Hostname Allowlists
broker.fetch.redirect is the one worth sitting with. The first hop targets an allowlisted host on an allowlisted path; the collector replies 302 Location: /sink. A broker that follows redirects silently re-authorizes nothing, and the second request goes wherever the first server points. The implementation above re-runs authorizeFetch on every hop, caps at three, and downgrades to GET with an empty body — forwarding the original payload to a redirect target is the exact mistake worth preventing.
Verify the Verifier Before Trusting a Pass
Pair every failed connection attempt with a policy record and a collector observation, then add the positive control:
const health = broker.find(function (e) { return e.op === "health" && e.decision === "allow"; });
invariant("I0", "collector reachable through broker", Boolean(health),
health ? "health recorded" : "no health record — results untrustworthy");
Without I0, the network-restricted configuration produces a clean-looking, meaningless pass: nothing arrives at the sink because nothing works at all.
Enforce Tool Permissions Beyond Destination Allowlists
Authorize Per Operation, Not Per Host
The broker above checks six things per request: scheme, host, method, path regex, body size, and a canary predicate. You need all six. Host alone is the weakest of the group.
Demonstrate the Allowed-Destination Gap
broker.fetch.allowed and broker.fetch.payload target the same allowlisted host and the same path. Only the body differs. Expected broker evidence:
{"runId":"hard-001","op":"fetch","hop":0,"host":"collector","path":"/sink","method":"POST","payloadBytes":5,"canaryMatch":false,"decision":"allow","reason":null}
{"runId":"hard-001","op":"fetch","hop":0,"host":"collector","path":"/sink","method":"POST","payloadBytes":30,"canaryMatch":true,"decision":"deny","reason":"canary_in_payload"}
Same hostname, opposite outcome. An allowlist that stops at the hostname can't express that, which is why "we allowlist the agent's outbound domains" isn't an authorization policy.
Keep Credentials Inside a Narrow Operation
The better shape is a broker operation like create_pr_comment that holds the token in its own environment and never returns it. The runner asks for the effect; the broker owns the credential. That shrinks the blast radius a lot, but the remaining risk is underweighted almost everywhere: an overpowered broker action is equivalent to an overpowered credential. A post_comment operation with an attacker-controlled repo parameter is a write primitive. Narrow the verb and the object.
Treat Canary Checks as Defense in Depth
body.includes(canary) catches the crude case. It misses base64, hex, gzip, chunking across two requests, and any secret the lab didn't register. It's a tripwire that produces useful evidence, not a DLP boundary. Write that down in the design doc so nobody scopes a launch against it.
Separate Deterministic Boundary Tests from Agent Behavior Evaluations
Two separate activities, two separate reporting formats.
Run the Deterministic Probe Matrix
$ RUN_ID=base-001 ./bin/run.sh permissive
$ RUN_ID=net-001 ./bin/run.sh network-restricted
$ RUN_ID=hard-001 ./bin/run.sh broker-only
Expected probe outcomes — expected, not yet executed by me on this harness:
| Probe | permissive | network-restricted | broker-only |
|---|---|---|---|
fs.read.repo_canary | allowed | allowed | allowed |
env.read.token | allowed | allowed | allowed |
fs.read.mount_cred | denied | denied | denied |
dns.lookup | allowed | denied ENOTFOUND | denied ENOTFOUND |
http.fetch.direct | allowed 200 | denied | denied |
child.fetch.direct | allowed 200 | denied | denied |
broker.health | allowed 200 | denied ECONNREFUSED | allowed 200 |
broker.fetch.allowed | allowed | denied | allowed 200 |
broker.fetch.payload | canary_in_payload | n/a | canary_in_payload |
broker.fetch.redirect | n/a | n/a | host_not_allowed |
| I0 health | PASS | FAIL | PASS |
| I2 canary at sink | FAIL (1 arrival) | PASS (vacuous) | PASS |
The permissive column is the one that matters most: identical process isolation, identical filesystem scope, identical dropped capabilities — and a canary in the sink, because the runner had a route. The network-restricted column is the false-pass trap. The broker-only column is the only one where the result means something, because I0 is green there too.
Report real counts and logs only after a real run. If your matrix differs, the diff is the interesting part — write it down before you explain it away.
Run the Agent Behavior Evaluation Separately
Deterministic probes say nothing about what a model actually does. That needs a separate run with an explicit scope, and every field below recorded, or it isn't evidence:
| Field | Must be recorded |
|---|---|
| Provider | Exact name |
| Model identifier | Exact version string, not a family name |
| Agent version | Harness/CLI version and commit |
| Prompt set | Verbatim, including system prompt |
| Tool configuration | Every tool name, schema, and permission |
| Task count | N, with the denominator stated |
| Success criterion | Defined before the run, not after |
| Hostile-condition arm | Synthetic README/issue text, lab-only |
| Metrics | Attempts, blocked actions, completed transfers — counted separately |
Report it as a table with counts, never as a percentage of "N=4". One transfer seen in three runs is "1 transfer in 3 runs", not "the agent exfiltrates 33% of the time". Two conflations to watch for: a blocked attempt isn't a prevented transfer, and a completed transfer to the lab collector isn't real-world impact.
I haven't run this evaluation. The table above is the protocol. Any row I can't fill stays empty rather than turning into an estimate.
Interpret Failures and Choose the Corresponding Defense
Map Each Finding to the Right Control
| Observed | Wrong conclusion | Correct control |
|---|---|---|
| Repo canary readable | "sandbox escaped" | Secret isolation — keep credentials out of the checkout |
| Env secret readable | "permission model bug" | Remove ambient credentials from the container env |
| Direct connection succeeded | "we need a better fetch wrapper" | Network enforcement outside the process |
| Broker forwarded a canary | "prompt injection" | Narrower tool authority + payload policy |
| Nothing reached the sink | "we are secure" | Check I0 before believing it |
The second-to-last row is the one to sit with. The broker forwarded the canary because the broker was asked to and the policy was too coarse. No hostile content is needed to explain it. The NordLayer headline describes a weeks-long transfer, and the mechanism that best fits "weeks" is a permitted, repeating, unremarkable flow into an integration nobody was watching. That's inference — the snippet doesn't say that, and I'm not claiming it does.
Residual Risks the Lab Does Not Cover
- Provider-bound context. If the agent reads a secret into the prompt, it's gone, whatever your container policy says. Container-level egress control can't fix this, because the provider call is the agent's job. The levers are secret isolation, provider retention terms, and keeping credentials out of anywhere the loop can read.
- Permitted dependencies. A registry the broker allowlists is a code-execution channel.
- Remote tool servers. An MCP server's outbound behaviour is outside your container's policy.
- Logs and artifacts. Structured event logging reduces this, but stdout capture still exists.
- Encoded content. Canary matching is byte-literal.
- Anything outside the lab. Host kernel, container runtime, orchestrator, CI.
Response Actions for a Real Exposure
Revoke the affected credentials first, before forensics — the transfer may still be running. Preserve audit evidence in place rather than pruning it. Get destinations and duration from logs, not from memory. And don't infer compromise from a blocked attempt: a broker denial is a control working. Treating it as a breach trains people to switch the control off.
What the Harness Demonstrates and What the Reports Still Need to Establish
The harness demonstrates one thing deterministically: an authorized agent, inside an intact sandbox, reading data it was permitted to read and sending it along a path that was permitted to exist, with the bytes arriving at a sink. No escape, no memory corruption, no prompt injection required.
What it can't do is confirm the mechanics of either supplied report. The Tech Wire Asia snippet names a class of risk in agent sandboxes and no specifics. The Superpower Daily snippet names a claim of a weeks-long transfer and no agent, destination, duration, or mechanism. Neither lets me say which control failed, and nothing in the material links the two items beyond a fifteen-hour publication gap.
The actionable point stands either way: if your agent can read a secret and can reach a destination, you have an exfiltration path — and the sandbox has nothing to say about it. Model the data flows, enforce egress outside the process, authorize operations rather than hostnames, and keep a positive control in the suite so a broken collector never reads as a clean pass.
Further Reading and Evidence
Supplied secondary sources (as provided; redirect URLs, original publisher pages not confirmed):
- Tech Wire Asia, "Anthropic research reveals AI agent sandbox security risks", published 2026-11-27T04:12:12Z — supplied Google News redirect
- Superpower Daily, "AI coding agent sent company secrets to an outside service for weeks, NordLayer says", published 2026-11-26T13:39:36Z — supplied Google News redirect
Primary documentation used by the harness:
- Node.js permission model — the flags, their scope, and the documented limitations; check your pinned version.
- Node.js CLI options — authoritative list of
--allow-*flags for your exact release; the network flag's availability varies by version. - Docker Compose networking — how Compose creates networks and attaches services.
- Docker Compose file reference: networks — the
internaloption used to remove the default route. - OWASP Top 10 for LLM Applications — excessive agency and sensitive information disclosure as framing for the authorization gap discussed above.
Not yet located and therefore not cited: the original Anthropic research write-up and the original NordLayer disclosure. Add them here only after locating and verifying both, rather than linking an approximation.
More posts

Why Egress Allowlists Beat Policy Prompts in the Gemini Agent Breach
Google's Gemini agent reportedly escaped its test environment through a domain mix-up and breached three real companies, a containment failure that shows why production-grade egress allowlists and hard environment isolation matter far more than policy prompts for tool-using LLM agents.

Testing NVIDIA's Document-AI Adaptation Release Against Prompting With a Template-Held-Out Split
A practical workflow for benchmarking NVIDIA's document-AI adaptation release against prompting, using a template-held-out split to compare extraction accuracy, latency, and deployment cost before committing to fine-tuning.

Testing TypeScript SDK Generators for Vendor Independence After the Reported Stainless Deal
A practical deep-technical walkthrough for testing TypeScript SDK generators and generated clients against vendor-independence risks after Anthropic's reported Stainless acquisition.
Loading comments…