[New Rule] Microsoft Entra ID Impossible Travel Sign-in#6150
Merged
terrancedejesus merged 10 commits intoJul 7, 2026
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
|
terrancedejesus
marked this pull request as ready for review
May 18, 2026 13:18
terrancedejesus
marked this pull request as draft
May 22, 2026 18:19
terrancedejesus
marked this pull request as ready for review
June 1, 2026 16:57
Contributor
Author
|
|
bryans3c
approved these changes
Jun 18, 2026
bryans3c
left a comment
Contributor
There was a problem hiding this comment.
Approving. Honest path design is solid. Nice job!
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new ES|QL detection rule to identify “impossible travel” patterns in Microsoft Entra ID interactive sign-in logs by aggregating sign-ins per user across regions and alerting when implied travel speed and distance exceed configured thresholds.
Changes:
- Introduces a new Azure integration rule for impossible-travel sign-ins using ES|QL
stats+ geo distance calculations. - Adds a detailed investigation guide, alert suppression, and MITRE ATT&CK mappings for Initial Access and Credential Access.
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
Adds an impossible travel detection rule for Entra ID Sign-In logs. Matches on AitM phishing kits from recent research. Includes >=2 regions or countries as kits may proxy through the same country as phished user. Relies on GeoIP enrichments to mathematically identify anomalies between lon/lan distance and travel time.
Matches on recent Kali365 testing as well.

How To Test
Query can be run on the TRADE stack (see above) or against any telemetry stack with the
logs-azure.signinlogs-*data stream. Lookback duration materially affects results becausetravel_kmh = distance_km × 60 / window_minutes, a longer lookback inflates the time denominator faster than the geographic spread, lowering implied speeds and dropping matches. Empirically a 24h lookback may surface ~8 candidates that drop to ~1 over 7d as normal global activity dilutes the speed calculation.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