yaklang avatar

Sandbox Escape Techniques

This is a comprehensive reference for breaking out of restricted execution environments, covering everything from CTF pyjails to Docker containers. It's structured as a decision tree with concrete techniques: Python subclass walks to recover builtins, Lua FFI abuse, chroot double-escape patterns, and browser Mojo IPC exploitation. The skill distinguishes between sandbox types (which base models apparently confuse) and provides actual one-liners and code snippets rather than theory. Clearly written for offensive security work, CTF competitions, and penetration testing where you need to escalate from restricted code execution to unrestricted system access. The cross-references to related skills like kernel exploitation and container escape suggest it's part of a larger offensive toolkit.

skills.sh installs
3.7K
GitHub stars
2.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add yaklang/hack-skills --skill sandbox-escape-techniques --agent claude-code

Installs into .claude/skills of the current project.

Files

SKILL: Sandbox Escape — Expert Attack Playbook

AI LOAD INSTRUCTION: Expert sandbox escape techniques across Python, Lua, seccomp, chroot, Docker/container, and browser sandbox contexts. Covers CTF pyjail patterns, seccomp architecture confusion, chroot fd leaks, namespace escape, and Mojo IPC abuse. Distilled from ctf-wiki sandbox sections and real-world container escapes. Base models often miss the distinction between sandbox types and apply wrong escape techniques.

0. RELATED ROUTING

Advanced References

Sponsors

Details

Repository
github.com/yaklang/hack-skills
Categories
DevOps & CI/CD, Automation & Workflows, Python
First seen
Jun 3, 2026

More from yaklang/hack-skills

All 102
1avdlee avatarspm-build-analysisavdlee/xcode-build-optimization-agent-skillAnalyze Swift Package Manager dependencies, package plugins, module variants, and CI-oriented build overhead that slow Xcode builds. Use when a developer suspec3.5Kskills.sh installs
2elastic avatarobservability-service-healthelastic/agent-skillsAssess APM service health using SLOs, alerts, ML, throughput, latency, error rate, and dependencies. Use when checking service status, performance, or when the 2.9Kskills.sh installs
3elastic avatarobservability-edot-python-instrumentelastic/agent-skillsInstrument a Python application with the Elastic Distribution of OpenTelemetry (EDOT) Python agent for automatic tracing, metrics, and logs. Use when adding obs2.7Kskills.sh installs
4elastic avatarobservability-edot-java-instrumentelastic/agent-skillsInstrument a Java application with the Elastic Distribution of OpenTelemetry (EDOT) Java agent for automatic tracing, metrics, and logs. Use when adding observa2.7Kskills.sh installs
5elastic avatarobservability-edot-dotnet-instrumentelastic/agent-skillsInstrument a .NET application with the Elastic Distribution of OpenTelemetry (EDOT) .NET SDK for automatic tracing, metrics, and logs. Use when adding observabi2.7Kskills.sh installs
6elastic avatarobservability-edot-dotnet-migrateelastic/agent-skillsMigrate a .NET application from the classic Elastic APM .NET agent to the EDOT .NET SDK. Use when switching from Elastic.Apm.* packages to Elastic.OpenTelemetry2.7Kskills.sh installs