Free overview · hard · Lesson 8 of 8

Final project: hardening a new service

A new service was rolled out with every hole of the track at once: an audit by layer, the fixes, and a check with an attack that tries every path.

The final lesson of the hardening track. The team rolled out the new blog service the way it did before the track: a privileged container, a broad role, no Pod Security labels and no network policies, and the cluster's rollout rules and signature check don't apply to the new namespace. Your task: find and close everything yourself, without step-by-step instructions.

Threat model

All the attackers of the track at once: command execution through a hole in the service code, a stolen ServiceAccount token, a leaked CI token and write access to the registry.

Attack paths

  1. Escape from the container to the node.
  2. A service token with the right to create Pods.
  3. A privileged Pod in a namespace without Pod Security.
  4. Data sent out from a Pod without network policies.
  5. An image from a foreign registry and an unsigned image from your own.

Checklist

Practice

One project lab on the shared cluster of the track. The attack tries every path of the track against blog and lists which ones are open. You're done when all of them are closed and blog opens for customers.

Done reading?

Mark the lesson as read to move your track progress forward.

Practice

Fix a local lab. The agent checks your work and gives hints if you get stuck.

Full access to all labs

$134 $67.00 for one year −50%

One payment, no auto-renewal · Terms

Buy for $67.00