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

Azure Event Hub Namespace Deleted

edit

Identifies the deletion of an Azure Event Hub namespace ("Microsoft.EventHub/namespaces/delete"). Event Hub namespaces are a common egress path for Azure diagnostic, activity, and sign-in logs to SIEMs, deleting a namespace can sever that telemetry pipeline, impairing defenses and monitoring. This rule excludes known cloud-provider egress networks to reduce infrastructure-automation noise.

Rule type: query

Rule indices:

  • logs-azure.activitylogs-*

Severity: medium

Risk score: 47

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: Azure Activity Logs
  • Platform: Azure
  • Use Case: Log Auditing
  • Tactic: Defense Evasion
  • Resources: Investigation Guide

Version: 1

Rule authors:

  • Elastic

Rule license: Elastic License v2

Investigation guide

edit

Triage and analysis

Investigating Azure Event Hub Namespace Deleted

Event Hub namespaces frequently carry diagnostic/activity/sign-in log egress to monitoring pipelines. Deleting one can blind detection by cutting off that telemetry, and may precede or accompany other malicious activity.

Possible investigation steps

  • Identify the deleted namespace (azure.resource.name) and whether it was a logging/diagnostics egress hub.
  • Identify the acting principal (azure.activitylogs.identity.authorization.evidence.principal_id) and whether the deletion was expected.
  • Review source.as.organization.name and source IP; confirm it aligns with normal administration.
  • Check diagnostic settings that targeted the namespace and whether log egress stopped after the deletion.

False positive analysis

  • CI/CD pipelines routinely create and delete ephemeral namespaces; baseline those principals and networks.

Response and remediation

  • If unexpected, restore diagnostic settings to a healthy egress target, verify log ingestion resumed, rotate the implicated principal’s credentials, and tighten least privilege on Microsoft.EventHub/namespaces/*.

Rule query

edit
data_stream.dataset: "azure.activitylogs"
    and event.action: "MICROSOFT.EVENTHUB/NAMESPACES/DELETE"
    and event.outcome: "success"
    and not source.as.organization.name: (
        "Google LLC" or "Amazon.com, Inc." or "Microsoft Corporation" or "GOOGLE-CLOUD-PLATFORM"
        or "MICROSOFT-CORP-MSN-AS-BLOCK" or "AMAZON-AES" or "AMAZON-02"
    )

Framework: MITRE ATT&CKTM