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