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.
Installation
pip
$ pip install kube-hunterDocker
$ docker run -it --rm --network host aquasec/kube-hunteras Pod
$ kubectl apply -f https://raw.githubusercontent.com/aquasecurity/kube-hunter/main/job.yamlUse 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
Details
- Category
- ๐ฆ Container Security
- Language
- Python
- Repository
- aquasecurity/kube-hunter
- License
- Apache-2.0
- Platforms
- ๐งlinux๐macos๐ชwindows
Links
Alternatives & Comparisons
Falco
C++Cloud-native runtime security. Detects threats in containers, Kubernetes, and Linux hosts using system call monitoring and custom rules.
Compare kube-hunter vs FalcoCDK
GoContainer escape and exploitation toolkit. Zero-dependency binary for container pentesting with escape exploits and post-exploitation tools.
Compare kube-hunter vs CDKDeepce
ShellDocker enumeration and privilege escalation. Discover Docker containers, check for misconfigurations, and find escape paths.
Compare kube-hunter vs DeepceMore in Container Security
Falco
C++Cloud-native runtime security. Detects threats in containers, Kubernetes, and Linux hosts using system call monitoring and custom rules.
CDK
GoContainer escape and exploitation toolkit. Zero-dependency binary for container pentesting with escape exploits and post-exploitation tools.
Deepce
ShellDocker enumeration and privilege escalation. Discover Docker containers, check for misconfigurations, and find escape paths.
Dockle
GoContainer image linter. Checks Docker images for security best practices, CIS benchmarks, and Dockerfile misconfigurations.
Syft
GoSoftware Bill of Materials generator. Creates SBOMs from container images and filesystems in SPDX and CycloneDX formats.