Skip to content

Commit 12063ce

Browse files
authored
Merge pull request #14690 from Azure/v-sabiraj-updatethreatintellAR
Normalize URL matching in AuditLogs TI rule
2 parents 8be1c3b + e858596 commit 12063ce

5 files changed

Lines changed: 120 additions & 119 deletions

File tree

Solutions/Threat Intelligence (NEW)/Analytic Rules/URLEntity_AuditLogs.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ query: |
3030
let AuditEvents = materialize(AuditLogs
3131
| where TimeGenerated >= ago(dt_lookBack)
3232
// Extract the URL that is contained within the JSON data
33-
| extend Url = extract("(http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+)", 1,tostring(TargetResources))
33+
| extend Url = tolower(extract("(http[s]?://[^\\s\\\"\\\\]+)", 1, tostring(TargetResources)))
3434
| extend userPrincipalName = tostring(parse_json(tostring(InitiatedBy.user)).userPrincipalName)
3535
| extend TargetResourceDisplayName = tostring(TargetResources[0].displayName));
3636
let AuditUrls = AuditEvents | distinct Url = tolower(Url) | summarize make_list(Url);
3737
ThreatIntelIndicators
3838
//extract key part of kv pair
3939
| extend IndicatorType = replace(@"\[|\]|\""", "", tostring(split(ObservableKey, ":", 0)))
4040
| where IndicatorType == "url"
41-
| extend Url = toupper(ObservableValue)
41+
| extend Url = tolower(ObservableValue)
4242
| extend TrafficLightProtocolLevel = tostring(parse_json(AdditionalFields).TLPLevel)
4343
| where TimeGenerated >= ago(ioc_lookBack)
4444
| where tolower(Url) in (AuditUrls)
@@ -78,5 +78,5 @@ entityMappings:
7878
fieldMappings:
7979
- identifier: Url
8080
columnName: Url
81-
version: 1.2.10
81+
version: 1.2.11
8282
kind: Scheduled

Solutions/Threat Intelligence (NEW)/Data/Solution_ThreatIntelligenceUpdated.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
],
7777
"Metadata": "SolutionMetadata.json",
7878
"BasePath": "C:\\GitHub\\Azure-Sentinel\\Solutions\\Threat Intelligence (NEW)\\",
79-
"Version": "3.0.19",
79+
"Version": "3.0.20",
8080
"TemplateSpec": false,
8181
"StaticDataConnectorIds": [
8282
"ThreatIntelligenceTaxii",
60.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)