Skip to content

Sensitive data threat detection#

Security · Storage Account · Rule · 2023_06

Enable sensitive data threat detection in Microsoft Defender for Storage.

Description#

Sensitive data threat detection is an additional security feature for Microsoft Defender for Storage. When enabled Defender for Storage provides alerts when sensitive data is discovered.

The sensitive data threat detection capability helps teams:

  • Identity where sensitive data is stored.
  • Detect possible security incidents resulting is data exposure.

When enabling sensitive data threat detection, the sensitive data categories include built-in sensitive information types (SITs) in the default list of Microsoft Purview. It is possible to customize the Data Sensitivity Discovery for a organization, by creating custom sensitive information types (SITs).

Sensitive data threat detection in Microsoft Defender for Storage can be enabled at the subscription level and by doing so ensures all storage accounts in the subscription will be protected, including future ones.

When overriding sensitive data threat detection on individual Storage Account it is possible to configure custom sensitive data threat detection settings that differ from the settings configured at the subscription level.

Recommendation#

Consider enabling sensitive data threat detection using Microsoft Defender for Storage on the Storage Account. Additionally, consider enabling sensitive data threat detection for all Storage Accounts within a subscription.

Examples#

Configure with Azure template#

To deploy Storage Accounts that pass this rule:

  • Deploy a Microsoft.Security/DefenderForStorageSettings sub-resource (extension resource).
  • Set the properties.sensitiveDataDiscovery.isEnabled property to true.

For example:

Azure Template snippet
{
    "type": "Microsoft.Security/DefenderForStorageSettings",
    "apiVersion": "2022-12-01-preview",
    "name": "current",
    "properties": {
        "sensitiveDataDiscovery": {
            "isEnabled": true
        },
        "overrideSubscriptionLevelSettings": false
    },
    "scope": "[resourceId('Microsoft.Storage/storageAccounts', parameters('StorageAccountName'))]"
}

Configure with Bicep#

To deploy Storage Accounts that pass this rule:

  • Deploy a Microsoft.Security/DefenderForStorageSettings sub-resource (extension resource).
  • Set the properties.sensitiveDataDiscovery.isEnabled property to true.

For example:

Azure Bicep snippet
resource defenderForStorageSettings 'Microsoft.Security/DefenderForStorageSettings@2022-12-01-preview' = {
  name: 'current'
  scope: storageAccount
  properties: {
    sensitiveDataDiscovery: {
      isEnabled: true
    }
    overrideSubscriptionLevelSettings: false
  }
}

Notes#

This feature is currently in preview. The following limitations currently apply for Microsoft Defender for Storage:

  • Only Storage Accounts with public network access set to enabled are supported.
  • Not all storage services within Storage Accounts are currently supported.
  • When Microsoft Defender is enabled at subscription and resource level, the subscription configuration will take priority. To override settings on a Storage Account, set the properties.overrideSubscriptionLevelSettings property to true.
  • If there is no plan at the subcription level, Microsoft Defender for Storage can be configured without an override.

Comments