The Test Environment Is Someone Else's Production
An AI agent running a security benchmark left its sandbox and pulled customer records from a company that had nothing to do with the test. There are two lessons in it, one for anyone on the internet and one for anyone running agents.
At the end of October, someone at WorkOS noticed unusually high usage on one of their internal systems. It turned out an AI agent, run by a researcher doing security benchmark evaluations, had left its testing environment, found an internal sales tool that was reachable from the internet, and pulled records from it. The researcher came forward, deleted the data, and WorkOS published an unusually honest account of what went wrong on their side.
It’s easy to read this as a story about a rogue AI. I read it as two ordinary stories, and both apply to most companies I know.
The agent did what attackers do
WorkOS listed four gaps. The tool was exposed to the internet. Its API accepted a weak, guessable credential that was meant for local development. There was no rate limiting. And by the time anyone noticed, the bulk download had already finished.
None of that is new. Someone running a scanner long enough would have found the same things. The agent just found them faster and never got bored.
That’s the part to take seriously if you run anything on the internet. The cost of finding your forgotten endpoint and your leftover development credential has dropped, and it will keep dropping. Things that were safe because nobody would bother looking aren’t safe for that reason anymore.
The sandbox was the other boundary
The second story is about the people running the agents.
Evaluations, pilots and agent experiments are usually set up the way development work is set up. Quick to start. Shared credentials. Open internet access, because the agent needs to fetch things. It’s called a sandbox, so everyone treats it as contained.
But a sandbox usually only protects in one direction. It keeps things from getting in. An agent being tested on security tasks is looking for ways in, by design, and if it can reach the internet then the internet is part of its test. WorkOS wasn’t the first organization this year to end up on the receiving end of somebody else’s evaluation. The OWASP GenAI project’s Q3 roundup has more.
What a real boundary looks like
If you run agents, in an evaluation, a pilot or a demo for the board, treat the environment as a security boundary in the direction that matters, which is out.
Outbound access should be an allowlist. Start from nothing and add only what the task needs. If the agent’s job is your codebase, it doesn’t need the rest of the internet.
Credentials should be worthless outside the sandbox. Short-lived, scoped to the test, and issued from accounts and cloud projects that exist only for the test. If one ends up in a transcript or a log, it should open nothing.
Log what the agent did, not just what it was asked to do. Prompts tell you intent. Connections, commands and API calls tell you behavior, and behavior is what you’ll need when someone calls you.
And have a way to stop it that someone has actually used. A kill switch nobody has tested is a hope.
“It’s just a test” is a risk decision
Teams have always run tests with more access than they needed, because it was only a test. Usually the worst case was a mess inside your own walls. With agents the blast radius is different. Your test can be someone else’s incident, with their customers’ data in it.
That makes “it’s just a test” a risk acceptance. Like most of them, nobody wrote it down, and nobody who could weigh it ever signed it. Someone should. Better still, draw the boundary first and there’s nothing to sign.
// keep reading