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