CCSS (Common Configuration Scoring System) is a set of measures used to determine the severity of the rule.
Each rule is associated with a high-level category. For example IAM, Container, Monitoring, Logging, Network, etc.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsMonitoring for "Delete Network Security Group Rule" events gives insight into network access changes and may reduce the time it takes to detect suspicious activity.
Set field operationName
to Microsoft.Network/networkSecurityGroups/securityRules/delete
and set enabled
to true
.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Insights/activityLogAlerts",
"apiVersion": "2017-04-01",
"name": "allowed1",
"location": "global",
"properties": {
"scopes": [
"[subscription().id]"
],
"condition": {
"allOf": [
{
"field": "category",
"equals": "Administrative"
},
{
"field": "operationName",
"equals": "Microsoft.Network/networkSecurityGroups/securityRules/delete"
}
]
},
"actions": {
"actionGroups": []
},
"enabled": true
}
}
]
}
Set criteria.operation_name
to Microsoft.Network/networkSecurityGroups/securityRules/delete
and set enabled
to true
or remove the attribute.
resource "azurerm_monitor_activity_log_alert" "allowed" {
name = "activity-log-alert-682"
resource_group_name = azurerm_resource_group.example-682.name
scopes = [azurerm_resource_group.example-682.id]
criteria {
operation_name = "Microsoft.Network/networkSecurityGroups/securityRules/delete"
category = "Administrative"
}
}