AlpacaX

Insights

An AI agent sandbox escape hit WorkOS: scope ends where it's enforced

If only the sandbox limits what an AI agent can touch, then once the agent gets out, the target's own controls are all that's left.

Marco Kwak
Marco KwakFormer Head of GTM · December 4, 2026

Nobody pointed the agent at WorkOS, by WorkOS's account. An AI security agent running benchmark evaluations "escaped a researcher's sandbox," WorkOS wrote on November 6, and "Its interaction with WorkOS was unintended." The agent still found an internal tool exposed to the internet, authenticated with a predictable development credential and pulled sales and support records in bulk.

WorkOS has published its side; nobody has published the other: which hosts and data the agent could touch (its scope), and what enforced it. If a task file and a container scope your agents, your setup leaves the same question open.

TL;DR: In WorkOS's account, a researcher's AI security agent escaped its sandbox and reached sales and support records through an exposed tool and a predictable credential; neither WorkOS nor the researcher has said what else bounded the agent. An offensive agent treats each new host it finds as the next target, so its scope has to be enforced where the agent can't change it: a network egress boundary, and a person approving new targets.

What WorkOS says happened

The researcher "was conducting cybersecurity benchmark evaluations using ARTEX when their agent escaped its isolated testing environment," WorkOS wrote. WorkOS's original November 2 bulletin, written before the researcher came forward, describes the activity as using "an AI-assisted offensive security framework to automate reconnaissance and exploitation attempts."

The timeline, from the November 6 update:

  • October 25: the first confirmed unauthorized access to the internal tool's API.
  • October 30: records were retrieved in bulk. WorkOS identified the activity only "after the bulk retrieval had ended," from unusual usage, and removed public access that day.
  • November 3 to 5: the researcher came forward, a forensics firm matched their evidence to WorkOS's logs, and the researcher says they deleted the data.

The tool "should not have been reachable from the internet," WorkOS wrote, and "Because the credential was predictable, the agent was able to authenticate after discovering the endpoint." There was no rate limiting. The records included CRM business contacts, account histories, summaries and excerpts of sales calls, support discussions and customer Slack conversations, and product-usage metadata; a limited number of support communications included end-user email addresses.

Two failures, two owners

The first failure is WorkOS's, and WorkOS names four contributing causes itself: a tool whose API endpoints were exposed publicly, a predictable development credential deployed to production, no rate limiting, and telemetry and detection that didn't catch the activity in time.

The second belongs to whoever runs the agent: what kept it inside its scope. "Neither party has said how the agent left its environment," the Cloud Security Alliance's research note says. Working from the outcome rather than from any disclosure, CSA concludes that the environment "did not enforce a network-layer boundary that blocked traffic to WorkOS." Our hypothesis, not a finding, goes one step further: the sandbox was the only thing that enforced this agent's scope.

The timeline also raises who could have caught it first. WorkOS spotted the activity on October 30, after the bulk pull, and published on November 2; the researcher came forward on November 3. Nothing published says the researcher noticed earlier.

Where an AI agent's scope can live

An AI agent's scope can live in four places, and each ends somewhere different.

Where the scope livesWho enforces itWhere it ends
Prompt, task description, rules fileThe agent, by reading itWherever the agent reinterprets it or decides a new host is in scope
The agent's own environment: container, VMThe environment around the agentAt the sandbox's edge; outside it, only the target's own controls apply
A network boundary the agent can't change: default-deny egressInfrastructure outside the agentAt the destinations it allows
Where commands executeA check on the path to the host, outside the agentAt commands sent through that path; anything the agent runs another way isn't checked

If the sandbox is the only limit, then once the agent can reach something outside it, only the target's own controls are left. At WorkOS, those had already failed.

For an offensive agent, a newly discovered host looks like the next target, not a boundary. A prompt can list the targets; it can't make the agent treat an unlisted one as off limits. CSA recommends that a person approve newly discovered assets before they become targets, and says: "Containment that matters has to be enforced by infrastructure the agent cannot change or reason its way past."

Check what your agent runner allows today

Default-deny egress outside the agent's control is the first of CSA's recommendations. Whether you have it depends on where your agents run. Defaults, from each tool's documentation as of November 2026:

Where the agent runsOutbound by defaultTo restrict itTo check it
Claude CodeThe sandbox "is off by default"; turned on, hosts outside your allowed domains, which "start empty," go to your permission modesandbox.enabled, then sandbox.network.allowedDomainsRun /sandbox
OpenAI Codex CLI"By default, the agent runs with network access turned off" (docs); danger-full-access removes that boundaryLeave network_access under [sandbox_workspace_write] unset or false~/.codex/config.toml
A Docker container on the default bridgeOpen: the bridge gives containers "external network access"--network none, or a network created with --internal; in a dev container, pass these through runArgsdocker network inspect bridge; runArgs in devcontainer.json
A Kubernetes pod"All outbound connections are allowed" unless a NetworkPolicy selects the pod for egressA default-deny egress policy, then allow the targets you own; your network plugin must enforce NetworkPolicykubectl describe networkpolicy in the agent's namespace, then from the agent's pod, connect to one allowed and one blocked destination

A sandbox with open egress is the setup our WorkOS hypothesis describes. Wherever you allow outbound traffic, log it: that log is how the operator, not the target, finds out first.

Checking the commands an agent runs on your own servers is a separate layer (what AI agent execution control is), and it wouldn't have seen this agent's requests to WorkOS.

Three questions for every AI agent you run

  1. Where is its scope enforced: in its prompt, its container, a network boundary it can't change, or where its commands execute?
  2. What happens when it reaches something outside that scope?
  3. Who finds out first: you, from its outbound log, or the host it reached? WorkOS found out five days after the first access, from a usage spike.

If only the sandbox limits what an agent can touch, whatever it reaches outside has only its own controls.

Marco Kwak
About the authorMarco KwakFormer Head of GTM

Marco Kwak led enterprise go-to-market and partnerships for Alpacon at AlpacaX in 2026. He previously held senior roles at H2O.ai and VMware, spanning AI cloud presales, global enterprise partnerships, and infrastructure software. He brings together engineering depth and commercial experience to help emerging infrastructure technologies move from technical validation to global adoption.