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