-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
3907935
commit 60ee17e
Showing
10 changed files
with
676 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
severity: Important | ||
pillar: Security | ||
category: SE:12 Incident response | ||
resource: Microsoft Defender for Cloud | ||
online version: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Defender.SecurityContact/ | ||
ms-content-id: 18fcf75f-a5e6-4a34-baba-74bd49502cd7 | ||
--- | ||
|
||
# Defender for Cloud notification contact not set | ||
|
||
## SYNOPSIS | ||
|
||
Important security notifications may be lost or not processed in a timely manner when a clear security contact is not identified. | ||
|
||
## DESCRIPTION | ||
|
||
Microsoft Defender for Cloud allows one or more email addresses to be specified for receiving security alerts. | ||
This is in addition to subscription owners or other configured role. | ||
|
||
Directing security notifications to the correct party enables triage and response to security incidents in a timely manner. | ||
|
||
## RECOMMENDATION | ||
|
||
Consider configuring a security notification email address to assist timely notification and incident response. | ||
|
||
## EXAMPLES | ||
|
||
### Configure with Azure template | ||
|
||
To deploy subscriptions that pass this rule: | ||
|
||
- Set the `properties.emails` property to an email address for security incident response. | ||
|
||
For example: | ||
|
||
```json | ||
{ | ||
"type": "Microsoft.Security/securityContacts", | ||
"apiVersion": "2023-12-01-preview", | ||
"name": "default", | ||
"properties": { | ||
"isEnabled": true, | ||
"notificationsByRole": { | ||
"roles": [ | ||
"Owner" | ||
], | ||
"state": "On" | ||
}, | ||
"emails": "[email protected]", | ||
"notificationsSources": [ | ||
{ | ||
"sourceType": "Alert", | ||
"minimalSeverity": "High" | ||
}, | ||
{ | ||
"sourceType": "AttackPath", | ||
"minimalRiskLevel": "High" | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### Configure with Bicep | ||
|
||
To deploy subscriptions that pass this rule: | ||
|
||
- Set the `properties.emails` property to an email address for security incident response. | ||
|
||
For example: | ||
|
||
```bicep | ||
resource securityContact 'Microsoft.Security/securityContacts@2023-12-01-preview' = { | ||
name: 'default' | ||
properties: { | ||
isEnabled: true | ||
notificationsByRole: { | ||
roles: [ | ||
'Owner' | ||
] | ||
state: 'On' | ||
} | ||
emails: '[email protected]' | ||
notificationsSources: [ | ||
{ | ||
sourceType: 'Alert' | ||
minimalSeverity: 'High' | ||
} | ||
{ | ||
sourceType: 'AttackPath' | ||
minimalRiskLevel: 'High' | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### Configure with Azure CLI | ||
|
||
```bash | ||
az security contact update -n 'default' --emails '[email protected]' | ||
``` | ||
|
||
## LINK | ||
|
||
- [SE:12 Incident response](https://learn.microsoft.com/azure/well-architected/security/incident-response) | ||
- [Quickstart: Configure email notifications for security alerts](https://learn.microsoft.com/azure/defender-for-cloud/configure-email-notifications) | ||
- [Azure deployment reference](https://learn.microsoft.com/azure/templates/microsoft.security/securitycontacts) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,20 +6,27 @@ targetScope = 'subscription' | |
// Bicep documentation examples | ||
|
||
// Configures security contacts to be notified for Microsoft Defender alerts | ||
resource securityContact 'Microsoft.Security/securityContacts@2020-01-01-preview' = { | ||
resource securityContact 'Microsoft.Security/securityContacts@2023-12-01-preview' = { | ||
name: 'default' | ||
properties: { | ||
isEnabled: true | ||
notificationsByRole: { | ||
roles: [ | ||
'Owner' | ||
] | ||
state: 'On' | ||
} | ||
emails: '[email protected]' | ||
alertNotifications: { | ||
minimalSeverity: 'High' | ||
state: 'On' | ||
} | ||
notificationsSources: [ | ||
{ | ||
sourceType: 'Alert' | ||
minimalSeverity: 'High' | ||
} | ||
{ | ||
sourceType: 'AttackPath' | ||
minimalRiskLevel: 'High' | ||
} | ||
] | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,26 +5,33 @@ | |
"_generator": { | ||
"name": "bicep", | ||
"version": "0.30.23.60470", | ||
"templateHash": "2395927344385178299" | ||
"templateHash": "7941752543000454149" | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"type": "Microsoft.Security/securityContacts", | ||
"apiVersion": "2020-01-01-preview", | ||
"apiVersion": "2023-12-01-preview", | ||
"name": "default", | ||
"properties": { | ||
"isEnabled": true, | ||
"notificationsByRole": { | ||
"roles": [ | ||
"Owner" | ||
], | ||
"state": "On" | ||
}, | ||
"emails": "[email protected]", | ||
"alertNotifications": { | ||
"minimalSeverity": "High", | ||
"state": "On" | ||
} | ||
"notificationsSources": [ | ||
{ | ||
"sourceType": "Alert", | ||
"minimalSeverity": "High" | ||
}, | ||
{ | ||
"sourceType": "AttackPath", | ||
"minimalRiskLevel": "High" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.