walidshaari
Certified-Kubernetes-Security-Specialist
AGS Script

Curated resources help you prepare for the CNCF/Linux Foundation CKS 2021 "Kubernetes Certified Security Specialist" Certification exam. Please provide feedback or requests by raising issues, or making a pull request. All feedback for improvements are welcome. thank you.

Last updated Jul 6, 2026
2.1k
Stars
558
Forks
0
Issues
0
Stars/day
Attention Score
96
Language breakdown
No language data available.
β–Έ Files click to expand
README

License: CC BY-SA 4.0 PRs Welcome

Certified Kubernetes Security Specialist - CKS

Online curated resources that will help you prepare for taking the Kubernetes Certified Kubernetes Security Specialist CKS Certification exam.

  • Please raise an issue, or make a pull request for fixes, new additions, or updates.
Resources are primarly cross referenced back to the allowed CKS sites during the exam as per CNCF/Linux Foundation exam allowed search rules. Videos and other third party resources e.g. blogs will be provided as an optional complimentary material and any 3rd party material not allowed in the exam will be designated with :triangularflagon_post: in the curriculum sections below.

Ensure you have the right version of Kubernetes documentation selected (e.g. v1.26 as of January 2023) especially for API objects and annotations, however for third party tools, you might find that you can still find references for them in old releases and blogs e.g. Falco install.

  • Icons/emoji legend
- :clipboard: Expand to see more content - :confused: Verify, not best resource yet - :largebluecircle: Good overall refence, can be used in the exam - :triangularflagon_post: External third-party resource, can not be used during exam - :pencil: To-do, item that needs further checking(todo list for future research/commits)

Exam Brief

Offical exam objectives you review and understand in order to pass the test.

  • Duration : two (2) hours
  • Number of questions: 15-20 hands-on performance based tasks
  • Passing score: 67%
  • Certification validity: two (2) years
  • Prerequisite: valid CKA
  • Cost: $375 USD, One (1) year exam eligibility, with a free retake within the year.
Linux Foundation offer several discounts around the year e.g. CyberMonday, Kubecon attendees among other special holidays/events

URLs to prepare for the exam:

- Kubernetes Documentation: - https://kubernetes.io/docs and their subdomains - https://github.com/kubernetes and their subdomains - https://kubernetes.io/blog and their subdomains

This includes all available language translations of these pages (e.g. https://kubernetes.io/zh/docs) - Tools: - Trivy documentation - Falco documentation - App Armor documentation

Exam interface

According to official Linux Foundation documentation and as of June 2022, there was a change in the exam platform. It is just an exam platform, so the exam questions will not change, but there were a few things that seemed to concern you, so I will write them down:
  • A remote desktop configured with the tools and software needed to complete the tasks
  • Candidates can start the β€œTake Exam” Process 30 minutes prior to their scheduled date/time (currently 15mins on PSI ExamsLocal platform)
  • Self check-in: no need to wait for a proctor in order to upload your ID and scan your environment
  • The exam will now be taken using the PSI Secure Browser, which can be downloaded using the newest versions of Microsoft Edge, Safari, Chrome, or Firefox
  • Multiple monitors will no longer be permitted
  • Use of personal bookmarks will no longer be permitted (Personal browser bookmarks such as bookmarked links to YAML files will not be accessible within the PSI Secure Browser)
The new ExamUI includes improved features such as:
  • A timer that displays the actual time remaining (in minutes) and provides an alert with 30, 15, or 5 minute remaining
  • The content panel remains the same (presented on the Left Hand Side of the ExamUI)

CKS repo topics overview

- [X] Cluster Setup - 10% - [X] Cluster Hardening - 15% - [X] System Hardening - 15% - [X] Minimize Microservice Vulnerabilities - 20% - [X] Supply Chain Security - 20% - [X] Monitoring, Logging and Runtime Security - 20%

#### Extra helpful material

- [x] Slack - [x] Books - [x] Youtube Videos - [x] Webinars - [x] Containers and Kubernetes Security Training - [x] Extra Kubernetes security resources


Cluster Setup - 10%

:largebluecircle: Securing a Cluster - :triangularflagonpost: Kube-bench - Checks whether Kubernetes is deployed securely by running the checks documented ain the CIS Kubernetes Benchmark.
Using Kubernetes network policy to restrict pods access to cloud metadata

* This example assumes AWS cloud, and metadata IP address is 169.254.169.254 should be blocked while all other external addresses are not.

apiVersion: networking.k8s.io/v1
      kind: NetworkPolicy
      metadata:
        name: deny-only-cloud-metadata-access
      spec:
        podSelector: {}
        policyTypes:
        - Egress
        egress:
        - to:
          - ipBlock:
            cidr: 0.0.0.0/0
            except:
            - 169.254.169.254/32
:clipboard: Kubernetes binaries can be verified by their digest sha512 hash

- Checking the Kubernetes release page for the specific release - Checking the change log for the images and their digests

Cluster Hardening - 15%

- Control anonymous requests to Kube-apiserver * :triangularflagonpost: Handy site collects together articles, tools and the official documentation all in one place * :triangularflagonpost: Simplify Kubernetes Resource Access Control using RBAC Impersonation
  • Exercise caution in using service accounts e.g. disable defaults, minimize permissions on newly created ones
:clipboard: Opt out of automounting API credentials for a service account

#### Opt out at service account scope

apiVersion: v1    kind: ServiceAccount    metadata:      name: build-robot    automountServiceAccountToken: false
#### Opt out at pod scope
apiVersion: v1    kind: Pod    metadata:      name: cks-pod    spec:      serviceAccountName: default      automountServiceAccountToken: false

System Hardening - 15%

  • Minimize host OS footprint (reduce attack surface)
:clipboard: :confused: Reduce host attack surface

* seccomp which stands for secure computing was originally intended as a means of safely running untrusted compute-bound programs * AppArmor can be configured for any application to reduce its potential host attack surface and provide greater in-depth defense. * PSA enforces * Apply host updates * Install minimal required OS fingerprint * Identify and address open ports * Remove unnecessary packages * Protect access to data with permissions * Restirct allowed hostpaths

  • Minimize IAM roles
* :confused: Access authentication and authorization
  • Minimize external access to the network
:clipboard: :confused: if it means deny external traffic to outside the cluster?!!

* not tested, however, the thinking is that all pods can talk to all pods in all name spaces but not to the outside of the cluster!!!

apiVersion: networking.k8s.io/v1
   kind: NetworkPolicy
   metadata:
     name: deny-external-egress
   spec:
     podSelector: {}
     policyTypes:
     - Egress
     egress:
       to:
       - namespaceSelector: {}

  • Appropriately use kernel hardening tools such as AppArmor, seccomp
* AppArmor * Seccomp

Minimize Microservice Vulnerabilities - 20%

  • Setup appropriate OS-level security domains e.g. using PSA, OPA, security contexts
- Open Policy Agent - Security Contexts - [ ] :pencil: check if service mesh is part of the CKS exam

Supply Chain Security - 20%

  • Minimize base image footprint
:clipboard: Minimize base Image

* Use distroless, UBI minimal, Alpine, or relavent to your app nodejs, python but the minimal build. * Do not include uncessary software not required for container during runtime e.g build tools and utilities, troubleshooting and debug binaries. * :triangularflagonpost: LearnKube: 3 simple tricks for smaller Docker images * :triangularflagonpost: GKE 7 best practices for building containers

* Using ImagePolicyWebhook admission Controller * Aqua security Trivy * :triangularflagonpost: Anchore command line scans

Monitoring, Logging and Runtime Security - 20%

  • Perform behavioural analytics of syscall process and file activities at the host and container level to detect malicious activities
- Falco installation guide - :triangularflagonpost: Sysdig Falco 101 - :triangularflagonpost: Falco Helm Chart - :triangularflagonpost: Falco Kubernetes helmchart - :triangularflagonpost: Detect CVE-2020-8557 using Falco
  • Detect threats within a physical infrastructure, apps, networks, data, users and workloads
  • Detect all phases of attack regardless where it occurs and how it spreads
:clipboard: Attack Phases

- :triangularflagonpost: Kubernetes attack martix Microsoft blog - :triangularflagonpost: MITRE attack framwork using Falco - :triangularflagonpost: Lightboard video: Kubernetes attack matrix - 3 steps to mitigating the MITRE ATT&CK Techniques - :triangularflagonpost: CNCF Webinar: Mitigating Kubernetes attacks

  • Perform deep analytical investigation and identification of bad actors within the environment
- Sysdig documentation - Monitoring Kubernetes with sysdig - :triangularflagonpost: CNCF Webinar: Getting started with container runtime security using Falco

Extra helpful material

Slack

Twitch

Books

Youtube Videos

Containers and Kubernetes Security Training

- Hands-on Tutorial

Other CKS related repos

πŸ”— More in this category

Β© 2026 GitRepoTrend Β· walidshaari/Certified-Kubernetes-Security-Specialist Β· Updated daily from GitHub