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

Snowflake - Possible discovery activity

Back
Id09b8dfc7-87b0-4215-b34b-bab363d685cb
RulenameSnowflake - Possible discovery activity
DescriptionDetects possible discovery activity.
SeverityMedium
TacticsDiscovery
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/SnowflakeDiscoveryActivity.yaml
Version1.0.0
Arm template09b8dfc7-87b0-4215-b34b-bab363d685cb.json
Deploy To Azure
let threshold = 20;
Snowflake
| where QUERY_TYPE_s =~ 'SHOW'
| where EXECUTION_STATUS_s =~ 'SUCCESS'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername
query: |
  let threshold = 20;
  Snowflake
  | where QUERY_TYPE_s =~ 'SHOW'
  | where EXECUTION_STATUS_s =~ 'SUCCESS'
  | summarize count() by TargetUsername, bin(TimeGenerated, 5m)
  | where count_ > threshold
  | extend AccountCustomEntity = TargetUsername  
name: Snowflake - Possible discovery activity
requiredDataConnectors:
- connectorId: Snowflake
  dataTypes:
  - Snowflake
entityMappings:
- entityType: Account
  fieldMappings:
  - identifier: Name
    columnName: AccountCustomEntity
description: |
    'Detects possible discovery activity.'
status: Available
kind: Scheduled
severity: Medium
triggerThreshold: 0
queryPeriod: 1h
queryFrequency: 1h
triggerOperator: gt
tactics:
- Discovery
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeDiscoveryActivity.yaml
id: 09b8dfc7-87b0-4215-b34b-bab363d685cb
version: 1.0.0
{
  "$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/09b8dfc7-87b0-4215-b34b-bab363d685cb')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/09b8dfc7-87b0-4215-b34b-bab363d685cb')]",
      "properties": {
        "alertRuleTemplateName": "09b8dfc7-87b0-4215-b34b-bab363d685cb",
        "customDetails": null,
        "description": "'Detects possible discovery activity.'\n",
        "displayName": "Snowflake - Possible discovery activity",
        "enabled": true,
        "entityMappings": [
          {
            "entityType": "Account",
            "fieldMappings": [
              {
                "columnName": "AccountCustomEntity",
                "identifier": "Name"
              }
            ]
          }
        ],
        "OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeDiscoveryActivity.yaml",
        "query": "let threshold = 20;\nSnowflake\n| where QUERY_TYPE_s =~ 'SHOW'\n| where EXECUTION_STATUS_s =~ 'SUCCESS'\n| summarize count() by TargetUsername, bin(TimeGenerated, 5m)\n| where count_ > threshold\n| extend AccountCustomEntity = TargetUsername\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Discovery"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}