|
| 1 | +--- |
| 2 | +severity: Important |
| 3 | +pillar: Security |
| 4 | +category: SE:12 Incident response |
| 5 | +resource: Microsoft Defender for Cloud |
| 6 | +online version: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Defender.SecurityContact/ |
| 7 | +ms-content-id: 18fcf75f-a5e6-4a34-baba-74bd49502cd7 |
| 8 | +--- |
| 9 | + |
| 10 | +# Defender for Cloud notification contact not set |
| 11 | + |
| 12 | +## SYNOPSIS |
| 13 | + |
| 14 | +Important security notifications may be lost or not processed in a timely manner when a clear security contact is not identified. |
| 15 | + |
| 16 | +## DESCRIPTION |
| 17 | + |
| 18 | +Microsoft Defender for Cloud allows one or more email addresses to be specified for receiving security alerts. |
| 19 | +This is in addition to subscription owners or other configured role. |
| 20 | + |
| 21 | +Directing security notifications to the correct party enables triage and response to security incidents in a timely manner. |
| 22 | + |
| 23 | +## RECOMMENDATION |
| 24 | + |
| 25 | +Consider configuring a security notification email address to assist timely notification and incident response. |
| 26 | + |
| 27 | +## EXAMPLES |
| 28 | + |
| 29 | +### Configure with Azure template |
| 30 | + |
| 31 | +To deploy subscriptions that pass this rule: |
| 32 | + |
| 33 | +- Set the `properties.emails` property to an email address for security incident response. |
| 34 | + |
| 35 | +For example: |
| 36 | + |
| 37 | +```json |
| 38 | +{ |
| 39 | + "type": "Microsoft.Security/securityContacts", |
| 40 | + "apiVersion": "2023-12-01-preview", |
| 41 | + "name": "default", |
| 42 | + "properties": { |
| 43 | + "isEnabled": true, |
| 44 | + "notificationsByRole": { |
| 45 | + "roles": [ |
| 46 | + "Owner" |
| 47 | + ], |
| 48 | + "state": "On" |
| 49 | + }, |
| 50 | + |
| 51 | + "notificationsSources": [ |
| 52 | + { |
| 53 | + "sourceType": "Alert", |
| 54 | + "minimalSeverity": "High" |
| 55 | + }, |
| 56 | + { |
| 57 | + "sourceType": "AttackPath", |
| 58 | + "minimalRiskLevel": "High" |
| 59 | + } |
| 60 | + ] |
| 61 | + } |
| 62 | +} |
| 63 | +``` |
| 64 | + |
| 65 | +### Configure with Bicep |
| 66 | + |
| 67 | +To deploy subscriptions that pass this rule: |
| 68 | + |
| 69 | +- Set the `properties.emails` property to an email address for security incident response. |
| 70 | + |
| 71 | +For example: |
| 72 | + |
| 73 | +```bicep |
| 74 | +resource securityContact 'Microsoft.Security/securityContacts@2023-12-01-preview' = { |
| 75 | + name: 'default' |
| 76 | + properties: { |
| 77 | + isEnabled: true |
| 78 | + notificationsByRole: { |
| 79 | + roles: [ |
| 80 | + 'Owner' |
| 81 | + ] |
| 82 | + state: 'On' |
| 83 | + } |
| 84 | + |
| 85 | + notificationsSources: [ |
| 86 | + { |
| 87 | + sourceType: 'Alert' |
| 88 | + minimalSeverity: 'High' |
| 89 | + } |
| 90 | + { |
| 91 | + sourceType: 'AttackPath' |
| 92 | + minimalRiskLevel: 'High' |
| 93 | + } |
| 94 | + ] |
| 95 | + } |
| 96 | +} |
| 97 | +``` |
| 98 | + |
| 99 | +### Configure with Azure CLI |
| 100 | + |
| 101 | +```bash |
| 102 | +az security contact update -n 'default' --emails '[email protected]' |
| 103 | +``` |
| 104 | + |
| 105 | +## LINK |
| 106 | + |
| 107 | +- [SE:12 Incident response](https://learn.microsoft.com/azure/well-architected/security/incident-response) |
| 108 | +- [Quickstart: Configure email notifications for security alerts](https://learn.microsoft.com/azure/defender-for-cloud/configure-email-notifications) |
| 109 | +- [Azure deployment reference](https://learn.microsoft.com/azure/templates/microsoft.security/securitycontacts) |
0 commit comments