Skip to content

Commit 88d2d78

Browse files
committed
Order Entra brute-force series before anomaly calc
Adds an explicit `sort by TimeGenerated asc` before building `make_list` arrays in the Entra authenticated Windows device brute-force analytic rule, ensuring time-series values are ordered correctly for anomaly decomposition. Bumps the rule version from 2.0.2 to 2.0.3 to reflect the query update.
1 parent 9f01bce commit 88d2d78

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Solutions/Microsoft Entra ID/Analytic Rules/BruteForceAgainstanEntraAuthenticatedWindowsDevice.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ query: |
2626
by bin(TimeGenerated, authenticationWindow), UserDisplayName, UserPrincipalName
2727
| extend FailureSuccessDiff = FailureCount - SuccessCount
2828
| where FailureSuccessDiff > 0
29+
| sort by TimeGenerated asc
2930
| summarize Diff = make_list(FailureSuccessDiff, 10000), TimeStamp = make_list(TimeGenerated, 10000) by UserDisplayName, UserPrincipalName//, tostring(IPAddresses)
3031
| extend (Anomalies, Score, Baseline) = series_decompose_anomalies(Diff, sensitivity, -1, 'linefit')
3132
| mv-expand Diff to typeof(double), TimeStamp to typeof(datetime), Anomalies to typeof(double), Score to typeof(double), Baseline to typeof(long)
@@ -66,5 +67,5 @@ entityMappings:
6667
fieldMappings:
6768
- identifier: Address
6869
columnName: IPAddressFirst
69-
version: 2.0.2
70+
version: 2.0.3
7071
kind: Scheduled

0 commit comments

Comments
 (0)