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