Skip to content

Commit

Permalink
[Rule Tuning] Ignore "Not Available" in o365.audit.UserId for Micro…
Browse files Browse the repository at this point in the history
…soft 365 Rules (#4105)

* tuning M365 impossible travel activity rules

* added additional filters for user type logins

* adjusted updated date

(cherry picked from commit ef4e433)
  • Loading branch information
terrancedejesus authored and github-actions[bot] committed Sep 28, 2024
1 parent f68958a commit 12b0c39
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ integration = ["o365"]
maturity = "production"
min_stack_comments = "ES|QL not available until 8.13.0 in technical preview."
min_stack_version = "8.13.0"
updated_date = "2024/09/05"
updated_date = "2024/09/25"

[rule]
author = ["Elastic", "Willem D'Haese", "Austin Songer"]
Expand Down Expand Up @@ -65,6 +65,10 @@ from logs-o365.audit-*
"UserStrongAuthExpired",
"CmsiInterrupt"
)
// ignore unavailable
and o365.audit.UserId != "Not Available"
// filters out non user or application logins based on target
and o365.audit.Target.Type in ("0", "2", "3", "5", "6", "10")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
creation_date = "2024/09/04"
integration = ["o365"]
maturity = "production"
updated_date = "2024/09/04"
updated_date = "2024/09/25"

[rule]
author = ["Elastic"]
Expand Down Expand Up @@ -36,6 +36,8 @@ event.dataset: "o365.audit"
and event.provider: "AzureActiveDirectory"
and event.action: "UserLoggedIn"
and event.outcome: "success"
and not o365.audit.UserId: "Not Available"
and o365.audit.Target.Type: ("0" or "2" or "3" or "5" or "6" or "10")
'''


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
creation_date = "2024/09/04"
integration = ["o365"]
maturity = "production"
updated_date = "2024/09/04"
updated_date = "2024/09/25"

[rule]
author = ["Elastic"]
Expand Down Expand Up @@ -34,6 +34,8 @@ event.dataset: "o365.audit"
and event.provider: "AzureActiveDirectory"
and event.action: "UserLoggedIn"
and event.outcome: "success"
and not o365.audit.UserId: "Not Available"
and o365.audit.Target.Type: ("0" or "2" or "3" or "5" or "6" or "10")
'''


Expand Down

0 comments on commit 12b0c39

Please sign in to comment.