🐳Docker Container Escaping Labs
🎯 Objective
🧰 Prerequisites
sudo apt update
sudo apt install procps util-linux -y🔹 Lab 1: Host Mount Escape via -v /:/host
-v /:/hostStep 1: Run a container with full host access
docker run -it --rm --privileged -v /:/host ubuntu bashStep 2: Simulate host access
🔹 Lab 2: Escape via --privileged and /proc
--privileged and /procStep 1: Start a privileged container
Step 2: Enter host namespaces
🔹 Lab 3: Escape via Host Devices
Step 1: Run container with device access
Step 2: Write to kernel logs
✅ Wrap-Up
Last updated