Skip to content
yaklang avatar

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
View on GitHub

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-i self-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 -y

Installs 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:


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

Similar to Kubernetes Pentesting

More Security