ShopifyDan ScofieldProblem & solution
Cyber Chaos Monkey: Staying ahead of security threats with AI agents (2026) - Shopify
Summary
Shopify built the Cyber Chaos Monkey (CCM), an agentic vulnerability hunter that runs live against production infrastructure to find security issues before attackers do. The system uses frontier cyber models to refine ideas, identify leads in code or configuration, and attempt exploits in a sandboxed environment. CCM separates into Discovery, which generates and refines hypotheses, and Sandbox, where agents test exploits by making live requests and reading production logs. To keep testing safe, the system enforces two-person integrity: a judge agent monitors the executor in real time and can kill it if behavior violates the Rules of Engagement. Since deployment, CCM has executed tens of thousands of offensive engagements and identified dozens of impactful findings without causing an outage or incident.
Context
Shopify’s bug bounty program saw a nearly 300% increase in reports since 2024, driven by frontier models lowering the cost of vulnerability discovery. The company needed a way to review, validate, and act on this volume while staying ahead of attackers targeting production systems.
Approach / What changed
A graph-engineered agentic bug-bounty researcher that runs live against production infrastructure. It separates into Discovery (refines ideas, identifies leads) and Sandbox (exploits bugs via live requests, log reading, and iteration). A two-person integrity (TPI) system uses a judge agent to monitor an executor agent in real time; if the judge detects behavior incompatible with the Rules of Engagement, it kills the executor. The system runs as a Kubernetes job with containerization, least privilege, credential proxy, and egress controls.
Takeaways
CCM uses a two-person integrity (TPI) system where a judge agent monitors the executor in real time and can kill it if behavior violates the Rules of Engagement.
The system runs as a Kubernetes job with containerization, least privilege, credential proxy, and egress controls to prevent agents from leaking credentials or breaking out of the network.
Frontier models lower the cost of vulnerability discovery for everyone, but Shopify’s informational advantage about its own systems lets CCM find impactful issues first and raise the cost for external attackers.
FAQ
How does CCM prevent an agent from going rogue?
The system uses two-person integrity (TPI): a judge agent reads all events from the executor agent in real time. If the judge identifies risky behavior incompatible with the Rules of Engagement, it makes a tool call that instantly kills the offensive agent. If the judge times out, crashes, or fails to adjudicate, the run ends.
What technical controls contain the agent?
The offensive agent runs in a container with no escalated permissions. It receives ephemeral credentials (session cookie and CSRF token) from the orchestrator via a shared volume, which it can read but not modify. All outbound traffic goes through an egress proxy that allows only Shopify production domains, knowledge services, model providers, and select package managers.
How does CCM ensure the judge stays paired with the executor?
The orchestrator, executor, and judge all run as containers within the same Kubernetes pod. The orchestrator maintains a heartbeat with both sidecars; if either dies, the orchestrator exits and the pod's restart policy prevents it from restarting, so Kubernetes tears down all containers. This keeps communication pod-local and prevents network partitions from breaking TPI.
Source and freshness
- Source
- shopify.engineering
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.