
Learn how to define clear authorization boundaries for a Kubernetes penetration test. This lesson covers permitted actions, exclusions, access levels, evidence handling, rollback planning, and stop conditions.
Tooling and Lab Preparation
This section introduces safe external reconnaissance for Kubernetes environments. Students learn to locate API server, Kubelet, etcd, and management endpoints, test unauthenticated exposure with low-impact requests, and document findings without crossing authorization boundaries.
Students build a reliable picture of the environment from inside a container. They inspect runtime indicators, Linux capabilities, namespace sharing, cgroups, mounted volumes, writable paths, service account identity, and security context before selecting any further test.
Translate user identity, Linux capabilities, seccomp, AppArmor, and SELinux signals into an accurate assessment of the container’s security context.
Use cgroup layouts and process, network, and IPC evidence to determine whether a container is isolated or shares critical namespaces with its host.
Inventory mounted resources and safely evaluate hostPath, runtime-socket, and writable kernel-facing exposure without modifying files or attempting an escape.
Recover Kubernetes namespace, trust, and API context from inside a pod while keeping service-account tokens and sensitive values out of evidence.
This section explains how Kubernetes authenticates and authorizes requests. Students test API connectivity, inspect their current identity, map effective permissions, and safely assess anonymous access and impersonation rights while preserving clear evidence.
Safely distinguish anonymous exposure from authenticated access, identify impersonation privileges, and assess their escalation impact without retrieving sensitive resources.
Students learn to read Kubernetes RBAC as an attack graph rather than a list of roles. They identify wildcard permissions, risky verbs, dangerous service account bindings, stale access, and combinations of permissions that can create privilege-escalation paths.
Trace service accounts from workloads through bindings to effective permissions, then identify default, broadly mounted, or overprivileged identities without exposing their tokens.
Recognize how Kubernetes verbs and resource combinations create privilege-escalation paths, validate every prerequisite with authorization reviews, and stop before exercising the path.
Find missing role references, deleted service-account subjects, and stale ownership relationships while distinguishing dormant bindings from currently exploitable access.
This section focuses on workload-level isolation. Students review privileged containers, host mounts and namespaces, Linux capabilities, user settings, security profiles, service account token mounting, image configuration, resource limits, and sensitive environment variables.
Review host namespace sharing and explicitly configured Linux capabilities, then correlate them with reachable resources without running a node-compromise technique.
Evaluate effective container identity, privilege-escalation settings, writable filesystems, and version-aware security profiles as one isolation posture.
Connect effective service-account token delivery with immutable image identity, provenance, and vulnerability evidence without revealing credentials or pulling untrusted images.
Assess workload resource governance and sensitive environment-variable sources using metadata-only evidence, without generating load or revealing secret values.
Students examine how credentials and sensitive data are stored, mounted, and exposed in Kubernetes. The section covers Secrets, ConfigMaps, cloud credentials, Helm release data, TLS assets, stale objects, and the controls needed to reduce credential exposure.
Recognize static cloud credential indicators and sensitive Helm release history using redacted evidence, then prioritize short-lived workload identity and safer release-data handling.
Review TLS certificate health and stale Secret candidates through sanitized public-certificate metadata, reference graphs, lifecycle evidence, and owner confirmation while keeping private keys sealed.
This section teaches students to map the cluster network from a security perspective. They evaluate NetworkPolicy coverage, externally exposed services, CNI behavior, internal reachability, DNS configuration, and access to high-value networking components.
Assess CoreDNS configuration authority and CNI agent exposure as high-value network control surfaces using RBAC, workload, mount, port, and sanitized configuration evidence.
Students learn a prerequisite-first workflow for evaluating container escape paths in disposable, authorized labs. The section connects kernel interfaces, namespaces, devices, host mounts, runtime sockets, service account permissions, and scheduling controls to clear validation and cleanup steps.
Model how writable core_pattern and cgroup v1 release_agent callbacks could cross into host context, then compare the exact controls that block each chain.
Identify the active CNI and policy implementation from multiple read-only signals, then interpret tightly scoped internal reachability evidence without broad scanning or cloud-metadata access.
Explain uevent_helper and binfmt_misc host execution paths with working synthetic profiles, without changing sysfs, registering handlers, or triggering kernel events.
Distinguish eBPF process observation and raw-socket traffic visibility from full host escape using sanitized, documentation-only events and deterministic capability profiles.
Connect module-loading and host-device permissions to kernel and filesystem impact while using signed canaries and an entirely in-memory training simulator.
Demonstrate how hostPath and hostPID prerequisites form storage and namespace escape paths using non-secret canaries instead of host credentials, chroot, or namespace entry.
Compare runtime-socket authority with Kubernetes service-account escalation using simulated privileged tasks and authorization outcomes, without sockets, tokens, or API requests.
Triage version-dependent escape candidates, writable cgroup surfaces, and shared-process ptrace paths without downloading exploits, changing cgroups, or attaching to a process.
Model how pod creation, tolerations, selectors, and admission can place a workload on a control-plane node without creating a pod or accessing node-local control-plane data.
After controlled host access is proven, students learn how to confirm the boundary crossing and collect only the evidence needed to demonstrate impact. They enumerate the runtime, assess node credentials and reachability, and stop before causing unnecessary changes.
Explore the credential surfaces that may become visible after gaining host access. The demonstrations focus on metadata, trust scope, and safe evidence collection without reading or reusing secret values.
Learn how to examine node interfaces, routes, listeners, service translation, and control-plane topology. Deterministic terminal demonstrations provide realistic evidence without accessing a real network or cluster.
This course contains the use of artificial intelligence.
Kubernetes environments introduce a unique attack surface that combines container isolation, identity and access management, cluster networking, cloud permissions, and Linux security boundaries.
Hacking Kubernetes: Ethical Hacking & Penetration Testing is a practical, attacker-informed, and defense-oriented ethical hacking course. It is designed exclusively for lawful security education, authorized penetration testing, and defensive security improvement. The course does not promote or authorize access to systems without permission.
The course follows a complete methodology, beginning with authorization, scoping, and rules of engagement before progressing through reconnaissance, workload analysis, privilege escalation, container escape, lateral movement, persistence, evidence collection, reporting, and remediation. All practical demonstrations use controlled labs, disposable environments, fictional targets, or safe simulations.
What you will learn:
Define the scope and rules of engagement for an authorized Kubernetes penetration test.
Enumerate Kubernetes APIs, workloads, service accounts, secrets, and effective RBAC permissions.
Identify privileged containers, dangerous capabilities, host namespace sharing, and sensitive volume mounts.
Discover and safely validate Kubernetes privilege-escalation paths.
Evaluate container escape prerequisites and techniques in disposable lab environments.
Assess NetworkPolicies, exposed services, CNI components, CoreDNS, and internal reachability.
Analyze Kubernetes-to-cloud attack paths across AWS, Google Cloud, and Microsoft Azure.
Examine admission controls, service meshes, runtime security tools, and supply-chain risks.
Build controlled, multi-stage attack chains involving tokens, workloads, nodes, and cloud identities.
Collect sanitized evidence and produce clear, actionable security findings.
Recommend practical remediation measures for confirmed security weaknesses.
Each lesson combines concise explanations, visual attack-path diagrams, terminal demonstrations, evidence interpretation, safety guidance, and knowledge checks. You will learn not only how an attack technique works, but also how to verify its prerequisites, distinguish a confirmed vulnerability from an effective security control, avoid false positives, and communicate risk responsibly.
This course is suitable for ethical hackers, penetration testers, red teamers, cloud security engineers, DevSecOps professionals, Kubernetes administrators, incident responders, and cybersecurity students. Previous Kubernetes penetration-testing experience is not required, although basic familiarity with Linux commands, networking, containers, and Kubernetes concepts will be helpful.
Ethical Hacking and Responsible Use
Every technique in this course must be used only on systems you own or have explicit written authorization to assess. Unauthorized access, exploitation, or testing may be illegal and is strictly outside the purpose of this training. Students are expected to follow applicable laws, organizational policies, and agreed rules of engagement at all times.
AI and Production Disclosure
AI-assisted text-to-speech technology is used for narration, and AI-assisted tools are used in parts of the visual production process. All technical content, demonstrations, curriculum decisions, and final materials are reviewed and directed by the instructor.