madhuakula/kubernetes-goat
![madhuakula/kubernetes-goat](/images/project/madhuakula_kubernetes-goat_hu2ccf1600687878a5bb104608fddb05f0_18000_900x500_fit_q75_box.jpg)
Kubernetes Goat is "Vulnerable by Design" Kubernetes Cluster.
repo name | madhuakula/kubernetes-goat |
repo link | https://github.com/madhuakula/kubernetes-goat |
homepage | https://madhuakula.com/kubernetes-goat |
language | HTML |
size (curr.) | 58684 kB |
stars (curr.) | 330 |
created | 2020-06-04 |
license | MIT License |
Kubernetes Goat
The Kubernetes Goat designed to be intentionally vulnerable cluster environment to learn and practice Kubernetes security.
Refer to https://madhuakula.com/kubernetes-goat for the guide.
🎲 Just click and Play in browser for free using Katacoda Playground - Try now
https://katacoda.com/madhuakula/scenarios/kubernetes-goat
⚙️ Setting up Kubernetes Goat
- Before we setup the Kubernetes Goat, ensure that you have created and admin access to the Kubernetes cluster
kubectl version --short
- Setup the helm version 2 in path as
helm2
. Refer to helm releases for more information about setup
helm2 --help
- Then finally setup Kubernetes Goat by running the following command
git clone https://github.com/madhuakula/kubernetes-goat.git
cd kubernetes-goat
bash setup-kubernetes-goat.sh
- To export the ports/services locally to start learning, run the following command
bash access-kubernetes-goat.sh
🏁 Scenarios
- Sensitive keys in code bases
- DIND(docker-in-docker) exploitation
- SSRF in K8S world
- Container escape to access host system
- Docker CIS Benchmarks analysis
- Kubernetes CIS Benchmarks analysis
- Attacking private registry
- NodePort exposed services
- Helm v2 tiller to PwN the cluster
- Analysing crypto miner container
- Kubernetes Namespaces bypass
- Gaining environment information
- DoS the memory/cpu resources
- Hacker Container preview
⚠️ Disclaimer
Kubernetes Goat creates intentionally vulnerable resources into your cluster. DO NOT deploy Kubernetes Goat in a production environment or alongside any sensitive cluster resources.
Kubernetes Goat comes with absolutely no warranties whatsoever. By using Kubernetes Goat, you take full responsibility for any and all outcomes that result.
✨ Contributors
Thanks goes to these wonderful people 🎉