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

Snowflake - Possible privileges discovery activity

Back
Id627a4ff1-036b-4375-a9f9-288d5e1d7d37
RulenameSnowflake - Possible privileges discovery activity
DescriptionDetects possible privileges discovery activity.
SeverityMedium
TacticsDiscovery
TechniquesT1087
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/SnowflakePrivilegesDiscovery.yaml
Version1.0.0
Arm template627a4ff1-036b-4375-a9f9-288d5e1d7d37.json
Deploy To Azure
Snowflake
| where QUERY_TYPE_s =~ 'SHOW'
| where QUERY_TEXT_s has_all ('SHOW', 'ROLES')
| extend AccountCustomEntity = TargetUsername
kind: Scheduled
status: Available
triggerThreshold: 0
relevantTechniques:
- T1087
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakePrivilegesDiscovery.yaml
requiredDataConnectors:
- dataTypes:
  - Snowflake
  connectorId: Snowflake
queryPeriod: 1h
tactics:
- Discovery
severity: Medium
triggerOperator: gt
description: |
    'Detects possible privileges discovery activity.'
query: |
  Snowflake
  | where QUERY_TYPE_s =~ 'SHOW'
  | where QUERY_TEXT_s has_all ('SHOW', 'ROLES')
  | extend AccountCustomEntity = TargetUsername  
name: Snowflake - Possible privileges discovery activity
version: 1.0.0
id: 627a4ff1-036b-4375-a9f9-288d5e1d7d37
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/627a4ff1-036b-4375-a9f9-288d5e1d7d37')]",
      "kind": "Scheduled",
      "name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/627a4ff1-036b-4375-a9f9-288d5e1d7d37')]",
      "properties": {
        "alertRuleTemplateName": "627a4ff1-036b-4375-a9f9-288d5e1d7d37",
        "customDetails": null,
        "description": "'Detects possible privileges discovery activity.'\n",
        "displayName": "Snowflake - Possible privileges 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/SnowflakePrivilegesDiscovery.yaml",
        "query": "Snowflake\n| where QUERY_TYPE_s =~ 'SHOW'\n| where QUERY_TEXT_s has_all ('SHOW', 'ROLES')\n| extend AccountCustomEntity = TargetUsername\n",
        "queryFrequency": "PT1H",
        "queryPeriod": "PT1H",
        "severity": "Medium",
        "status": "Available",
        "suppressionDuration": "PT1H",
        "suppressionEnabled": false,
        "tactics": [
          "Discovery"
        ],
        "techniques": [
          "T1087"
        ],
        "templateVersion": "1.0.0",
        "triggerOperator": "GreaterThan",
        "triggerThreshold": 0
      },
      "type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
    }
  ]
}