AppArmor: load a profile and confine a Pod
Scenario cks-sys-001 · about 8 minutes · 8 points · 5 grader checks
Load an AppArmor profile on a worker node in enforce mode and run a Pod confined by it through the securityContext field.
- apparmor
- kernel-hardening
- securitycontext
- node
- system-hardening
What you will practise
- Load and inspect AppArmor profiles with apparmor_parser and aa-status
- Reference a Localhost AppArmor profile from securityContext.appArmorProfile
- Schedule a Pod on the node that has the profile
Start this lab
With the CLI installed and signed in, this command provisions a two nodes cluster on your Mac, applies the scenario setup and prints the task below.
goldenkube start cks-sys-001Task
The task text exactly as the CLI shows it. Solve it on the cluster, then run goldenkube submit.
Requirements and details
- Certification
- CKS · Certified Kubernetes Security Specialist
- Domain
- System Hardening
- Difficulty
- Medium
- Cluster topology
- Two nodes
- Cluster features
- None beyond the base cluster
- Recommended time
- 8 minutes
- Points
- 8
- Grader checks
- 5
- Kubernetes version
- 1.35
- Minimum CLI version
- 0.1.0
- Scenario version
- 1
- Published
Grading runs locally: 5 state checks read your cluster when you submit; the scenario passes when every check passes. Hints, the reference solution and the check definitions are available only inside the CLI, not on this page.
More System Hardening labs
Node attack surface: rogue service and sudo rights
Find and disable a service listening on a worker node and remove a local user's sudo membership without breaking the node.
Two nodes · ~7 min · 8 points
- systemd
- attack-surface
- least-privilege
- linux-users
- node
goldenkube start cks-sys-002
Independent community project, not affiliated with or endorsed by CNCF or The Linux Foundation. Lab results are practice feedback, not an exam score.