let threshold = 10;
Snowflake
| where QueryType =~ 'DROP'
| where QueryExecutionStatus =~ 'SUCCESS'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername
description: |
'Detects possible data destruction.'
kind: Scheduled
queryFrequency: 1h
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakePossibleDataDestruction.yaml
status: Available
triggerOperator: gt
severity: Medium
relevantTechniques:
- T1485
triggerThreshold: 0
name: Snowflake - Possible data destraction
entityMappings:
- fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
entityType: Account
requiredDataConnectors:
- connectorId: Snowflake
dataTypes:
- Snowflake
id: c2f93727-e4b0-4cb9-8f80-f52ebbd96ece
queryPeriod: 1h
tactics:
- Impact
version: 1.0.1
query: |
let threshold = 10;
Snowflake
| where QueryType =~ 'DROP'
| where QueryExecutionStatus =~ 'SUCCESS'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername