Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Rule Tuning] Tune Attempts to Brute Force a Microsoft 365 User Account #3860

Merged
merged 9 commits into from
Jul 8, 2024

Conversation

terrancedejesus
Copy link
Contributor

Issues

Summary

This pull request tunes the 'Attempts to Brute Force a Microsoft 365 User Account' rule by doing the following:

  1. Converts it to use ES|QL query language
  2. Adds exclusion to login error for CmsiInterrupt
  3. Adds inclusion filter only for specific target user types that represent a user or registered application
  4. Adds inclusion filter to include login in the request type, which excludes OAuth:Token failed logins for registered applications that typically would not be reported for external brute force attempts
  5. Aggregates by target ID and login error

The big differences here are the inclusions to remove some false-positives, but also that we are aggregating on the target, not the actor. The target indicates whom is attempted to be logged into, vs whom is attempting it, which maybe external.

Ref: https://learn.microsoft.com/en-us/purview/audit-log-detailed-properties
"The user that the action (identified in the Operation property) was performed on. For example, if a guest is added to SharePoint or a Microsoft Team, that user would be listed in this property."

Screenshot 2024-07-01 at 4 52 21 PM

@terrancedejesus terrancedejesus self-assigned this Jul 1, 2024
@terrancedejesus terrancedejesus marked this pull request as ready for review July 1, 2024 20:53
@terrancedejesus terrancedejesus changed the title [Rule Tuning] Tune 'Attempts to Brute Force a Microsoft 365 User Account' [Rule Tuning] Tune Attempts to Brute Force a Microsoft 365 User Account Jul 1, 2024
@terrancedejesus terrancedejesus merged commit 7f3c977 into main Jul 8, 2024
9 checks passed
@terrancedejesus terrancedejesus deleted the rule-tuning-o365-brute-force-user-key branch July 8, 2024 17:07
protectionsmachine pushed a commit that referenced this pull request Jul 8, 2024
…unt` (#3860)

* tuning 'Attempts to Brute Force a Microsoft 365 User Account'

* added reference

---------

Co-authored-by: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com>
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>

(cherry picked from commit 7f3c977)
protectionsmachine pushed a commit that referenced this pull request Jul 8, 2024
…unt` (#3860)

* tuning 'Attempts to Brute Force a Microsoft 365 User Account'

* added reference

---------

Co-authored-by: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com>
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>

(cherry picked from commit 7f3c977)
protectionsmachine pushed a commit that referenced this pull request Jul 8, 2024
…unt` (#3860)

* tuning 'Attempts to Brute Force a Microsoft 365 User Account'

* added reference

---------

Co-authored-by: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com>
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>

(cherry picked from commit 7f3c977)
protectionsmachine pushed a commit that referenced this pull request Jul 8, 2024
…unt` (#3860)

* tuning 'Attempts to Brute Force a Microsoft 365 User Account'

* added reference

---------

Co-authored-by: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com>
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>

(cherry picked from commit 7f3c977)
protectionsmachine pushed a commit that referenced this pull request Jul 8, 2024
…unt` (#3860)

* tuning 'Attempts to Brute Force a Microsoft 365 User Account'

* added reference

---------

Co-authored-by: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com>
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>

(cherry picked from commit 7f3c977)
protectionsmachine pushed a commit that referenced this pull request Jul 8, 2024
…unt` (#3860)

* tuning 'Attempts to Brute Force a Microsoft 365 User Account'

* added reference

---------

Co-authored-by: shashank-elastic <91139415+shashank-elastic@users.noreply.github.com>
Co-authored-by: Mika Ayenson <Mikaayenson@users.noreply.github.com>

(cherry picked from commit 7f3c977)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Rule Tuning] Attempts to Brute Force a Microsoft 365 User Account
5 participants