HackBlue

Labs / Container audit

Not privileged, but close enough

None of the containers on mon-01 is privileged, but one combines extra capabilities, the host PID namespace, and no seccomp profile. Read docker inspect with jq and explain why that matters.

  • Terminal mission
  • Intermediate
  • 4 objectives
  • 0 of 4 solved

What you’re looking at

None of the containers on mon-01 is privileged, but one combines extra capabilities, the host PID namespace, and no seccomp profile. Read docker inspect with jq and explain why that matters.

Your goal: Explain why a container that is not privileged is still nearly as powerful as one that is.

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 you will meet

PID
process ID, the number Linux or Windows gives each running program
JSON
JavaScript Object Notation, a text format of fields and values

Start with step 1 in the walkthrough. Every step says what to do and what you should see. The whole thing takes about 2 min to talk through.

Briefing

A compliance check reported "no privileged containers" on mon-01 and passed. You have been asked to look again.

Privileged is one flag. CapAdd, PidMode, and SecurityOpt each give back part of what a container normally cannot do. SYS_PTRACE with the host PID namespace lets a container read and attach to processes on the host.

analyst@mon-01

mon-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.

The whole walkthrough

Every step in order, written to be read aloud: 292 words, about 2 min. It gives away every answer, so try the steps first.