Files
kube-hunter/docs/_kb/KHV005.md
2022-03-25 09:03:43 +00:00

834 B

vid, title, categories, severity
vid title categories severity
KHV005 Access to Kubernetes API
Information Disclosure
Unauthenticated Access
high

{{ page.vid }} - {{ page.title }}

Issue description

Kubernetes API was accessed with Pod Service Account or without Authentication (see report message for details).

Remediation

Secure access to your Kubernetes API.

It is recommended to explicitly specify a Service Account for all of your workloads (serviceAccountName in Pod.Spec), and manage their permissions according to the least privilege principal.

Consider opting out automatic mounting of SA token using automountServiceAccountToken: false on ServiceAccount resource or Pod.spec.

References