[](<https://2.bp.blogspot.com/-VBaUpBQK0rA/YTVNExHXAvI/AAAAAAAAuAA/CA03OmKbhvckixnIGi8HyQsvhvbjoCt5gCK4BGAYYCw/s1600/peirates_1_peirates_logo-783044.png>)
**What is Peirates?**
Peirates, a [Kubernetes](<https://www.kitploit.com/search/label/Kubernetes> "Kubernetes" ) penetration tool, enables an attacker to escalate privilege and pivot through a Kubernetes cluster. It automates known techniques to steal and collect service accounts, obtain further code execution, and gain control of the cluster.
**Where do I run Peirates?**
You run Peirates from a [container](<https://www.kitploit.com/search/label/Container> "container" ) running on Kubernetes.
**Does Peirates attack a Kubernetes cluster?**
Yes, it absolutely does. Talk to your lawyer and the cluster owners before using this tool in a Kubernetes cluster.
**Who creates Peirates?**
InGuardians' CTO Jay Beale first conceived of Peirates and put together a group of InGuardians developers to create it with him, including Faith Alderson, Adam Crompton and Dave Mayer. Faith convinced us to all learn Golang, so she could implement the tool's use of the [kubectl](<https://www.kitploit.com/search/label/Kubectl> "kubectl" ) [library](<https://www.kitploit.com/search/label/Library> "library" ) from the Kubernetes project. Adam persuaded the group to use a highly-interactive user interface. Dave brought contagious enthusiasm. Together, these four developers implemented attacks and began releasing this tool that we use on our penetration tests.
**Do you welcome contributions?**
Yes, we absolutely do. Submit a pull request and/or reach out to some-email@example.com.
**What license is this released under?**
Peirates is released under the GPLv2 license.
**Modules**
**Building and Running**
If you just want the peirates [binary](<https://www.kitploit.com/search/label/Binary> "binary" ) to start attacking things, grab the latest release from the [releases page](<https://github.com/inguardians/peirates/releases> "releases page" ).
However, if you want to build from source, read on!
Get peirates
go get -v "github.com/inguardians/peirates"
Get libary sources if you haven't already (Warning: this will take almost a gig of space because it needs the whole kubernetes repository)
go get -v "k8s.io/kubectl/pkg/cmd" "github.com/aws/aws-sdk-go"
Build the executable
cd $GOPATH/github.com/inguardians/peirates
./build.sh
This will generate an executable file named `peirates` in the same directory.
**[Download Peirates](<https://github.com/inguardians/peirates> "Download Peirates" )**
{"id": "KITPLOIT:5599397906007758696", "vendorId": null, "type": "kitploit", "bulletinFamily": "tools", "title": "Peirates - Kubernetes Penetration Testing Tool", "description": "[](<https://2.bp.blogspot.com/-VBaUpBQK0rA/YTVNExHXAvI/AAAAAAAAuAA/CA03OmKbhvckixnIGi8HyQsvhvbjoCt5gCK4BGAYYCw/s1600/peirates_1_peirates_logo-783044.png>)\n\n \n**What is Peirates?** \n\n\nPeirates, a [Kubernetes](<https://www.kitploit.com/search/label/Kubernetes> \"Kubernetes\" ) penetration tool, enables an attacker to escalate privilege and pivot through a Kubernetes cluster. It automates known techniques to steal and collect service accounts, obtain further code execution, and gain control of the cluster.\n\n \n\n\n**Where do I run Peirates?** \n\n\nYou run Peirates from a [container](<https://www.kitploit.com/search/label/Container> \"container\" ) running on Kubernetes.\n\n \n**Does Peirates attack a Kubernetes cluster?** \n\n\nYes, it absolutely does. Talk to your lawyer and the cluster owners before using this tool in a Kubernetes cluster.\n\n \n**Who creates Peirates?** \n\n\nInGuardians' CTO Jay Beale first conceived of Peirates and put together a group of InGuardians developers to create it with him, including Faith Alderson, Adam Crompton and Dave Mayer. Faith convinced us to all learn Golang, so she could implement the tool's use of the [kubectl](<https://www.kitploit.com/search/label/Kubectl> \"kubectl\" ) [library](<https://www.kitploit.com/search/label/Library> \"library\" ) from the Kubernetes project. Adam persuaded the group to use a highly-interactive user interface. Dave brought contagious enthusiasm. Together, these four developers implemented attacks and began releasing this tool that we use on our penetration tests.\n\n \n**Do you welcome contributions?** \n\n\nYes, we absolutely do. Submit a pull request and/or reach out to some-email@example.com.\n\n \n**What license is this released under?** \n\n\nPeirates is released under the GPLv2 license.\n\n \n**Modules** \n \n**Building and Running** \n\n\nIf you just want the peirates [binary](<https://www.kitploit.com/search/label/Binary> \"binary\" ) to start attacking things, grab the latest release from the [releases page](<https://github.com/inguardians/peirates/releases> \"releases page\" ).\n\nHowever, if you want to build from source, read on!\n\nGet peirates\n \n \n go get -v \"github.com/inguardians/peirates\" \n \n\nGet libary sources if you haven't already (Warning: this will take almost a gig of space because it needs the whole kubernetes repository)\n \n \n go get -v \"k8s.io/kubectl/pkg/cmd\" \"github.com/aws/aws-sdk-go\" \n \n\nBuild the executable\n \n \n cd $GOPATH/github.com/inguardians/peirates \n ./build.sh \n \n\nThis will generate an executable file named `peirates` in the same directory.\n\n \n \n\n\n**[Download Peirates](<https://github.com/inguardians/peirates> \"Download Peirates\" )**\n", "published": "2021-09-13T20:30:00", "modified": "2021-09-13T20:30:00", "cvss": {"score": 0.0, "vector": "NONE"}, "cvss2": {}, "cvss3": {}, "href": "http://www.kitploit.com/2021/09/peirates-kubernetes-penetration-testing.html", "reporter": "KitPloit", "references": ["https://github.com/inguardians/peirates/releases", "https://github.com/inguardians/peirates"], "cvelist": [], "immutableFields": [], "lastseen": "2023-01-20T00:16:29", "viewCount": 53, "enchantments": {"dependencies": {}, "score": {"value": 0.2, "vector": "NONE"}, "backreferences": {}, "exploitation": null, "vulnersScore": 0.2}, "_state": {"dependencies": 1674174079, "score": 1674174044, "epss": 1679112172}, "_internal": {"score_hash": "949f9552a0ca3fa7bf8eb41d5b1ac5a3"}, "toolHref": "https://github.com/inguardians/peirates"}