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
- Escape from the container to the node.
- A service token with the right to create Pods.
- A privileged Pod in a namespace without Pod Security.
- Data sent out from a Pod without network policies.
- An image from a foreign registry and an unsigned image from your own.
Checklist
- Pod: no
privilegedandhostPath, not root,restricted. - RBAC: the application token can do only what the code calls.
- Namespace:
enforce: restrictedwith a pinned version. - Network: default deny, DNS, ingress only from outside to the needed port.
- Admission: the rollout rules and the signature check apply to the new namespace, the service image is signed.
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.
Lesson marked as done.
Practice
Fix a local lab. The agent checks your work and gives hints if you get stuck.
Full access to all labs
One payment, no auto-renewal · Terms
Progress saved in this browser
Clear your history or open this on your phone, and the marks will be gone. Leave your email and they'll move to your account. No password needed.
Done. moved to your account. You can see your progress on any device. My progress