[New Rule] Entra ID AiTM Phishing-Kit Chain Detected#6359
Open
terrancedejesus wants to merge 2 commits into
Open
[New Rule] Entra ID AiTM Phishing-Kit Chain Detected#6359terrancedejesus wants to merge 2 commits into
terrancedejesus wants to merge 2 commits into
Conversation
Contributor
Rule: New - GuidelinesThese guidelines serve as a reminder set of considerations when proposing a new rule. Documentation and Context
Rule Metadata Checks
New BBR Rules
Testing and Validation
|
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Microsoft Entra ID detection rule intended to identify an AiTM phishing-kit post-compromise persistence chain by correlating broker sign-in to Device Registration Service, device registration activity, and subsequent PRT-based access to other resources.
Changes:
- Introduces a new EQL sequence rule correlating Sign-In Logs and Audit Logs for a suspected device-registration → PRT-use chain.
- Adds an investigation guide with triage steps, false-positive guidance, and response actions.
- Adds ATT&CK mappings and tags for identity compromise / persistence behavior.
| data_stream.dataset == "azure.auditlogs" and | ||
| azure.auditlogs.operation_name == "Register device" and | ||
| azure.auditlogs.properties.initiated_by.user.id != null and | ||
| azure.auditlogs.properties.target_resources.`0`.display_name like "DESKTOP-*" and |
| type = "eql" | ||
|
|
||
| query = ''' | ||
| sequence with maxspan=3m |
Comment on lines
+91
to
+93
| "Tactic: Persistence", | ||
| "Tactic: Credential Access", | ||
| "Resources: Investigation Guide", |
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
Identifies a Microsoft Entra ID identity-compromise chain in which a single user, within a 10-minute window, authenticates to the Device Registration Service through the Microsoft Authentication Broker (MAB) client, registers a device, and then uses the resulting Primary Refresh Token (PRT) to access a resource other than the Device Registration Service. This sequence is the core post-adversary-in-the-middle (AiTM) persistence pattern used by phishing kits such as Tycoon2FA and Kali365: after capturing a victim session, the kit registers an Azure AD-joined device to obtain a device-bound PRT, which survives user-level session revocation and password resets and grants trusted, MFA-free access. Correlating the broker sign-in, the device-registration audit event, and the follow-on PRT sign-in for the same user within a short window is a high-fidelity indicator of active account takeover.
How To Test
Query can be used in TRADE 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