performing-kubernetes-penetration-testing

Identify Kubernetes security gaps via penetration testing across API server, kubelet, etcd, pods, RBAC, network policies, and secrets.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill performing-kubernetes-penetration-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: performing-kubernetes-penetration-testing
Source: https://github.com/YukiIto1999/ctf-sleuth/tree/main/.claude/skills/performing-kubernetes-penetration-testing
Command: npx skills add https://github.com/YukiIto1999/ctf-sleuth --skill performing-kubernetes-penetration-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Kubernetes environments often suffer from misconfigurations and exposure across API servers, RBAC, networks, and secrets. This Skill provides a structured methodology to systematically identify and remediate these security gaps.

Core Features & Use Cases

  • Automated reconnaissance of cluster topology and components (API server, etcd, kubelet, nodes, namespaces).
  • RBAC and secret exposure checks, network policy validation, and pod security assessments.
  • Use Case: Security teams performing regular hardening scans or incident-response postures to demonstrate risk reduction.

Quick Start

Run the Kubernetes penetration testing skill against a cluster to enumerate cluster information, verify permissions, detect secret exposures, and generate a structured security report.

Frequently Asked Questions about performing-kubernetes-penetration-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I perform penetration testing on a Kubernetes cluster?

Kubernetes penetration testing systematically identifies security gaps by enumerating cluster topology, verifying RBAC permissions, detecting secret exposures, and evaluating network policies across API servers, kubelets, and workloads.

What security misconfigurations can I detect in Kubernetes?

You can detect Kubernetes misconfigurations by auditing RBAC permissions, validating network policies, assessing pod security, and checking for exposed secrets across the control plane and workloads.

How do kube-hunter and kubescape check Kubernetes security gaps?

Kube-hunter and kubescape perform automated reconnaissance and security checks to enumerate cluster information, detect exposed secrets, verify permissions, and generate structured incident-ready reports.

Can I use this Kubernetes penetration testing methodology for incident response?

Yes, this methodology applies to incident response scenarios by uncovering misconfigurations and exposure across control planes and workloads to demonstrate risk reduction during security assessments.

Does this approach test etcd and API server exposure in Kubernetes?

Yes, the penetration testing approach comprehensively assesses exposure across the API server, etcd, kubelet, nodes, and pods to identify security gaps within the Kubernetes cluster.

Why are my Kubernetes network policies failing to restrict pod traffic?

Network policy validation during penetration testing evaluates existing configurations to detect misconfigurations and exposure that allow unintended traffic flow between pods and namespaces.