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