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