🛡️ Azure Subscription Security Alert Notifications to subscription owners are not configured🟢
- Contextual name: 🛡️ Security Alert Notifications to subscription owners are not configured🟢
- ID:
/ce/ca/azure/subscription/security-alert-notifications-to-subscription-owners - Tags:
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logic
Similar Policies
- Cloud Conformity: Email To Subscription Owners
- Internal:
dec-x-351e376f
Similar Internal Rules
| Rule | Policies | Flags |
|---|---|---|
| ✉️ dec-x-351e376f | 1 |
Description
Description
Enable security alert emails to subscription owners.
Rationale
Enabling security alert emails to subscription owners ensures that they receive security alert emails from Microsoft. This ensures that they are aware of any potential security issues and can mitigate the risk in a timely fashion.
Audit
This policy flags an Azure Subscription as
INCOMPLIANTif theSecurity Center: Contactsconfiguration does not include a default contact wherenotificationsByRoleRolescontains the Owner role andnotificationsByRoleStateis set to On.Default Value
By default,
Owneris selected.References
- https://docs.microsoft.com/en-us/azure/security-center/security-center-provide-security-contact-details
- https://docs.microsoft.com/en-us/rest/api/securitycenter/securitycontacts/list
- https://docs.microsoft.com/en-us/rest/api/securitycenter/security-contacts
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-incident-response#ir-2-preparation---setup-incident-notification
... see more
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.- In the drop down of the
All users with the following rolesfield selectOwner.- Click
Save.From Azure CLI
Use the below command to set
Send email also to subscription ownerstoOn: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.jsoncontains the data below, replacingvalidEmailAddresswith a single email address or multiple comma-separated email addresses:{
"id": "/subscriptions/<Your_Subscription_Id>/providers/Microsoft.Security/securityContacts/default1",
... [see more](remediation.md)