Snowflake
| where QueryType =~ 'SELECT'
| where QueryExecutionStatus =~ 'SUCCESS'
| where QueryText startswith @'SELECT *'
| extend AccountCustomEntity = TargetUsername
name: Snowflake - Unusual query
kind: Scheduled
tactics:
- Collection
triggerThreshold: 0
triggerOperator: gt
version: 1.0.1
status: Available
queryFrequency: 1h
id: 1dd1d9e5-3ebf-43cb-be07-6082d5eabe79
requiredDataConnectors:
- connectorId: Snowflake
dataTypes:
- Snowflake
relevantTechniques:
- T1119
description: |
'Detects unusual query.'
entityMappings:
- entityType: Account
fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeUnusualQuery.yaml
queryPeriod: 1h
severity: Medium
query: |
Snowflake
| where QueryType =~ 'SELECT'
| where QueryExecutionStatus =~ 'SUCCESS'
| where QueryText startswith @'SELECT *'
| extend AccountCustomEntity = TargetUsername