For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/ypa-4t4-zo4.md. A documentation index is available at /llms.txt.

Azure new owner added for service principal

Goal

Detect when a new owner is added to a service principal, which applies to privilege escalation or persistence.

Strategy

Monitor Azure Active Directory logs where @evt.name is "Add owner to service principal" and @evt.outcome of Success.

Triage and response

  1. Inspect that the user is added to a service principal in @properties.targetResources.
  2. Verify with the user ({{@usr.name}}) to determine if the owner addition is legitimate.