Entra ID User Created or Deleted by Unusual UPN

edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Entra ID User Created or Deleted by Unusual UPN

edit

Identifies the first time, within a lookback window, a user-initiated principal creates or deletes an Entra ID user ("Add user" / "Delete user"). Adversaries with compromised privileged identities create users for persistence or delete users for impact. This is a New Terms rule keyed on the initiating user principal; app/service-initiated lifecycle events (e.g. HR/SCIM provisioning) are intentionally out of scope.

Rule type: new_terms

Rule indices:

  • logs-azure.auditlogs-*

Severity: low

Risk score: 21

Runs every: 5m

Searches indices from: now-9m (Date Math format, see also Additional look-back time)

Maximum alerts per execution: 100

References:

Tags:

  • Domain: Cloud
  • Data Source: Azure
  • Data Source: Microsoft Entra ID Audit Logs
  • Domain: Identity
  • Platform: Azure
  • Platform: Entra ID
  • Tactic: Persistence
  • Tactic: Impact
  • Rule Type: New Terms
  • Resources: Investigation Guide

Version: 1

Rule authors:

  • Elastic

Rule license: Elastic License v2

Investigation guide

edit

Triage and analysis

Disclaimer: This investigation guide was created using generative AI technology and has been reviewed to improve its accuracy and relevance. While every effort has been made to ensure its quality, we recommend validating the content and adapting it to suit your specific environment and operational needs.

Investigating Entra ID User Created or Deleted by Unusual UPN

Creating or deleting directory users are high-impact identity operations: creation supports persistence (backdoor accounts), deletion supports impact/evasion. This rule flags the first time a given user principal performs either in the history window.

Possible investigation steps

  • Confirm the initiating principal (azure.auditlogs.properties.initiated_by.user.userPrincipalName) and whether user lifecycle management is expected for it.
  • Review the target user (azure.auditlogs.properties.target_resources.0.user_principal_name) and the modified properties.
  • Correlate with role assignments, credential additions, or sign-ins involving the created account.

False positive analysis

  • Human IT/IGA admins performing routine provisioning; add exceptions by initiator UPN. App/SCIM-initiated events are already excluded (they carry no initiator UPN).

Response and remediation

  • If unauthorized, disable/remove the created account or restore the deleted one, review follow-on activity, and rotate the initiator’s credentials.

Rule query

edit
data_stream.dataset: "azure.auditlogs"
    and event.action: ("Add user" or "Delete user")
    and event.outcome: "success"

Framework: MITRE ATT&CKTM