Detection rules › Kusto

Sensitive Data Discovered in the Last 24 Hours - Customized

Severity
informational
Time window
1d
Source
github.com/Azure/Azure-Sentinel

'Customized query used to identify specific classifications and parameters that have been discovered on assets in the last 24 hours by Microsoft Purview. By default, the query identifies Social Security Numbers detected, but the specific classification monitored along with other data fields can be adjusted. A list of supported Microsoft Purview classifications can be found here: https://docs.microsoft.com/azure/purview/supported-classifications'

MITRE ATT&CK coverage

TacticTechniques
DiscoveryT1087 Account Discovery

Rule body kusto

id: 79f296d9-e6e4-45dc-9ca7-1770955435fa
name: Sensitive Data Discovered in the Last 24 Hours - Customized 
description: |
  'Customized query used to identify specific classifications and parameters that have been discovered on assets in the last 24 hours by Microsoft Purview. By default, the query identifies Social Security Numbers detected, but the specific classification monitored along with other data fields can be adjusted. A list of supported Microsoft Purview classifications can be found here: https://docs.microsoft.com/azure/purview/supported-classifications'
severity: Informational
requiredDataConnectors:
  - connectorId: MicrosoftAzurePurview
    dataTypes:
      - PurviewDataSensitivityLogs
queryFrequency: 1d
queryPeriod: 1d
triggerOperator: gt
triggerThreshold: 0
tactics:
  - Discovery
relevantTechniques:
  - T1087
query: |
  PurviewDataSensitivityLogs
  | where Classification contains "Social Security Number"
  //| where SourceRegion == "westeurope"
  //| where SourceType contains "Amazon"
  | where TimeGenerated > ago(24h)
entityMappings:
  - entityType: AzureResource
    fieldMappings:
      - identifier: ResourceId
        columnName: SourcePath
  - entityType: File
    fieldMappings:
      - identifier: Name
        columnName: AssetName
  - entityType: Account
    fieldMappings:
      - identifier: Name
        columnName: PurviewAccountName
customDetails:
  AssetName: AssetName
  Classification: Classification
  AssetPath: AssetPath
  SourceRegion: SourceRegion
  PurviewAccount: PurviewAccountName
  LastScanTime: AssetLastScanTime
alertDetailsOverride:
  alertDisplayNameFormat: 'Sensitive Data Discovered in the Last 24 Hours by Microsoft Purview'
  alertDescriptionFormat: 'Within the last 24 hours, Microsoft Purview scanned assets that contained classifications. The classifications discovered include {{Classification}}.'
version: 1.0.1
kind: Scheduled

Stages and Predicates

Stage 1: source

PurviewDataSensitivityLogs

Stage 2: where

| where Classification contains "Social Security Number"

Stage 3: where

| where TimeGenerated > ago(24h)

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Classificationcontains
  • Social Security Number