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