Analytic rule catalog
Snowflake - Possible privileges discovery activity
Back
| Id | 627a4ff1-036b-4375-a9f9-288d5e1d7d37 |
| Rulename | Snowflake - Possible privileges discovery activity |
| Description | Detects possible privileges discovery activity. |
| Severity | Medium |
| Tactics | Discovery |
| Techniques | T1087 |
| Required data connectors | Snowflake |
| Kind | Scheduled |
| Query frequency | 1h |
| Query period | 1h |
| Trigger threshold | 0 |
| Trigger operator | gt |
| Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic%20Rules/SnowflakePrivilegesDiscovery.yaml |
| Version | 1.0.1 |
| Arm template | 627a4ff1-036b-4375-a9f9-288d5e1d7d37.json |
Snowflake
| where QueryType =~ 'SHOW'
| where QueryText has_all ('SHOW', 'ROLES')
| extend AccountCustomEntity = TargetUsername
relevantTechniques:
- T1087
queryFrequency: 1h
status: Available
query: |
Snowflake
| where QueryType =~ 'SHOW'
| where QueryText has_all ('SHOW', 'ROLES')
| extend AccountCustomEntity = TargetUsername
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
name: Snowflake - Possible privileges discovery activity
triggerOperator: gt
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic%20Rules/SnowflakePrivilegesDiscovery.yaml
description: |
'Detects possible privileges discovery activity.'
kind: Scheduled
tactics:
- Discovery
id: 627a4ff1-036b-4375-a9f9-288d5e1d7d37
version: 1.0.1
requiredDataConnectors:
- dataTypes:
- Snowflake
connectorId: Snowflake
severity: Medium
queryPeriod: 1h
triggerThreshold: 0
{
"$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/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%20Rules/SnowflakePrivilegesDiscovery.yaml",
"query": "Snowflake\n| where QueryType =~ 'SHOW'\n| where QueryText has_all ('SHOW', 'ROLES')\n| extend AccountCustomEntity = TargetUsername\n",
"queryFrequency": "PT1H",
"queryPeriod": "PT1H",
"severity": "Medium",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"Discovery"
],
"techniques": [
"T1087"
],
"templateVersion": "1.0.1",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}