Introducing Kubernetes Goat
Tags: security, kubernetes, devsecops, infosec
Published: 2020-06-25 17:28:30

---
title: Introducing Kubernetes Goat
published: true
date: 2020-06-25 17:20:31 UTC
tags: security,kubernetes,devsecops,infosec
canonical_url: https://blog.madhuakula.com/introducing-kubernetes-goat-8624f6d70e9e
---

![](https://cdn-images-1.medium.com/max/1024/1*cmkE9bROijKK2LuDZNCpDQ.png)<figcaption><a href="https://madhuakula.com/kubernetes-goat/">https://madhuakula.com/kubernetes-goat</a></figcaption>

#### Intentionally vulnerable cluster environment to learn and practice Kubernetes security.

I have been working in Containers, Kubernetes and it’s security for quite sometime. I felt that there is a gap between the security and technology understanding of the Kubernetes it self. We all learnt using different goats in security world like WebGoat. I wanted to create some simple environment where anyone can practice and learn to get started in Kubernetes Security.

That’s how it all started with Kubernetes Goat. But it has lot of extensive documented scenarios which are taken from real-world attacks, vulnerabilities and misconfigurations.

![](https://cdn-images-1.medium.com/max/1024/1*7g6Ria0LSVu5u8-clXFUcA.png)<figcaption>Kubernetes Goat Home</figcaption>

#### **Okay, where can I get more info about Kubernetes Goat?**

You can learn more about Kubernetes Goat and its active development, scenarios and the documentation at Github.

[madhuakula/kubernetes-goat](https://github.com/madhuakula/kubernetes-goat)

[https://github.com/madhuakula/kubernetes-goat](https://github.com/madhuakula/kubernetes-goat)

#### What all scenarios Kubernetes Goat has?

I had covered almost 14 different scenarios in Kubernetes Goat currently, also adding more scenarios and features soon. List of scenarios currently available in Kubernetes Goat are as follows

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. Kubernetes 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

#### **I’m excited, how can I quickly get started using/learning more about Kubernetes Goat?**

As it’s a complicated to setup the entire cluster environment and trying these scenarios, I have created **free** online playground at Katacoda to just tryout from your browser. You can just get started playing with Kubernetes Goat by clicking below link

[Kubernetes Goat | madhuakula | Katacoda](https://katacoda.com/madhuakula/scenarios/kubernetes-goat)

[https://katacoda.com/madhuakula/scenarios/kubernetes-goat](https://katacoda.com/madhuakula/scenarios/kubernetes-goat)

#### I am stuck at a scenario while playing, where can I get solutions?

Yes, indeed the Kubernetes Goat is intended to help you teach and learn as a walkthrough and the detailed step by step Guide can be found at [https://madhuakula.com/kubernetes-goat](https://madhuakula.com/kubernetes-goat/)

[![](https://cdn-images-1.medium.com/max/1024/1*R0L2dX-fGWA6am_Bxk8Swg.png)](https://madhuakula.com/kubernetes-goat/)<figcaption><a href="https://madhuakula.com/kubernetes-goat/">https://madhuakula.com/kubernetes-goat</a></figcaption>

#### Can we try this in our production cluster?

No, please don’t do that. It’s intentionally designed to be vulnerable cluster to showcase different vulnerabilities, misconfigurations in Kubernetes environments. Also read the below disclaimers.

> _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._

#### Wow, this looks amazing! how can I can i get to know more about its upcoming features/scenarios?

As I said, the project is in active development to include new features and scenarios. So, to just name some of the upcoming features/scenarios coming in Kubernetes Goat includes:

1. More offensive or attacker scenarios to learn about Kubernetes security from an attackers perspective
2. Defender scenarios to secure/mitigate these misconfigurations and vulnerabilities
3. Also, working on KIND based deployments to showcase cluster it self vulnerabilities and weaknesses
4. Detailed references and resources for attacks/vulnerabilities which are unable to reproduce with newer version of clusters
5. Many more…

So stay tuned for the more updates in below channels

> ⭐️ Star the Github repo to show some love❤️[https://github.com/madhuakula/kubernetes-goat](https://github.com/madhuakula/kubernetes-goat)

Follow me in twitter [@madhuakula](https://twitter.com/@madhuakula) for more updates/tweets about Kubernetes Goat as well as information more about security around Cloud, Containers, Kubernetes.

* * *