Kubernetes Golden Tickets
Kubernetes Golden Tickets allow attackers to forge Kubernetes administrative user certificates, node certificates, and ServiceAccount tokens.
Scripted solution
The following is a few bash oneliners to operationalize k8s spoofilizer.
Assumptions made in this are:
- You’ve compromised a non-cloud provider managed Kubernetes cluster
- You have access to (typically in
/etc/kubernetes/pki/,
In minikube it’s/var/lib/minikube/certs): ca.crt: The public certificate of the cluster’s
Certificate Authorityca.key: Used to sign and issue new certificates within
the Kubernetes cluster.sa.key: Private key used to sign Service Account
tokens.

References
- https://www.positronsecurity.com/blog/2025-02-26-kubernetes-golden-tickets/
- https://github.com/jtesta/k8s_spoofilizer
- https://thegreycorner.com/2023/11/15/kubernetes-auth-deep-dive.html
- https://raesene.github.io/blog/2022/12/21/Kubernetes-persistence-with-Tocan-and-Teisteanas/
- https://github.com/raesene/teisteanas
- https://raesene.github.io/blog/2019/04/16/kubernetes-certificate-auth-golden-key/