Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

container-escape-techniques

Skill by Zyrexnn

container-escape-techniques is a playbook for escaping from a container to its host. It is meant for assistants working inside Docker, LXC or Kubernetes pods, and covers privileged mode, capabilities, the Docker socket, cgroups, namespaces and runtime flaws.

  • Score 86
  • 1.1k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install container-escape-techniques

Built from the published package, never by AI.

git clone --depth 1 https://github.com/Zyrexnn/Cybermes /tmp/Cybermes && mkdir -p ~/.claude/skills && cp -r /tmp/Cybermes/skills/container-escape-techniques ~/.claude/skills/container-escape-techniques

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install container-escape-techniques in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

container-escape-techniques is an agent skill defined in a SKILL.md file. It works as a playbook for moving from inside a container to the host. It is triggered when an assistant is operating inside a Docker container, LXC or Kubernetes pod. The source groups its content into container detection, privileged container escape, capability abuse, Docker socket abuse, cgroup release_agent, namespace tricks, runtime CVEs and Kubernetes pod escape.

The file also routes to related skills for Linux privilege escalation, Kubernetes pentesting and seccomp or AppArmor bypass. It names tools such as deepce, CDK, amicontained, PEIRATES and BOtB. The source describes it as an expert attack playbook for security work on container breakout.

Written from the project's SKILL.md and checked against it.

What it can do

  • Container detectionLists checks to tell whether the assistant is inside a container, with tools such as amicontained, deepce and CDK.
  • Privileged container escapeCovers mounting the host disk and using nsenter when a container runs in privileged mode.
  • Capability-based escapeCovers CAP_SYS_ADMIN, CAP_SYS_PTRACE, CAP_NET_ADMIN and CAP_DAC_READ_SEARCH.
  • Docker socket escapeCovers abuse of a mounted /var/run/docker.sock to create a privileged container.
  • Cgroup and namespace techniquesCovers cgroup v1 release_agent, cgroup v2 and eBPF notes, and user or PID namespace tricks.
  • Runtime and Kubernetes escapeLists runc and containerd CVEs, a kernel cgroup CVE, and risky Kubernetes pod spec settings.

What you need

  • Access to a Docker, LXC or Kubernetes container environment

Try asking

  • Check whether this container runs in privileged mode and list its capabilities.
  • Which container escape paths apply to a container that has CAP_SYS_ADMIN?
  • Is the Docker socket mounted in this pod, and what does that expose?

Good to know

  • Several techniques depend on specific capabilities, cgroup versions or runtime versions.
  • Full step-by-step escape chains are in a separate DOCKER_ESCAPE_CHAINS.md file.
  • Some runtime CVE entries are brief and give no full steps.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/container-escape-techniques/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • DOCKER_ESCAPE_CHAINS.md9 KB
  • SKILL.md9 KB

Alternatives to container-escape-techniques

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

container-escape-techniques: common questions

What does container-escape-techniques cover?

It covers escape from Docker, LXC and Kubernetes containers through privileged mode, capabilities, the Docker socket, cgroups, namespaces and runtime vulnerabilities.

Which tools does it mention?

The source names deepce, CDK, amicontained, PEIRATES and BOtB for detection and exploitation work.

Does it link to other skills?

Yes. It routes to linux-privilege-escalation, kubernetes-pentesting and linux-security-bypass for related topics.

How do I install container-escape-techniques?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is container-escape-techniques free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is container-escape-techniques safe to use?

It scores 86 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to container-escape-techniques?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

container-escape-techniques Install

Add to stack

Loading.