Skip to main content

Check Group Membership

If user is in docker or lxd group → root escalation possible.

Docker Privesc

Mount Host Filesystem

Instant root shell with full host filesystem.

Alternative Images

If No Internet (Use Local Image)

Read Sensitive Files

Add SSH Key to Root

Create SUID bash

On host:

Docker Socket Abuse

If /var/run/docker.sock is accessible:

Via curl


Docker Escape (From Inside Container)

Check if Inside Container

Privileged Container Escape

Mount host disk:

LXD Privesc

Step 1 — Build Alpine Image (Attacker)

Step 2 — Transfer to Target

Step 3 — Import and Create Container

Step 4 — Access Host Filesystem

Create SUID bash

Exit container, on host:

Quick Reference