🛡️ Azure Subscription Activity Log Alert for Delete Network Security Group does not exist🟢
- Contextual name: 🛡️ Activity Log Alert for Delete Network Security Group does not exist🟢
- ID:
/ce/ca/azure/subscription/activity-log-alert-for-delete-nsg - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Stats
not available
Logic
Similar Policies
- Cloud Conformity: Create Alert for 'Delete Network Security Group' Events
- Internal:
dec-x-c397d3ca
Similar Internal Rules
| Rule | Policies | Flags |
|---|---|---|
| ✉️ dec-x-c397d3ca | 1 |
Description
Description
Create an activity log alert for the Delete Network Security Group event.
Rationale
Monitoring for "Delete Network Security Group" events gives insight into network access changes and may reduce the time it takes to detect suspicious activity.
Audit
This policy flags an Azure Subscription as
INCOMPLIANTif it does not have an enabled related Azure Activity Log Alert scoped to the subscription whoseCondition JSONfilters on the Administrative category and the Microsoft.Network/networkSecurityGroups/delete operation.Default Value
By default, no monitoring alerts are created.
References
- https://azure.microsoft.com/en-us/updates?id=classic-alerting-monitoring-retirement
- https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-create-activity-log-alert-rule
- https://learn.microsoft.com/en-us/rest/api/monitor/activity-log-alerts/create-or-update
- https://learn.microsoft.com/en-us/rest/api/monitor/activity-log-alerts/list-by-subscription-id
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-logging-threat-detection#lt-3-enable-logging-for-security-investigation
Remediation
Remediation
From Azure Portal
- Navigate to the
Monitorblade.- Select
Alerts.- Select
Create.- Select
Alert rule.- Choose a subscription.
- Select
Apply.- Select the
Conditiontab.- Click
See all signals.- Select
Delete Network Security Group (Network Security Group).- Click
Apply.- Select the
Actionstab.- Click
Select action groupsto select an existing action group, orCreate action groupto create a new action group.- Follow the prompts to choose or create an action group.
- Select the
Detailstab.- Select a
Resource group, provide anAlert rule nameand an optionalAlert rule description.- Click
Review + create.- Click
Create.From Azure CLI
az monitor activity-log alert create \
--resource-group {{resource-group-name}} \
--condition category=Administrative and operationName=Microsoft.Network/networkSecurityGroups/delete and level={{verbose | information | warning | error | critical}} \
--scope /subscriptions/{{subscription-id}} \
... [see more](remediation.md)