π Azure Subscription Security Alert Notifications for alerts with High severity are not configured π’
- Contextual name: π Security Alert Notifications for alerts with High severity is not configured π’
- ID:
/ce/ca/azure/subscription/security-alert-notifications-for-alerts-with-high-severity
- Located in: π Azure Subscription
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
- Internal
dec-x-ba4c5b1c
Similar Internal Rulesβ
Rule | Policies | Flags |
---|---|---|
βοΈ dec-x-ba4c5b1c | 1 |
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Enables emailing security alerts to the subscription owner or other designated security contact.
Rationaleβ
Enabling security alert emails ensures that security alert emails are received from Microsoft. This ensures that the right people are aware of any potential security issues and are able to mitigate the risk.
Auditβ
From Azure Portalβ
- From Azure Home select the Portal Menu.
- Select
Microsoft Defender for Cloud
.- Under
Management
, selectEnvironment Settings
.- Click on the appropriate Management Group, Subscription, or Workspace.
- Click on
Email notifications
.- Ensure that the
Notify about alerts with the following severity (or higher)
setting is checked and set toHigh
.From Azure CLIβ
Ensure the output of below command is set to
True
, enter your Subscription ID at the $0 between /subscriptions/<$0>/providers:az account get-access-token --query "{subscription:subscription,accessToken:accessToken}" --out tsv | xargs -L1 bash -c 'curl -X GET -H "Authorization: Bearer $1" -H "Content-Type: application/json" https://management.azure.com/subscriptions/$0/providers/Microsoft.Security/securityContacts?api-version=2020-01-01-preview' | jq '.|.[] | select(.name=="default")'|jq '.properties.alertNotifications'
... [see more](description.md)
Remediationβ
Remediationβ
From Azure Portalβ
- From Azure Home select the Portal Menu.
- Select
Microsoft Defender for Cloud
.- Under
Management
, selectEnvironment Settings
.- Click on the appropriate Management Group, Subscription, or Workspace.
- Click on
Email notifications
.- Under
Notification types
, check the check box next toNotify about alerts with the following severity (or higher)
and selectHigh
from the drop down menu.- Click
Save
.From Azure CLIβ
Use the below command to set
Send email notification for high severity alerts
toOn
.az account get-access-token --query "{subscription:subscription,accessToken:accessToken}" --out tsv | xargs -L1 bash -c 'curl -X PUT -H "Authorization: Bearer $1" -H "Content-Type: application/json" https://management.azure.com/subscriptions/<$0>/providers/Microsoft.Security/securityContacts/default1?api-version=2017-08-01-preview -d@"input.json"'
Where
input.json
contains the data below, replacingvalidEmailAddress
with a single email address or multiple comma-separated email addresses:... see more