The AI Agent That Escaped Its Sandbox and Breached WorkOS

By Andrew Owens |

Between October 25 and October 30, an AI agent pulled customer data out of an internal sales tool at WorkOS. Nobody at WorkOS sent it. It belonged to a security researcher who was running benchmarks on an autonomous pen testing framework, and it left its test environment.

The strange part makes the headlines. The useful part is the list of ordinary weaknesses that let it work. I'll cover both, and stick to what WorkOS itself has published.

What happened

WorkOS's security bulletin gives this timeline:

  • October 25: first confirmed unauthorized access to an internal tool's API.
  • October 30: records retrieved in bulk. WorkOS removed public access to the tool.
  • November 2: WorkOS published its first post and began notifying customers.
  • November 3 to 5: a researcher came forward, and WorkOS and an independent forensics firm checked the claim against WorkOS logs.

WorkOS now says the activity came from an AI security agent that “escaped a researcher's sandbox.” The researcher was running benchmark evaluations of ARTEX, an autonomous penetration testing framework, and WorkOS says the agent's contact with its systems was unintentional. The researcher told WorkOS they deleted everything the agent collected and shared it with no one. BleepingComputer has a good write-up, including the earlier assumption that an attacker used ARTEX on purpose.

What WorkOS says was touched: contact details and account histories in its CRM, summaries and excerpts of sales calls, support conversations and customer Slack chats, and some product usage metadata. A limited number of support messages included end-user email addresses. WorkOS says an independent forensic firm confirmed the incident stayed within its sales and customer support systems. It hasn't said how many records or customers were affected.

What nobody has explained is how the agent got out. Neither WorkOS nor the researcher has published that. I won't guess.

The weaknesses WorkOS named

The tool ran on a legacy internal platform that hadn't been migrated to the company's newer one, so it lacked platform-level safeguards. On top of that, WorkOS lists four gaps:

  1. It was exposed to the internet. WorkOS says “overly permissive access controls exposed its API endpoints publicly.”
  2. A weak credential worked. A development credential had reached production. In WorkOS's words, “because the credential was predictable, the agent was able to authenticate after discovering the endpoint.”
  3. No rate limiting. The API had no throttling, so bulk retrieval was quick.
  4. Slow detection. “Our monitoring did not detect the activity soon enough.” An employee noticed unusual usage on a connected system after the bulk pull had finished.

None of that is new. It's an internal tool that somebody forgot was reachable, a password nobody should have shipped, and nothing watching. A human attacker with a port scanner could have found the same thing. The agent just found it without anyone aiming it.

What it means for a small company

Two things stand out to me.

First, intent doesn't matter to your data. The Cloud Security Alliance wrote that an agent with no malicious operator still caused a customer data incident. If your internal tool answers on the open internet, whether a curious tester, a criminal or a runaway benchmark finds it is not something you control.

Second, your internal tools are probably your weak spot. Production apps tend to get attention. The admin panel, the CRM add-on, the dashboard a contractor built three years ago tend not to. Those are the ones that end up on a public IP with a default or guessable login. We covered a similar pattern in your automation stack is your attack surface.

What to do this week

  1. List every internal tool and check where it's reachable from. Admin panels, dashboards, internal APIs, staging copies. From a network outside your office, try to open each one. If it loads a login page, it's public.
  2. Put internal tools behind a VPN or an identity-aware proxy. WorkOS ended up blocking internet access to all of its internally developed tools at the network edge. Do that before something forces you to.
  3. Hunt for dev credentials in production. Search configs and environment variables for things like test, admin, changeme and a service name used as the password. Replace anything guessable, and add a check so weak or development-only secrets can't deploy. WorkOS says that control is in progress on its side.
  4. Add rate limits to anything that returns records. A real user doesn't pull thousands of customer rows a minute. Cap it, and alert when something tries.
  5. Alert on volume. This was caught by a person noticing unusual usage, after the fact. Set an alert on request counts or data export size for your CRM and support tools.
  6. If you run your own AI agents, contain them at the network. The CSA's advice is that instructions in a prompt aren't enforcement. Use default-deny egress with an allowlist the agent can't change, plus a kill switch you can hit by hand.

Where an external test fits

Most of the first four items are things an outside look can catch: an internal API answering on a public address, a login that accepts a guessable credential, a missing rate limit. That's what an external pen test sees. See what a $495 pen test covers for the specifics. It won't tell you whether your own AI agents stay in scope, and it won't see monitoring gaps inside your network. For those, you need the checks above.

Get Fix This Week by email

One security issue a week, explained plainly, with the fix. No spam, unsubscribe anytime.

We email you a link to confirm first. Details in our privacy policy.

Ready to fortify your defenses against cyber threats?

Start Your Penetration Test Now