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