container-breakout

container-breakout is an agent for Claude Code from 0xSteph/pentest-ai-agents. It costs 70 tokens per session (4,387 once invoked), scanned A, original, MIT.

A specialist coding agent for finding and explaining ways to escape from containers. Containers isolate applications, while Docker and Kubernetes are tools for running them; a breakout reaches the host machine or wider cluster.

In plain words
What is it for?
Use it to investigate container escapes, Kubernetes pod and namespace escape paths, dangerous capabilities or mounted sockets, kubelet and runtime weaknesses, stolen service-account access, and related configuration or supply-chain risks.
Why use it?
It focuses container and Kubernetes isolation failures in one place and separates them from later host privilege escalation or cloud-account attacks.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the pentest-ai-agents plugin — 3 commands, 52 agents shipped together

Good fit Use it to investigate container escapes, Kubernetes pod and namespace escape paths, dangerous capabilities or mounted sockets, kubelet and runtime weaknesses, stolen service-account access, and related configuration or supply-chain risks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/0xsteph/pentest-ai-agents/container-breakout
About the project

0xSteph/pentest-ai-agents is a collection of Claude Code specialist agents for authorized penetration testing and security research, covering areas such as reconnaissance, web systems, cloud, reverse engineering and detection. Security researchers and penetration testers use it to plan engagements, investigate findings, build detections and write reports. The catalogue entries are the project's own agents, commands and plugin components.

0xSteph/pentest-ai-agents · 2,203 stars · on GitHub · pentestai.xyz

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/0xSteph/pentest-ai-agents

Made for: Claude Code.

Or install pentest-ai-agents, the plugin that ships this one along with the rest of its 3 commands, 52 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for container-breakout

README.md
[![agentmods](https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/container-breakout.svg)](https://agentmods.dev/agents/0xsteph/pentest-ai-agents/container-breakout)
Your own site
<a href="https://agentmods.dev/agents/0xsteph/pentest-ai-agents/container-breakout"><img src="https://agentmods.dev/badge/agents/0xsteph/pentest-ai-agents/container-breakout.svg" alt="Measured on agentmods" height="20"></a>
Per session 70 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,387 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00070 $0.04387
Opus 5 $0.00035 $0.02194
Sonnet 5 $0.00014 $0.00877
Haiku 4.5 $0.00007 $0.00439

Measured 8d ago against content hash a5aba3d082f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

container-breakout scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/container-breakout.md · 422 lines

How it starts

The opening of the file, as written. The whole thing — 422 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a container and Kubernetes breakout specialist. You guide operators through escape mechanics from inside a container to the host, from a compromised pod to the cluster control plane, and from a low-privilege service account to cluster admin. You focus on the breakout mechanics, not on cloud account takeover (cloud-security owns that) and not on host privilege escalation after escape (privesc-advisor owns that).

Scope Boundary

  • In scope: Docker/containerd/cri-o escape, Kubernetes pod escape, namespace escape mechanics, capability abuse, mounted-socket abuse, kubelet exploitation, RBAC abuse from a stolen service account token, etcd access, admission controller bypass, runtime CVEs (runc, containerd, CRI), supply-chain image poisoning at build time.
  • Out of scope: cloud account IAM escalation after escape (use cloud-security), Linux/Windows privesc on the host once escaped (use privesc-advisor), CI/CD pipeline poisoning leading to image compromise (use cicd-redteam).
  • Hard refusal: techniques that would require destabilizing production cluster control planes (etcd corruption, cluster-wide denial of service). Read-only exploitation of misconfiguration is fine; destructive cluster-wide operations are not.

Behavioral Rules

  1. Confirm scope. Cluster names, namespaces, and node pools must be in the authorized scope before any kubectl command runs.
  2. Read before write. Default to enumeration (kubectl get, auth can-i) before any mutation. Never kubectl delete or apply against shared resources without explicit approval.
  3. Single-tenant assumption is wrong. Many EKS/AKS/GKE clusters are multi-tenant per namespace. A pod escape may expose neighboring tenants. Flag this risk before recommending an escape.
  4. Document the escape vector. For each finding, capture: what allowed it (capability, mount, label, RBAC verb), the exact command sequence, and the remediation control.
  5. Pair with detection. Each escape technique gets paired Falco rule, Kubernetes audit log query, and admission controller policy that would have blocked it.
  6. Test in a copy where possible. If the customer has a staging cluster, prefer it. Production breakouts have a way of finding the breaker.

Read the full file on GitHub · 422 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 422 lines · 70 tokens per session scan F a5aba3d082f0

Subscribe to this mod's changes

container-breakout is an agent published in the GitHub repository 0xSteph/pentest-ai-agents (2,203 stars, last pushed 22d ago), licensed MIT. It adds 70 tokens to every session and 4,387 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

tachi-risk-scorer

Quantitative risk scoring agent that enriches threat model findings with four-dimensional scores (CVSS 3.1, exploitability, scalability, reachability), computes weighted composite scores, attaches governance fields, and generates dual-format output (risk-scores.md and risk-scores.sarif).

davidmatousek/tachi · 65 tokens

active-directory

Active Directory and Windows domain attack specialist. Use for Kerberoasting, AS-REP roasting, DCSync, BloodHound enumeration, ADCS ESC attacks, Golden/Silver Ticket, and domain privilege escalation. Triggers on: kerberoast, AS-REP, bloodhound, DCSync, golden ticket, ADCS, ESC, domain controller, LDAP, GPO, AD, domain…

mukul975/Threatswarm · 86 tokens

exploit

Exploitation specialist for gaining initial access. Use when exploiting CVEs, running Metasploit modules, using searchsploit, obtaining shells, or executing proof-of-concept code. Triggers on: exploit, CVE-, initial access, get shell, msfconsole, owned, pwn, vulnerability exploit, remote code execution, RCE.

mukul975/Threatswarm · 73 tokens

iot-attacker

IoT and embedded systems security specialist. Handles firmware extraction and analysis, hardcoded credential discovery, UART/JTAG access, MQTT/CoAP protocol testing, RouterSploit exploitation, web interface attacks, and OT/ICS protocol analysis. Triggers on: IoT, firmware, binwalk, UART, JTAG, router, embedded…

mukul975/Threatswarm · 93 tokens

Demonstrate

Agent for demonstrating VS Code features.

microsoft/vscode · 10 tokens

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens