<!-- Copyright (c) 2026 defconxt. All rights reserved. -->
<!-- Licensed under AGPL-3.0 — see LICENSE file for details. -->
<!-- NERF is a trademark of defconxt. -->
---
name: performing-sandbox-escape
description: >-
  Escape application sandboxes by exploiting IPC mechanisms, shared resources, kernel interfaces, and sandbox policy weaknesses in containerized environments.
domain: cybersecurity
subdomain: binary-exploitation
tags:
  - sandbox-escape
  - container-breakout
  - ipc
  - privilege-escalation
version: "1.0"
author: defconxt
license: AGPL-3.0
metadata:
  mitre-attack: ["T1611"]
  frameworks: ["MITRE ATT&CK"]
  tools: ["gdb", "strace", "seccomp-tools"]
---

# Performing Sandbox Escape

## Overview

Escape application sandboxes by exploiting IPC mechanisms, shared resources, kernel interfaces, and sandbox policy weaknesses in containerized environments.

## Prerequisites

| Tool / Requirement | Details |
|---|---|
| `gdb` | Security tooling |
| `strace` | Security tooling |
| `seccomp-tools` | Security tooling |
| GDB, strace, seccomp-tools, sandboxed environment access | Environment requirement |

## Quick Reference

```bash
# Quick start commands
node scripts/agent.js --help
seccomp-tools dump ./sandboxed_app
```

## Workflow

### Step 1: Enumerate Sandbox Policy

```bash
seccomp-tools dump ./sandboxed_app
```

### Step 2: Identify Escape Vectors

```bash
node scripts/agent.js analyze --binary ./sandboxed_app --sandbox-type seccomp
```

### Step 3: Exploit IPC Channel

```bash
node scripts/agent.js exploit --binary ./sandboxed_app --vector ipc
```

## Detection

```yaml
title: Sandbox Escape Detection
id: 3a0235d0-a133-4663-b1fa-318c3463f81e
status: experimental
description: Detects suspicious activity related to performing sandbox escape techniques in binary exploitation context
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    CommandLine: "*performing*sandbox*"
  condition: selection
level: critical
tags:
  - attack.t1611
  - attack.execution
falsepositives:
  - Vulnerability scanner testing known exploit signatures
```


**Detection Opportunities**

| Indicator | Source | Detection Logic |
|---|---|---|
| Sandbox Escape Detection | windows/process_creation | Sigma rule (critical) |
| ATT&CK Coverage | MITRE ATT&CK | T1611 |

## Verification

- **Verify sandbox policy**: `node scripts/agent.js analyze --binary ./sandboxed_app --sandbox-type seccomp`
- **Confirm escape**: `node scripts/agent.js exploit --binary ./sandboxed_app --vector ipc`

## References

- MITRE ATT&CK: T1611
- Frameworks: MITRE ATT&CK
- Tools: gdb, strace, seccomp-tools
