let threshold = 10000;
Snowflake
| where QueryTotalElapsedTime > threshold
| extend AccountCustomEntity = TargetUsername
version: 1.0.1
status: Available
queryPeriod: 1h
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeLongQueryProcessTime.yaml
relevantTechniques:
- T1499
description: |
'Detects query with abnormal proccess time.'
kind: Scheduled
name: Snowflake - Abnormal query process time
queryFrequency: 1h
id: 1376f5e5-855a-4f88-8591-19eba4575a0f
requiredDataConnectors:
- connectorId: Snowflake
dataTypes:
- Snowflake
tactics:
- Impact
triggerThreshold: 0
severity: Medium
query: |
let threshold = 10000;
Snowflake
| where QueryTotalElapsedTime > threshold
| extend AccountCustomEntity = TargetUsername
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
triggerOperator: gt