Skills for Real Engineers. Straight from my .agents directory.
offensive-container-escape
Agent skill fromSnailSploit/Claude-Red
Container escape and breakout techniques targeting Docker, containerd, and Podman runtimes. Covers privileged container breakout via host filesystem mount and nsenter, Docker socket abuse through /var/run/docker.sock, Linux capability exploitation including CAP_SYS_ADMIN, CAP_SYS_PTRACE, and CAP_NET_ADMIN, cgroup v1 notify_on_release escape, runc CVEs such as CVE-2019-5736 and CVE-2024-21626 Leaky Vessels, kernel exploits from within containers, and Dockerfile misconfigurations like --privileged and host namespace sharing. Includes enumeration with capsh, amicontained, deepce, CDK, and nsenter. Maps to MITRE ATT&CK T1611 Escape to Host. Use this skill when the engagement scope includes container breakout, Docker escape, container privilege escalation, host access from container, or when you land inside a containerized environment and need to reach the underlying host.
How to install offensive-container-escape
npx skills add SnailSploit/Claude-Red# or add only this skill to Claude Code: copy the folder
Skills/container/offensive-container-escape/
# into
~/.claude/skills/offensive-container-escape/ (all projects)
.claude/skills/offensive-container-escape/ (one project)
1# Container Escape and Breakout23You have a shell inside a container. Your objective is to break out to the underlying host operating system. Container isolation relies on Linux namespaces, cgroups, seccomp profiles, AppArmor/SELinux, and dropped capabilities. Every misconfiguration in these layers is an escape vector. This skill walks you through systematic enumeration, exploitation of common misconfigurations, abuse of exposed runtime sockets, capability-based escapes, cgroup breakouts, and known CVEs against container runtimes.45## Quick Workflow671. Confirm you are inside a container (check for `.dockerenv`, cgroup entries, PID 1 process).82. Enumerate capabilities, mounts, namespaces, and sockets with automated tools.93. Identify the escape vector: privileged mode, socket exposure, dangerous capabilities, cgroup misconfiguration, or vulnerable runtime.104. Execute the breakout technique matching the vector.115. Validate host access by reading `/etc/hostname`, checking PID namespace, or writing to host filesystem.126. Pivot from host access to lateral movement across the cluster or infrastructure.1314---1516## Phase 1: Container Detection and Enumeration1718Before attempting escape, confirm you are containerized and map the attack surface.1920### Detecting Container Environment2122```bash23# Check for Docker marker file24ls -la /.dockerenv2526# Check cgroup entries for container identifiers27cat /proc/1/cgroup | grep -E 'docker|containerd|kubepods|podman'28…
Excerpt shown under the repository's MIT license.
More skills in Claude-Red
Similar skill repositories
An agentic skills framework & software development methodology that works.
Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Production-grade engineering skills for AI coding agents.
Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.
2,955+ reusable AI agent skills for Claude Code, Codex, Cursor and Gemini CLI. AAS Core adds local catalog discovery, agent-owned selection and plan preview. CLI, MCP and plugins.
