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