Kubernetes Pentesting
Kubernetes penetration testing playbook covering API server, RBAC, service account, etcd, Kubelet, and cloud metadata attacks.
- CCM score
- 61 of 100
- skills.sh installs
- 4.1K
- GitHub stars
- 2.7K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers API server access, RBAC enumeration, service account token abuse, etcd secrets extraction, and Kubelet API exploitation
- Includes
kubectl auth can-iself-permission checks, a dangerous-permissions table (pods/exec,secrets,escalate,impersonate), and pod escape vectors - Provides AWS EKS IMDS/IRSA and GCP GKE metadata API attack steps, with IMDSv2 token handling
- Designed for authorized security assessments that route to container escape, privilege escalation, and lateral movement skills
Install
$ npx -y skills add yaklang/hack-skills --skill kubernetes-pentesting -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/yaklang/hack-skills
- Categories
- Security, DevOps & Cloud
- First seen
- Jun 3, 2026
More from yaklang/hack-skills
All 102- Auth Sec4.1K
- Ios Pentesting Tricks4.1K
- Cors Cross Origin Misconfiguration4.1K
- Injection Checking4.1K
- Llm Prompt Injection4.1K
- Recon For Sec4.1K
- Csrf Cross Site Request Forgery4.1K
- Heap Exploitation4.1K
- Business Logic Vuln4.1K
- Traffic Analysis Pcap4.1K
- Oauth Oidc Misconfiguration4.1K
- Anti Debugging Techniques4.1K
- Binary Protection Bypass4.1K
- Cmdi Command Injection4.1K
- Graphql And Hidden Parameters4.1K
- Race Condition4.1K
- Ssti Server Side Template Injection4.1K
- Kernel Exploitation4.1K
- Path Traversal Lfi4.1K
- Request Smuggling4K
- Deserialization Insecure4K
- Xxe Xml External Entity4K
- Format String Exploitation4K
- File Access Vuln4K
Similar to Kubernetes Pentesting
More Securitycontainer-escape-techniquesyaklang/hack-skills4K installsContainer escape playbook covering privileged mode, capabilities, Docker socket, cgroup release_agent, and runtime CVEs.
cloud-securityhypnguyen1209/offensive-claude430 starsCloud penetration testing playbook covering AWS, Azure, and GCP privilege escalation, metadata SSRF, and Kubernetes container escape.
kubernetesbobmatnyc/claude-mpm-skills407 installsOperations playbook for Kubernetes deployments covering rollouts, probes, resource sizing, and kubectl triage.
kubernetes-specialistjeffallan/claude-skills15K installsDeclarative Kubernetes manifest guide covering workloads, RBAC, NetworkPolicies, Helm, GitOps, and multi-cluster operations.
kubernetes-patternsaffaan-m/ecc7K installsProduction-grade Kubernetes workload patterns, probes, RBAC, autoscaling, and kubectl debugging reference for manifest work.
aws-penetration-testingsickn33/agentic-awesome-skills353 installsCatalog summary of an offensive AWS pentesting skill covering IAM escalation, SSRF, and S3 and Lambda exploitation.