Kubernetes service account token created in container

This page is not yet available in Spanish. We are working on its translation.
If you have any questions or feedback about our current translation project, feel free to reach out to us!

What happened

A kubectl command was used to create a new service account token, potentially to establish persistence or escalate privileges.

Goal

Detect the use of kubectl commands inside a container to create a new service account token.

Strategy

This detection triggers when kubectl is executed with specific arguments related to creating a new service account token.

Triage and response

  1. Identify the purpose and scope of the service account.
  2. Confirm if the service account token being created is authorized.
  3. Determine the resources involved, such as new containers.
  4. Initiate the incident response process.
  5. Remediate compromised resources and repair the root cause.

Requires Agent version 7.27 or greater

PREVIEWING: cswatt/DOCS_10103_container_autoscaling