CKS

CKS (Certified Kubernetes Security Specialist) #

CKS Courses #

How to Pass CKS (Certified Kubernetes Security Specialist) Exam

Kubernetes认证安全专家(CKS)课程简介及考试介绍

LFOSSA源来如此公开课 | 构筑云原生安全防线:CKS认证实战指南

CKS Study Guide 2024 - PASS your Certified Kubernetes Security Specialist Exam

Github

Kubernetes CKS Full Course Theory + Practice + Browser Scenarios, Test

CKS教程 2024

CKS Exam 2024: Major Updates & What You Need to Know

Youtube

kodekloudhub

2024真题 #

CKS-2024 12月

CKS-2024 10月题库

CKS-2024 10月

CKS-2024 04月题库

CKS真题讲解 #

CKS 备考

CKS 16道试题专家详解

CKS Simulator #

Killer Shell CKS

CKS-2

Mocker

CKS Goal #

Kubernetes

CNCF

English

Chinese

CNCF Project Desc

Github

https://devopscube.com/cks-exam-guide-tips/

Exam Objects #


🌈 Cluster Setup - 15% #

Securing a Cluster

  1. Use Network security policies to restrict cluster level access

  2. Use CIS benchmark to review the security configuration of Kubernetes components (etcd, kubelet, kubedns, kubeapi)

    • Kube-bench - Checks whether Kubernetes is deployed securely by running the checks documented ain the CIS Kubernetes Benchmark.
  3. Properly set up Ingress objects with security control

  4. Protect node metadata and endpoints

    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
    
  5. Verify platform binaries before deploying

    Kubernetes binaries can be verified by their digest **sha512 hash**

    ** Minimize use of, and access to, GUI elements **

🌈 Cluster Hardening - 15% #

  1. Restrict access to Kubernetes API
  1. Use Role-Based Access Controls to minimize exposure

  2. Exercise caution in using service accounts e.g. disable defaults, minimize permissions on newly created ones

    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
    
  3. Update Kubernetes frequently

🌈 System Hardening - 10% #

  1. Minimize host OS footprint (reduce attack surface)

    Reduce host attack surface
  2. Using least-privilege identity and access management

  3. Minimize external access to the network

    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: {}
    
  4. Appropriately use kernel hardening tools such as AppArmor, seccomp

🌈 Minimize Microservice Vulnerabilities - 20% #

  1. Use appropriate pod security standards
  2. Manage kubernetes secrets
  3. Understand and implement isolation techniques (multi-tenancy, sandbox containers, etc)
  4. Implement pod to pod encryption using Cilium

🌈 Supply Chain Security - 20% #

  1. Minimize base image footprint

    Minimize base Image
  2. Understand your supply chain (e.g. SBOM, CI/CD, artifact repositories)

    syft

  3. Secure your supply chain: whitelist allowed image registries, sign and validate images

  1. Preform static analysis of user workloads and container images (e.g. kubesec, kubelinter)
Old

🌈 Monitoring, Logging and Runtime Security - 20% #

  1. Perform behavioural analytics to detect malicious activities: Falco

  2. Detect threats within a physical infrastructure, apps, networks, data, users and workloads

  3. Investigate and identify of attach and bad actors within the environment

    Attack Phases
  4. Ensure immutability of containers at runtime

  5. Use k8s Audit Logs to monitor access

Mock Exams #

https://killercoda.com/killer-shell-cks

https://github.com/moabukar/CKS-Exercises-Certified-Kubernetes-Security-Specialist

CKS真题分析-2023年度

云原生|kubernetes|2022年底cks真题解析(1-10)

云原生|kubernetes|2022年底cks真题解析(11-16

CKS 题库

https://www.cnblogs.com/huss2016/p/17055905.html

http://www.dtcms.com/a/696.html

Reference #

CNCF Certifications

CNCF Training & Certification

Linux Training

Linux Training (China)

https://github.com/vedmichv/CKS-Certified-Kubernetes-Security-Specialist

CNCF Landscape for Security

CKS-Certified-Kubernetes-Security-Specialist

ViktorUJ/cks

Github topic: kubernetes-security

CKS-Certified-Kubernetes-Security-Specialist

cks-short-tips