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