What is Docker Security Bench, and what do its WARN, INFO, NOTE and PASS labels mean?
A script that audits a Docker host and its containers against security best practices, labelling each check PASS, WARN, INFO or NOTE.
Docker ships with some secure defaults, but not enough to withstand a determined attacker. Docker Security Bench (docker-bench-security) is an auditor's toolkit: it runs through numbered categories of checks and reports where the host and containers fall short of best practice.
| Label | Meaning |
|---|---|
| PASS | The check was tested and met — good. |
| WARN | The check was tested and failed — action needed. |
| INFO | Could not be tested because a precondition was unmet (e.g. no container running, a file missing). |
| NOTE | Cannot be tested automatically, but should be reviewed by hand for a production system. |
It is run itself as a container that mounts the host's config read-only and shares the host's network, PID and user namespaces so it can inspect them. The lab runs it once on an unhardened system to find the WARN entries, then again after applying the chapter 4 defences to watch them turn green.
The underlying rulebook is the free CIS Docker Benchmark, which documents each audit and hardening point with its remediation.
Go deeper:
GitHub: docker/docker-bench-security — the open-source script that runs the checks.
CIS Docker Benchmark — the free rulebook of audit and hardening points it implements.