Impossible Travel vs. VPN False Positives: ASN & IP Triage in Entra Sign-In Logs
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.
Forensic Telemetry Fields & High-Signal Indicators
| Telemetry Field / Pattern | Meaning in M365 / Entra | High-Signal Threat Indicator |
|---|---|---|
autonomousSystemNumber (ASN) | Network operator owning the IP block | Corporate SASE/ISP ASN vs. hosting/VPS or Tor ASN |
deviceDetail.isCompliant / deviceId | Managed laptop hardware fingerprint | Consistent managed deviceId favors VPN/roaming |
userAgent / ClientInfoString | HTTP client signature | Sudden swap from Edg/131 to axios/python proves attack |
location.city / countryOrRegion | MaxMind/Microsoft IP geolocation | Can lag behind mobile carrier IP reassignments |
Downstream Exchange/Entra Edits | MailItemsAccessed, InboxRule, MFA Add | Never ignore geo-shift followed by AV-001 or AV-004 |
AuditVane AV-009 Dynamic Correlation | Counts unique countries & external IPs/actor | Works 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 Signal | Corporate VPN / iCloud Private Relay | Malicious Proxy / AiTM Replay |
|---|---|---|
| ASN / Network Owner | Known Zscaler, Palo Alto, Cloudflare, Apple Relay, local ISP | Hosting/VPS datacenter (M247, OVH, Contabo) or foreign residential ISP |
| Device State | Same Entra deviceId / compliant Windows or iOS device | Unmanaged / unknown device (`isCompliant: false`) |
| UserAgent Continuity | Matches baseline Safari/Edge/Outlook | Switches OS or reveals scripted library (python/axios/curl) |
| Post-Login Behavior | Ordinary Outlook/Teams work | Immediate 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
- Load Entra Sign-In JSON and Purview UAL CSV together into AuditVane and click AV-009 (Multi-Country / IP Hopping).
- Compare every IP in AuditVane’s Top Source IPs chart against your organization’s documented SASE/VPN egress ranges.
- Open two contrasting rows (home/office baseline vs. unfamiliar IP) in the Event Inspector to compare `deviceDetail.deviceId`, `isCompliant`, and `UserAgent`.
- 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).
- Verify travel or personal VPN usage directly with the user out-of-band if indicators look ambiguous.
- 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.