Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Snowflake - Abnormal query process time

Back
Id1376f5e5-855a-4f88-8591-19eba4575a0f
RulenameSnowflake - Abnormal query process time
DescriptionDetects query with abnormal proccess time.
SeverityMedium
TacticsImpact
TechniquesT1499
Required data connectorsSnowflake
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeLongQueryProcessTime.yaml
Version1.0.0
Arm template1376f5e5-855a-4f88-8591-19eba4575a0f.json
Deploy To Azure
let threshold = 10000;
Snowflake
| where TOTAL_ELAPSED_TIME_d > threshold
| extend AccountCustomEntity = TargetUsername
kind: Scheduled
status: Available
triggerThreshold: 0
relevantTechniques:
- T1499
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeLongQueryProcessTime.yaml
requiredDataConnectors:
- dataTypes:
  - Snowflake
  connectorId: Snowflake
queryPeriod: 1h
tactics:
- Impact
severity: Medium
triggerOperator: gt
description: |
    'Detects query with abnormal proccess time.'
query: |
  let threshold = 10000;
  Snowflake
  | where TOTAL_ELAPSED_TIME_d > threshold
  | extend AccountCustomEntity = TargetUsername  
name: Snowflake - Abnormal query process time
version: 1.0.0
id: 1376f5e5-855a-4f88-8591-19eba4575a0f
queryFrequency: 1h
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: Name
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "workspace": {
      "type": "String"
    }
  },
  "resources": [
    {
      "apiVersion": "2023-02-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",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Impact"
        ],
        "techniques": [
          "T1499"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}