Skip to main content

Event Information

Meaning

  • This event indicates a potential unauthorized outbound connection from a pod in the Kubernetes cluster to a Command and Control (C2) server, which could be a sign of a security breach.
  • To investigate further, you can use the following kubectl command to list all the pods in the cluster:
  • You can then inspect the logs of the suspicious pod using the following kubectl command:

Remediation

  • Create a Kubernetes Deployment manifest file to deploy a Python script that uses the Kubernetes API to monitor and block outbound connections to C2 servers:
  • Create a Kubernetes NetworkPolicy manifest file to restrict egress traffic from the deployment to C2 servers:
  • Apply the Deployment and NetworkPolicy manifest files to the Kubernetes cluster to remediate the outbound connection to C2 servers event: