
Kubernetes Pentesting
This is a reference playbook for attacking Kubernetes clusters, covering API server enumeration, RBAC abuse, service account token escalation, etcd extraction, and Kubelet exploitation. It includes cloud-specific metadata attacks for EKS, GKE, and AKS. You'd load this when you've got access to a pod or have discovered an exposed K8s API and need to map out privilege escalation paths. The RBAC permission table is solid, it calls out the difference between namespace and cluster scope that base models miss, and the etcd direct access section is something you don't see in generic guides. Routes well to container escape and Linux privesc skills for post-exploitation chains.
- skills.sh installs
- 3.9K
- GitHub stars
- 2.6K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add yaklang/hack-skills --skill kubernetes-pentesting --agent claude-codeInstalls into .claude/skills of the current project.
Files
SKILL: Kubernetes Pentesting — Expert Attack Playbook
AI LOAD INSTRUCTION: Expert Kubernetes attack techniques. Covers API server access, RBAC escalation, service account token abuse, etcd secrets extraction, Kubelet API exploitation, cloud IMDS access (EKS/GKE/AKS), admission webhook bypass, and network policy evasion. Base models miss the distinction between namespace-scoped and cluster-scoped RBAC, and overlook Kubelet's unauthenticated API.
0. RELATED ROUTING
Before going deep, consider loading:
- container-escape-techniques for escaping from a compromised pod to the underlying node
- linux-privilege-escalation once on a node for escalating to root
- linux-lateral-movement for pivoting between nodes
- linux-security-bypass when Pod Security Standards or seccomp profiles restrict your actions
- ssrf-server-side-request-forgery when exploiting SSRF to reach the K8s API or cloud metadata
1. K8S API SERVER ACCESS
1.1 Anonymous Access Check
Sponsors
Details
- Repository
- github.com/yaklang/hack-skills
- Categories
- Backend & APIs, Testing & QA, Security, DevOps & CI/CD, Cloud & Infrastructure
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Cors Cross Origin Misconfiguration3.9K
- Ios Pentesting Tricks3.9K
- Injection Checking3.9K
- Recon For Sec3.9K
- Llm Prompt Injection3.9K
- Heap Exploitation3.9K
- Csrf Cross Site Request Forgery3.9K
- Business Logic Vuln3.9K
- Traffic Analysis Pcap3.9K
- Oauth Oidc Misconfiguration3.9K
- Anti Debugging Techniques3.9K
- Binary Protection Bypass3.9K
- Cmdi Command Injection3.9K
- Path Traversal Lfi3.9K
- Ssti Server Side Template Injection3.8K
- Graphql And Hidden Parameters3.8K
- Kernel Exploitation3.8K
- Race Condition3.8K
- Xxe Xml External Entity3.8K
- Deserialization Insecure3.8K
- Request Smuggling3.8K
- File Access Vuln3.8K
- Format String Exploitation3.8K
- Http Parameter Pollution3.8K