kube-hunter is a security app created by Aqua Security in order to increase awareness and visibility for security issues in Kubernetes environments.
To run the plugin, just grab the plugin defintion (
kube-hunter-plugin.yaml) and run:
sonobuoy run -f kube-hunter-plugin.yaml --wait
The plugin creates a JSON document which lists all the known issues. This can be found in the resulting Sonobuoy tarball.
To download the tarball, run:
The tarball can be manually inspected or you can use the command below to dump the JSON data generated by the plugin:
sonobuoy results $outfile --plugin kube-hunter --mode=detailed --skip-prefix
The plugin definition provided here (kube-hunter-plugin.yaml) utilizes a manually built Docker image from the kube-hunter source. Using this image is the default.
Alternatively, Aqua Security provides a pre-built image (
aquasec/kube-hunter) which includes additional code (closed source) for uploading results into a report that can be viewed via their site.
See the README for more details.
If you'd like to use this image, just change the name of the image in
Your own image
Lastly, similar to the
sonobuoy/kube-hunter image, you can manually build your own image from the upstream kube-hunter code.
If you'd like to use your own image you'll need to:
- clone their repo
docker buildto build your own image
- push the image to a registry
- update the
kube-hunter-plugin.yamlto reference your image