[Rule Tuning] Microsoft Graph Request Email Access by Unusual User and Client#6378
Merged
Merged
Conversation
Contributor
Rule: Tuning - GuidelinesThese guidelines serve as a reminder set of considerations when tuning an existing rule. Documentation and Context
Rule Metadata Checks
Testing and Validation
|
Contributor
There was a problem hiding this comment.
Pull request overview
Tunes the Azure Microsoft Graph email-access New Terms rule to reduce false positives by narrowing the match conditions and keying first-seen detection on additional context.
Changes:
- Removes the OAuth-scope-based
ORmatching so the rule no longer alerts solely on token scopes. - Constrains matching to Graph mail-related
url.pathpatterns across/v1.0and/betafor/meand/users. - Extends the New Terms key to include
source.as.number(ASN) and updates rule metadataupdated_date.
django-88
approved these changes
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Issue link(s):
Summary - What I changed
Tunes the
Microsoft Graph Request Email Access by Unusual User and Clientrule to remove OAuth scopes from theORcondition which caused unexpected false-positives since it matches on any token with those scopes authorized for the client. Linted as well. Merging after #6335 is merged.How To Test
Query can be used in TRADE stack or telemetry stack.
Checklist
bug,enhancement,schema,maintenance,Rule: New,Rule: Deprecation,Rule: Tuning,Hunt: New, orHunt: Tuningso guidelines can be generatedmeta:rapid-mergelabel if planning to merge within 24 hoursContributor checklist