Skip to content

blabla1337/kubernetes-goat

 
 

Repository files navigation

Kubernetes Goat

Netlify Status License: MIT GitHub release PRs Welcome Twitter

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.

Kubernetes-Goat logo

⚙️ 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

  1. Sensitive keys in code bases
  2. DIND(docker-in-docker) exploitation
  3. SSRF in K8S world
  4. Container escape to access host system
  5. Docker CIS Benchmarks analysis
  6. Kubernertes CIS Benchmarks analysis
  7. Attacking private registry
  8. NodePort exposed services
  9. Helm v2 tiller to PwN the cluster
  10. Analysing crypto miner container
  11. Kubernetes Namespaces bypass
  12. Gaining environment information
  13. DoS the memory/cpu resources
  14. 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.

About

Kubernetes Goat is "Vulnerable by Design" Kuberentes Cluster.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 75.8%
  • Shell 8.5%
  • Dockerfile 6.3%
  • JavaScript 4.7%
  • Python 2.1%
  • Smarty 2.1%
  • Go 0.5%