let ioc_lookBack = 1d;
_Im_FileEvent
| where isnotempty(Hash)
| extend lowerHash=tolower(Hash)
| join kind=inner (
ThreatIntelIndicators
| where ObservableKey contains 'file:hashes'
| where isnotempty(ObservableValue)
| where SourceSystem == "Google Threat Intelligence"
| where TimeGenerated >= ago(ioc_lookBack)
| summarize LatestIndicatorTime = arg_max(TimeGenerated, *) by Id
| where IsActive == true and (isnull(ValidUntil) or ValidUntil > now())
| extend lowerHash=tolower(ObservableValue)
) on lowerHash
| project Hash=ObservableValue, HashType=extract("file:hashes.('[^']*')", 1, ObservableKey), Description=Data.description, Type, TimeGenerated
incidentConfiguration:
groupingConfiguration:
lookbackDuration: 1h
enabled: true
reopenClosedIncident: false
matchingMethod: AllEntities
createIncident: true
id: 8f9cd0e5-b4ab-4821-95e2-1082fcd784c7
query: |
let ioc_lookBack = 1d;
_Im_FileEvent
| where isnotempty(Hash)
| extend lowerHash=tolower(Hash)
| join kind=inner (
ThreatIntelIndicators
| where ObservableKey contains 'file:hashes'
| where isnotempty(ObservableValue)
| where SourceSystem == "Google Threat Intelligence"
| where TimeGenerated >= ago(ioc_lookBack)
| summarize LatestIndicatorTime = arg_max(TimeGenerated, *) by Id
| where IsActive == true and (isnull(ValidUntil) or ValidUntil > now())
| extend lowerHash=tolower(ObservableValue)
) on lowerHash
| project Hash=ObservableValue, HashType=extract("file:hashes.('[^']*')", 1, ObservableKey), Description=Data.description, Type, TimeGenerated
description: |
'Google Threat Intelligence hash correlation.'
requiredDataConnectors:
- connectorId: ThreatIntelligence
dataTypes:
- ThreatIntelIndicators
alertDetailsOverride:
alertDisplayNameFormat: Google Threat Intelligence Match
alertDescriptionFormat: Correlation found from the {{Type}} table.
tactics:
- Execution
queryFrequency: 30m
queryPeriod: 1d
triggerOperator: gt
kind: Scheduled
name: Google Threat Intelligence - Threat Hunting Hash
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/Google Threat Intelligence/Analytic Rules/ThreatHunting/ThreatHuntHash.yaml
version: 1.0.0
eventGroupingSettings:
aggregationKind: AlertPerResult
relevantTechniques:
- T1059
severity: Medium
entityMappings:
- fieldMappings:
- identifier: Value
columnName: Hash
- identifier: Algorithm
columnName: HashType
entityType: FileHash
triggerThreshold: 0