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