EN
ENNA

kube-hunter

Apache-2.0

๐Ÿ“ฆ Container Security ยท Python

kube-hunter is an open-source tool from Aqua Security that hunts for security weaknesses in Kubernetes clusters. It can run from outside the cluster (remote scanning), from a machine inside the network, or as a pod within the cluster itself to simulate different attacker perspectives. kube-hunter checks for a wide range of vulnerabilities including exposed API servers, kubelet API access, etcd access, privilege escalation paths, container escape vectors, and misconfigurations in RBAC, network policies, and pod security. Each finding includes a severity rating, description, and remediation guidance. The tool generates reports in JSON, YAML, or human-readable formats, making it easy to integrate into CI/CD pipelines or compliance workflows. kube-hunter is particularly valuable for security teams validating the hardening of their Kubernetes deployments.

5.0kstars
605forks
82issues
Updated 2y ago

Installation

pip

$ pip install kube-hunter

Docker

$ docker run -it --rm --network host aquasec/kube-hunter

as Pod

$ kubectl apply -f https://raw.githubusercontent.com/aquasecurity/kube-hunter/main/job.yaml

Use Cases

  • Scanning Kubernetes clusters for exposed API servers and kubelet endpoints
  • Identifying RBAC misconfigurations and privilege escalation paths in clusters
  • Running as a pod to simulate insider attacker perspective within Kubernetes
  • Integrating cluster security scanning into CI/CD deployment pipelines
  • Validating Kubernetes hardening against CIS Kubernetes Benchmark

Tags

kubernetespentestcluster-securityrbacaqua-securitymisconfigurationhacktoberfestkubernetes-clustersvulnerabilities

More in Container Security