For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/0bt-76f-qi0.md. A documentation index is available at /llms.txt.

Azure user ran command on container instance

Goal

Detect when a command is executed on a container instance with the Azure API.

Strategy

Monitor Azure container instance logs where @evt.name is "MICROSOFT.CONTAINERINSTANCE/CONTAINERGROUPS/CONTAINERS/EXEC/ACTION" and @evt.outcome is Success.

Triage and response

  1. Verify that the user ({{@usr.id}}) should be executing commands on the container (@resourceId).
  2. If the activity is not expected, investigate the activity around the container (@resourceId).