LoFP LoFP / administrators may legitimately create azure runbook webhooks. filter as needed.

Techniques

Sample rules

Azure Runbook Webhook Created

Description

The following analytic detects the creation of a new Automation Runbook Webhook within an Azure tenant. It leverages Azure Audit events, specifically the “Create or Update an Azure Automation webhook” operation, to identify this activity. This behavior is significant because Webhooks can trigger Automation Runbooks via unauthenticated URLs exposed to the Internet, posing a security risk. If confirmed malicious, an attacker could use this to execute code, create users, or maintain persistence within the environment, potentially leading to unauthorized access and control over Azure resources.

Detection logic

`azure_audit` operationName.localizedValue="Create or Update an Azure Automation webhook" status.value=Succeeded 
| dedup object 
| rename claims.ipaddr as src_ip 
| rename caller as user 
| stats count min(_time) as firstTime max(_time) as lastTime by object user, src_ip, resourceGroupName, object_path 
| `security_content_ctime(firstTime)` 
| `security_content_ctime(lastTime)` 
| `azure_runbook_webhook_created_filter`