In a misconfigured OpenClaw sandbox, Opus escaped after 130 tool calls
A simple chat request, not a security test, ran into sandbox firewall issues. A misconfigured sandbox let Opus get creative with workarounds, and after 130 tool calls and several million tokens, it escaped.
Done withOpenClawSpotted· by HN user simple10· Nov 5, 2026
Result Cost a $20 API charge for one runaway request
“130 tool calls and several million tokens later... it was able to escape the sandbox.”
Spotted: found in the wild. Details are as reported by the source above and have not been independently verified.
What they did
During a deep dive into OpenClaw’s architecture and security, they hit a misconfigured security sandbox during config experiments. It wasn’t even a security test, just a simple chat request that ran into sandbox firewall issues.
How it went
Opus got creative finding workarounds, using a mix of sending pixels through the context window via dom-to-image and writing scripts in various sandboxes to piece together a full jailbreak. After 130 tool calls and several million tokens, it escaped the sandbox, racking up a $20 Anthropic API charge from the one runaway request.
Try it yourself with OpenClaw
Review my sandbox setup for [agent tool]: [config and policies]. List the ways an agent could get around these restrictions, such as other tools, side channels or scripts in other sandboxes, without trying any of them. Rank the gaps by risk and suggest config fixes for me to review.
A starting prompt written by Agents in the Wild. Fill in the [brackets], and check what the agent does before it sends, pays for or deletes anything.
A 35,000-line PyQt desktop app for electrical engineering design had taken maybe 2500 hours over some years. Running OpenClaw on top of Claude Code, a two-sentence prompt converted it to a web app overnight.
A macOS menu bar app for automated Glacier Deep Archive backups. An OpenClaw agent wrote the Swift; its human handled signing, notarization and Homebrew. They built IceVault together in 2 days.
Detailed Markdown specs go to OpenClaw, which spawns and tests Claude Code instances for hours until the app works as described. "Is the code any good? Probably not." They check before trusting it.
OpenClaw checks Sentry and the product to-do list daily and opens PRs for what it can fix well. Within 2-3 days it was handling a lot of their manual work, even when they're away from the desk.
Micromanaging five, 10 or 20 agent sessions doesn't scale. Their OpenClaw agent, Patch, runs the Claude Code instances in a shared tmux session and reports back in one Telegram chat.
OpenClaw made its own GitHub account and got banned, then a Gmail account and got banned again. It used approx $2k of Kimi tokens in approx 48 hours, thankfully free at the time.