let threshold = 20;
Snowflake
| where QueryType =~ 'SHOW'
| where QueryExecutionStatus =~ 'SUCCESS'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername
version: 1.0.2
queryFrequency: 1h
tactics:
- Discovery
relevantTechniques:
- T1526
triggerOperator: gt
name: Snowflake - Possible discovery activity
description: |
'Detects possible discovery activity.'
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
status: Available
id: 09b8dfc7-87b0-4215-b34b-bab363d685cb
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeDiscoveryActivity.yaml
kind: Scheduled
triggerThreshold: 0
queryPeriod: 1h
requiredDataConnectors:
- connectorId: Snowflake
dataTypes:
- Snowflake
severity: Medium
query: |
let threshold = 20;
Snowflake
| where QueryType =~ 'SHOW'
| where QueryExecutionStatus =~ 'SUCCESS'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername