Container accessed using kubectl in another container

Esta página aún no está disponible en español. Estamos trabajando en su traducción.
Si tienes alguna pregunta o comentario sobre nuestro actual proyecto de traducción, no dudes en ponerte en contacto con nosotros.

Goal

Detect the use of kubectl inside a container to access another container.

Strategy

This detection triggers when kubectl is executed with specific arguments related to accessing containers. These arguments include port forwarding and using exec to create a shell.

Triage and response

  1. Identify the purpose of the container using tags, such as the image and service tags.
  2. Determine the target container using the process arguments.
  3. Initiate the incident response process.
  4. Remediate compromised resources and repair the root cause.

What happened

A kubectl command was used to access another container, potentially for lateral movement or privilege escalation.

Requires Agent version 7.27 or greater