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

Snowflake - Unusual query

Back
Id1dd1d9e5-3ebf-43cb-be07-6082d5eabe79
RulenameSnowflake - Unusual query
DescriptionDetects unusual query.
SeverityMedium
TacticsCollection
TechniquesT1119
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/SnowflakeUnusualQuery.yaml
Version1.0.0
Arm template1dd1d9e5-3ebf-43cb-be07-6082d5eabe79.json
Deploy To Azure
Snowflake
| where QUERY_TYPE_s =~ 'SELECT'
| where EXECUTION_STATUS_s =~ 'SUCCESS'
| where QUERY_TEXT_s startswith @'SELECT *'
| extend AccountCustomEntity = TargetUsername
name: Snowflake - Unusual query
status: Available
triggerThreshold: 0
severity: Medium
tactics:
- Collection
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeUnusualQuery.yaml
entityMappings:
- entityType: Account
  fieldMappings:
  - columnName: AccountCustomEntity
    identifier: Name
queryPeriod: 1h
queryFrequency: 1h
version: 1.0.0
triggerOperator: gt
description: |
    'Detects unusual query.'
query: |
  Snowflake
  | where QUERY_TYPE_s =~ 'SELECT'
  | where EXECUTION_STATUS_s =~ 'SUCCESS'
  | where QUERY_TEXT_s startswith @'SELECT *'
  | extend AccountCustomEntity = TargetUsername  
relevantTechniques:
- T1119
id: 1dd1d9e5-3ebf-43cb-be07-6082d5eabe79
requiredDataConnectors:
- dataTypes:
  - Snowflake
  connectorId: Snowflake
kind: Scheduled
{
  "$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/1dd1d9e5-3ebf-43cb-be07-6082d5eabe79')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/1dd1d9e5-3ebf-43cb-be07-6082d5eabe79')]",
      "properties": {
        "alertRuleTemplateName": "1dd1d9e5-3ebf-43cb-be07-6082d5eabe79",
        "customDetails": null,
        "description": "'Detects unusual query.'\n",
        "displayName": "Snowflake - Unusual query",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "Name"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeUnusualQuery.yaml",
        "query": "Snowflake\n| where QUERY_TYPE_s =~ 'SELECT'\n| where EXECUTION_STATUS_s =~ 'SUCCESS'\n| where QUERY_TEXT_s startswith @'SELECT *'\n| extend AccountCustomEntity = TargetUsername\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Collection"
        ],
        "techniques": [
          "T1119"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}