Snowflake
| where QueryType =~ 'SHOW'
| where QueryText has_all ('SHOW', 'ROLES')
| extend AccountCustomEntity = TargetUsername
description: |
'Detects possible privileges discovery activity.'
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakePrivilegesDiscovery.yaml
requiredDataConnectors:
- dataTypes:
- Snowflake
connectorId: Snowflake
query: |
Snowflake
| where QueryType =~ 'SHOW'
| where QueryText has_all ('SHOW', 'ROLES')
| extend AccountCustomEntity = TargetUsername
triggerThreshold: 0
name: Snowflake - Possible privileges discovery activity
relevantTechniques:
- T1087
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
tactics:
- Discovery
queryPeriod: 1h
severity: Medium
status: Available
queryFrequency: 1h
id: 627a4ff1-036b-4375-a9f9-288d5e1d7d37
kind: Scheduled
version: 1.0.1
triggerOperator: gt