Entra ID & AiTM Detection · T1078

Impossible Travel vs. VPN False Positives: ASN & IP Triage in Entra Sign-In Logs

Direct Answer (Key Forensic Takeaway)

Genuine Impossible Travel account takeovers don’t just shift coordinates—they shift Autonomous System Number (ASN), device compliance, and browser UserAgent simultaneously (e.g., jumping from a US Windows Edge workstation to a European VPS running axios or OWA MailItemsAccessed). Corporate VPNs and Apple iCloud Private Relay stay aligned with known ASNs and consistent managed devices.

Detection Objective & Threat Scope

Impossible travel alerts are the single biggest source of SOC alert fatigue in cloud identity monitoring. Remote employees running split-tunnel VPNs, Cloudflare WARP, Apple iCloud Private Relay, or 5G carrier gateways hop across state and national IP geolocation databases every day.

Blindly treating every location shift as a breach wastes hours—yet blindly dismissing Impossible Travel as "probably a VPN" guarantees you miss real AiTM cookie replays. The key lies in triangulating ASN, deviceId/compliance, UserAgent, and immediate post-login Exchange actions.

AuditVane rule `AV-009` dynamically tracks distinct countries and non-private source IPs per user across all merged Purview CSV and Entra JSON files, surfacing any actor operating across `>= 2` countries or `>= 3` external IPs. From there, comparing the flagged rows inside the Event Inspector makes false-positive triage fast and objective.

Check four context fields before dismissing or escalating: `autonomousSystemNumber` (known corporate SASE/VPN ASN vs. rented hosting provider like DigitalOcean, OVH, M247, or foreign residential proxy), `deviceDetail.isCompliant` / `deviceId`, `userAgent` / `ClientInfoString`, and whether Inbox Rules (`AV-001`) or MFA additions (`AV-004`) happened right after the IP change.

1. RAW TELEMETRY Entra ID & AiTM Detection T1078 2. CLIENT-SIDE PARSE AuditVane Engine impossible travel false positive A 0 Bytes Uploaded 3. SOC OUTCOME Scoped Containment IOCs · CSV · KQL
Local browser DFIR workflow for impossible travel false positive ASN Entra ID (T1078)
AdSense-Ready In-Article Placement

Forensic Telemetry Fields & High-Signal Indicators

Telemetry Field / Pattern Meaning in M365 / Entra High-Signal Threat Indicator
autonomousSystemNumber (ASN)Network operator owning the IP blockCorporate SASE/ISP ASN vs. hosting/VPS or Tor ASN
deviceDetail.isCompliant / deviceIdManaged laptop hardware fingerprintConsistent managed deviceId favors VPN/roaming
userAgent / ClientInfoStringHTTP client signatureSudden swap from Edg/131 to axios/python proves attack
location.city / countryOrRegionMaxMind/Microsoft IP geolocationCan lag behind mobile carrier IP reassignments
Downstream Exchange/Entra EditsMailItemsAccessed, InboxRule, MFA AddNever ignore geo-shift followed by AV-001 or AV-004
AuditVane AV-009 Dynamic CorrelationCounts unique countries & external IPs/actorWorks across merged Purview + Entra logs automatically

Triage Distinct Countries, ASNs & User-Agents per Actor in KQL

SigninLogs
| where TimeGenerated > ago(7d) and ResultType == 0
| extend Country = tostring(LocationDetails.countryOrRegion), ASN = tostring(NetworkLocationDetails)
| summarize Countries=make_set(Country), IPs=make_set(IPAddress), UAs=make_set(UserAgent), CompliantFlags=make_set(DeviceDetail.isCompliant) by UserPrincipalName
| where array_length(Countries) > 1 or array_length(IPs) >= 3

Sample Multi-Location Triage Table

UserPrincipalName             Countries          IPs                                   UAs                                          CompliantFlags
-----------------             ---------          ---                                   ---                                          --------------
hr.lead@contoso.invalid       ["US","DE","RO"]   ["203.0.113.77","194.26.135.210",...] ["Mozilla/5.0...","python-requests","curl"]  [true,false]

Benign VPN/Relay Hop vs. True Impossible Travel Compromise

Context SignalCorporate VPN / iCloud Private RelayMalicious Proxy / AiTM Replay
ASN / Network OwnerKnown Zscaler, Palo Alto, Cloudflare, Apple Relay, local ISPHosting/VPS datacenter (M247, OVH, Contabo) or foreign residential ISP
Device StateSame Entra deviceId / compliant Windows or iOS deviceUnmanaged / unknown device (`isCompliant: false`)
UserAgent ContinuityMatches baseline Safari/Edge/OutlookSwitches OS or reveals scripted library (python/axios/curl)
Post-Login BehaviorOrdinary Outlook/Teams workImmediate My Sign-Ins, InboxRule, or sensitive keyword search

Multi-Country ASN & Compliance Divergence in Entra JSON

{
  "userPrincipalName": "exec@contoso-demo.invalid",
  "ipAddress": "185.220.101.45",
  "autonomousSystemNumber": 205100,
  "location": { "city": "Amsterdam", "countryOrRegion": "NL" },
  "deviceDetail": { "browser": "Edge 131", "isCompliant": false, "isManaged": false },
  "userAgent": "axios/1.7.7"
}

Notice how looking strictly at city/country isn’t enough—combining ASN (`205100`), `isCompliant: false`, and `axios/1.7.7` removes any possibility of a harmless corporate VPN false positive.

Real-World Incident Walkthrough

Two alerts fire on the same morning. User A hops from Dallas (AT&T Wireless) to Ashburn, VA (Zscaler Cloud ASN `22616`) within 3 minutes—same corporate Windows `deviceId`, `isCompliant: true`, same `Edg/131` browser, zero rule edits -> clean corporate SASE egress.

User B hops from Austin, TX to Frankfurt, DE (`194.26.135.210`, hosting ASN) and Bucharest, RO (`45.155.205.19`) within 9 minutes—`isCompliant: false`, `python-requests/2.32.3` + `curl/8.7.1`, immediately opening `My Sign-Ins` -> confirmed AiTM takeover.

Step-by-Step Triage, Containment & Verification

  1. Load Entra Sign-In JSON and Purview UAL CSV together into AuditVane and click AV-009 (Multi-Country / IP Hopping).
  2. Compare every IP in AuditVane’s Top Source IPs chart against your organization’s documented SASE/VPN egress ranges.
  3. Open two contrasting rows (home/office baseline vs. unfamiliar IP) in the Event Inspector to compare `deviceDetail.deviceId`, `isCompliant`, and `UserAgent`.
  4. Check the UTC timeline immediately following the foreign IP event for AV-001 (InboxRule), AV-004 (MFA), AV-005 (OAuth), or AV-007 (Search/MailItemsAccessed).
  5. Verify travel or personal VPN usage directly with the user out-of-band if indicators look ambiguous.
  6. Maintain a documented Named Location allowlist of approved corporate VPN egress CIDRs in Entra ID to suppress future alert noise.

How to Verify Containment Completed Cleanly

  • Corporate VPN / SASE egress IPs documented and separated from attacker infrastructure.
  • Every non-compliant multi-country IP verified benign or contained.
  • Any malicious proxy/VPS IPs added to IOC block lists (see IOC guide).

Analyst Blind Spots, Licensing Quirks & False Positives

Do NOT dismiss an Impossible Travel or unfamiliar login alert solely because the geolocation happens to match the victim’s own home country or city! Modern Tycoon/Evilginx operators routinely rent residential SOCKS proxies in the exact US/UK/EU state of their victim specifically to evade geo-fencing.

Conversely, Microsoft Edge’s built-in "Microsoft Edge Secure Network" or Apple iCloud Private Relay can route Safari/Edge traffic through nearby regional relay ASNs—confirm approved privacy proxy policies before escalating.

Frequently Asked Questions

Why do modern BEC attackers rent domestic residential proxies?

Using a proxy inside the victim’s own country or metro area bypasses simple country-blocking Conditional Access policies and blends into ordinary city geolocations.

How does AuditVane rule AV-009 work?

AV-009 dynamically aggregates distinct country codes and non-private external IPs per actor across your entire loaded dataset, flagging accounts with >=2 countries or >=3 distinct IPs.

What makes a same-country IP still clearly malicious?

Sudden shifts in UserAgent, unmanaged deviceDetail (`isCompliant: false`), hosting/proxy ASN ownership, or immediate InboxRule/MFA tampering.

Should I exclude corporate VPN IPs from Named Locations?

Yes—defining corporate office and SASE VPN egress IPs as Trusted Named Locations in Entra ID cuts noise dramatically and prevents false Impossible Travel alerts.

Related Forensics Guides