let threshold = 10;
Snowflake
| where EventType =~ 'LOGIN'
| where LoginIsSuccess =~ 'No'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Snowflake/Analytic Rules/SnowflakeMultipleLoginFailure.yaml
queryFrequency: 1h
name: Snowflake - Multiple login failures by user
severity: High
triggerThreshold: 0
query: |
let threshold = 10;
Snowflake
| where EventType =~ 'LOGIN'
| where LoginIsSuccess =~ 'No'
| summarize count() by TargetUsername, bin(TimeGenerated, 5m)
| where count_ > threshold
| extend AccountCustomEntity = TargetUsername
requiredDataConnectors:
- dataTypes:
- Snowflake
connectorId: Snowflake
relevantTechniques:
- T1078
status: Available
triggerOperator: gt
queryPeriod: 1h
description: |
'Detects multiple login failures by user.'
id: e05cc333-d499-430f-907c-7f28a9e4d1b5
version: 1.0.2
entityMappings:
- fieldMappings:
- columnName: AccountCustomEntity
identifier: Name
entityType: Account
kind: Scheduled
tactics:
- InitialAccess