Microsoft Sentinel Analytic Rules
cloudbrothers.infoAzure Sentinel RepoToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Snowflake - Multiple failed queries

Back
Id5f8a81d9-7d27-4ff5-a0ce-4285ee02c2c8
RulenameSnowflake - Multiple failed queries
DescriptionDetects multiple failed queries in short timeframe.
SeverityHigh
TacticsDiscovery
TechniquesT1518
T1082
Required data connectorsSnowflake
KindScheduled
Query frequency1h
Query period1h
Trigger threshold0
Trigger operatorgt
Source Urihttps://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeMultipleFailedQueries.yaml
Version1.0.3
Arm template5f8a81d9-7d27-4ff5-a0ce-4285ee02c2c8.json
Deploy To Azure
let threshold = 50;
Snowflake
| where isnotempty(QueryExecutionStatus)
| where QueryExecutionStatus !~ 'SUCCESS'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername
name: Snowflake - Multiple failed queries
relevantTechniques:
- T1518
- T1082
id: 5f8a81d9-7d27-4ff5-a0ce-4285ee02c2c8
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeMultipleFailedQueries.yaml
requiredDataConnectors:
- dataTypes:
  - Snowflake
  connectorId: Snowflake
version: 1.0.3
severity: High
triggerThreshold: 0
queryPeriod: 1h
entityMappings:
- fieldMappings:
  - identifier: Name
    columnName: AccountCustomEntity
  entityType: Account
queryFrequency: 1h
status: Available
query: |
  let threshold = 50;
  Snowflake
  | where isnotempty(QueryExecutionStatus)
  | where QueryExecutionStatus !~ 'SUCCESS'
  | summarize count() by TargetUsername, bin(TimeGenerated, 5m)
  | where count_ > threshold
  | extend AccountCustomEntity = TargetUsername  
tactics:
- Discovery
kind: Scheduled
description: |
    'Detects multiple failed queries in short timeframe.'
triggerOperator: gt