
Master the cks exam by practicing 16 clusters, kubectl context switching, ssh into master or worker nodes, and expect one question on falco, app armor, or trivy.
Learn how to use Trivy for image scanning to detect high and critical vulnerabilities in containers, with exam-focused workflows for certified Kubernetes security specialist exam across Linux, macOS, and Windows.
Extract secrets from a Kubernetes secret and save them to a file using kubectl, showing jsonpath, template, and yq options, with base64 decoding for username and password.
Explore CIS benchmarks for hardening a Kubernetes cluster, learn to audit with kube-bench, identify fail steps, and implement remediation and configuration refinements to secure the control plane.
Create a question one service account in question one namespace, grant backend role for pods, namespaces, and config maps, bind a role binding, attach pod, and ensure no secret access.
Verify platform binaries against sha512 checksums to ensure integrity of Kube API server, Kube controller manager, Kube proxy, and Kubelet, and delete corrupted binaries when checksums do not match.
Explore YAML's purpose as a human-friendly data serialization format, contrast it with XML and JSON, and learn core syntax such as strings, numbers, booleans, nulls, dates, tags, blocks, and anchors.
Explore Kubernetes core architecture, including control plane components like Kube API server, etcd, kube scheduler, kube controller manager, cloud controller manager, node components, add-ons, and networking for high availability clusters.
Explore the pod concept and lifecycle, including pods with multiple containers. Dive into Kubernetes networking, controllers, health checks, resource management, security, autoscaling, and logging.
Learn to manage kubernetes daemonsets with kubectl, including listing, describing, creating, applying, deleting, editing, and rolling updates; inspect YAML, monitor rollout status, and label resources for node targeting.
Learn to manage kubectl jobs and cron jobs with listing, describing, creating, and deleting across namespaces, generating YAML via dry runs, and configuring schedules, completions, and history limits.
Master kubectl secrets commands to list, describe, create (from literal, file, directory, dot env), patch, and manage TLS and docker registry secrets across namespaces.
Explore Kubernetes logging and monitoring, including container, node, and control plane logs; learn log collection methods such as sidecar and centralized collectors, and tools like Prometheus, Grafana, and EFK stack.
Explore how to define and override commands and arguments for Kubernetes containers, comparing Dockerfile entrypoint and CMD with Kubernetes command and args, and using environment variables and shell execution.
Explore Kubernetes service accounts, non-human identities for pods and system components, including namespace binding, portability, and cross-namespace access, plus credentials and authentication via JWTs and token review.
Cluster Setup
Use Network security policies to restrict cluster level access
Use CIS benchmark to review the security configuration of Kubernetes components (etcd, kubelet, kubedns, kubeapi)
Properly set up Ingress objects with security control
Protect node metadata and endpoints
Minimize use of, and access to, GUI elements
Verify platform binaries before deploying
Cluster Hardening
Restrict access to Kubernetes API
Use Role Based Access Controls to minimize exposure
Exercise caution in using service accounts e.g. disable defaults, minimize permissions on newly created ones
Update Kubernetes frequently
System Hardening
Minimize host OS footprint (reduce attack surface)
Minimize IAM roles
Minimize external access to the network
Appropriately use kernel hardening tools such as AppArmor, seccomp
Minimize Microservice Vulnerabilities
Setup appropriate OS level security domains
Manage Kubernetes secrets
Use container runtime sandboxes in multi-tenant environments (e.g. gvisor, kata containers)
Implement pod to pod encryption by use of mTLS
Supply Chain Security
Minimize base image footprint
Secure your supply chain: whitelist allowed registries, sign and validate images
Use static analysis of user workloads (e.g.Kubernetes resources, Docker files)
Scan images for known vulnerabilities
Monitoring, Logging and Runtime Security
Perform behavioral analytics of syscall process and file activities at the host and container level to detect malicious activities
Detect threats within physical infrastructure, apps, networks, data, users and workloads
Detect all phases of attack regardless where it occurs and how it spreads
Perform deep analytical investigation and identification of bad actors within environment
Ensure immutability of containers at runtime
Use Audit Logs to monitor access