Runtime Security and Least Privilege

LEVEL 0

The Problem

Your image is secure. No vulnerabilities, trusted source, signed. Great!

But then you run it:

docker run --privileged -v /:/host myapp

You just gave the container:

  • Full access to the host filesystem
  • All Linux capabilities
  • Ability to load kernel modules
  • Essentially root on the host

A secure image can be run insecurely.

Runtime security is about configuring how containers run.