sandbox-escape-techniques

Provides sandbox escape techniques for Python, Lua, seccomp, chroot, Docker, browser, and namespace isolation contexts.

120|8|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/Prohao42/aimy-skill --skill sandbox-escape-techniques-prohao42
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sandbox-escape-techniques
Source: https://github.com/Prohao42/aimy-skill/tree/main/ai-mian/hack-skills/skills/sandbox-escape-techniques
Command: npx skills add https://github.com/Prohao42/aimy-skill --skill sandbox-escape-techniques-prohao42

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides advanced techniques for escaping various types of sandboxes, including Python, Lua, seccomp, chroot, Docker, browser, and namespace isolation, to achieve unrestricted code execution or file access.

Core Features & Use Cases

  • Python Sandbox Escape: Full methodology for breaking out of Python sandboxes, including recovery of builtins, keyword bypass, AST bypass, and pickle escape.
  • Seccomp Bypass: Techniques for bypassing seccomp filters, including architecture confusion, io_uring bypass, ptrace-based bypass, and allowed syscall chaining.
  • Chroot Escape: Methods for escaping chroot jails, such as open fd to real root, double chroot, TIOCSTI ioctl, /proc access, and ptrace.
  • Browser Sandbox Escape: Overview of browser sandbox architecture and escape vectors, including Mojo IPC bugs, shared memory corruption, GPU process bugs, kernel exploits, and signal handling.
  • Namespace Escape: Techniques for escaping namespaces, including user namespace escalation, PID namespace escape, and mount namespace tricks.
  • RBash/Restricted Shell Escape: Methods for escaping restricted shells, such as using vi/vim, less/more, awk, find, python/perl/ruby, ssh, environment, cp, git, and encoding.

Quick Start

Load the sandbox-escape-techniques skill to access a comprehensive guide on escaping various sandboxes and achieving unrestricted code execution.

Frequently Asked Questions about sandbox-escape-techniques

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I escape a Python sandbox jail and recover builtins?

Python sandbox escape involves recovering builtins through object introspection, keyword bypass, AST manipulation, and pickle deserialization to achieve unrestricted code execution. These CTF pyjail techniques leverage class inheritance chains to access dangerous functions.

What are the best ways to bypass seccomp filters in Linux?

Seccomp bypass techniques include architecture confusion, io_uring bypass, ptrace-based bypass, and allowed syscall chaining. These methods circumvent restrictions by confusing the seccomp architecture or chaining permitted syscalls to execute blocked operations.

How do I break out of a chroot jail using file descriptors?

Chroot escape via file descriptors exploits open fd leaks to the real root directory. Additional methods include double chroot operations, TIOCSTI ioctl injection, /proc access manipulation, and ptrace techniques to regain unrestricted filesystem access.

Can I escape Docker and namespace isolation using user namespace escalation?

Namespace escape techniques include user namespace escalation, PID namespace escape, and mount namespace tricks to break Docker and container isolation. These methods exploit namespace misconfigurations to achieve unrestricted code execution outside the container boundary.

Does browser sandbox escape involve Mojo IPC bugs and shared memory corruption?

Browser sandbox escape vectors include Mojo IPC bugs, shared memory corruption, GPU process bugs, kernel exploits, and signal handling vulnerabilities. These techniques target the browser sandbox architecture to bypass isolation and achieve unrestricted code execution.

How do I escape a restricted shell (RBash) using utilities like vi or awk?

RBash escape methods leverage utilities like vi/vim, less/more, awk, find, python/perl/ruby, ssh, git, and encoding techniques to break restricted shell limitations. These tools allow command execution or environment manipulation to bypass RBash restrictions.