-
Notifications
You must be signed in to change notification settings - Fork 612
[Rule Tuning] Entra ID OAuth PRT Issuance to Non-Managed Device Detected #5464
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
base: main
Are you sure you want to change the base?
Conversation
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
|
| ### Investigating Entra ID OAuth Primary Refresh Token (PRT) Issuance via Refresh Token (RT) Detected | ||
| ### Investigating Entra ID OAuth PRT Issuance to Non-Managed Device Detected | ||
| This rule identifies a sequence where a Microsoft Entra ID user signs in using a refresh token issued to the Microsoft Authentication Broker (MAB), followed by a sign-in using a Primary Refresh Token (PRT) from the same device. This behavior is uncommon for normal user activity and strongly suggests adversarial behavior, particularly when paired with OAuth phishing and device registration tools like ROADtx. The use of PRT shortly after a refresh token sign-in typically indicates the attacker has obtained device trust and is now using the PRT to impersonate a fully compliant user+device pair. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This part of the guide that talks about PRT sounds like its focusing on impersonating compliant device/user. Looks like we're drilling down into non-managed devices. We can probably clarify this.
Fixes #5463
Pull Request
Issue link(s):
Summary - What I changed
Tunes the
Entra ID OAuth PRT Issuance to Non-Managed Device Detectedrule to alert only for non-managed device instances of PRT issuance from RTs. Please see issue for more details. Adjusted the rule name as well to be more concise and accurate to what activity is being detected.How To Test
Query can be used in TRADE stack (+1 year) for seeing full raw data. Alert telemetry is available as well in the alert stack for both EQL sequence subqueries.
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