let threshold = 10000;
Snowflake
| where TOTAL_ELAPSED_TIME_d > threshold
| extend AccountCustomEntity = TargetUsername
id: 1376f5e5-855a-4f88-8591-19eba4575a0f
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeLongQueryProcessTime.yaml
requiredDataConnectors:
- dataTypes:
- Snowflake
connectorId: Snowflake
description: |
'Detects query with abnormal proccess time.'
severity: Medium
queryPeriod: 1h
kind: Scheduled
tactics:
- Impact
queryFrequency: 1h
query: |
let threshold = 10000;
Snowflake
| where TOTAL_ELAPSED_TIME_d > threshold
| extend AccountCustomEntity = TargetUsername
version: 1.0.0
triggerThreshold: 0
name: Snowflake - Abnormal query process time
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
status: Available
relevantTechniques:
- T1499
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"apiVersion": "2024-01-01-preview",
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/1376f5e5-855a-4f88-8591-19eba4575a0f')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/1376f5e5-855a-4f88-8591-19eba4575a0f')]",
"properties": {
"alertRuleTemplateName": "1376f5e5-855a-4f88-8591-19eba4575a0f",
"customDetails": null,
"description": "'Detects query with abnormal proccess time.'\n",
"displayName": "Snowflake - Abnormal query process time",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "Name"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeLongQueryProcessTime.yaml",
"query": "let threshold = 10000;\nSnowflake\n| where TOTAL_ELAPSED_TIME_d > threshold\n| extend AccountCustomEntity = TargetUsername\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Impact"
],
"techniques": [
"T1499"
],
"templateVersion": "1.0.0",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}