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