Container auditHackBlue

Which container can take over the host

Three containers run on a build server. Use docker inspect and jq to find the one that is privileged and holds the Docker socket, which together equal root on the host.

  • Terminal mission
  • Intermediate
  • 3 questions
  • 0 of 3 solved

Your goal

Your goalFind the container that could take over the whole build server.

A pentest report says "a CI job could escape to the host". You have read-only access to the Docker CLI on build-01.

A container started with --privileged sees host devices and has every capability. A container that mounts /var/run/docker.sock can ask the Docker daemon to start new containers with any setting, including the host filesystem. Either one is enough to become root on the host.

What’s on screen
Briefing
the story: what happened and what evidence you were handed.
Terminal
the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
Walkthrough
the numbered path. Each step says what to type and what you should see. Hints open one at a time.
Answer boxes
under each question step. Type what you found and press Check.
Words to know
CI
continuous integration, the server that builds and tests code
CLI
command-line interface

analyst@build-01

build-01 · Container audit

Type help for the command list and objectives for your tasks. Everything runs in this browser.

Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.