Kubernetes Exploitation Introduction -Cheatsheet #1

Rate this post

Basic Enumeration

  1. kubectl config get-users: List Kubernetes config users.
  2. kubectl config get-contexts: List Kubernetes config contexts.
  3. kubectl config get-clusters: List Kubernetes config clusters.
  4. kubectl auth can-i –list: List all available Kubernetes authorization actions.
  5. kubectl get roles: Get roles in the cluster.
  6. kubectl get clusterroles: Get cluster roles in the cluster.
  7. kubectl get namespaces: Get Kubernetes namespaces.
  8. kubectl get secrets -o yaml: Get secrets in YAML format.
  9. kubectl get serviceaccounts: Get Kubernetes service accounts.
  10. kubectl get deployments: Get deployments in the cluster.
  11. kubectl get pods: Get pods in the cluster.
  12. kubectl get services: Get services in the cluster.
  13. kubectl get nodes: Get nodes in the cluster.
  14. kubectl get daemonsets: Get daemon sets in the cluster.
  15. kubectl get cronjobs: Get cron jobs in the cluster.
  16. kubectl auth can-i list all: Check if the current user can list all resources.
LinkedIn
Twitter
Facebook
WhatsApp
Email

advisor pick´S post