Adversary-in-the-Middle (AiTM) frameworks fundamentally change how phishing operates. Instead of stealing passwords from fake login pages, they proxy legitimate authentication services and intercept sessions in real time.
How AiTM Infrastructure Works
Modern AiTM kits typically:
- Proxy legitimate Microsoft or cloud authentication portals
- Relay credentials and MFA prompts in real time
- Capture authenticated session cookies after successful login
- Extract OAuth tokens or session identifiers
- Replay valid sessions to bypass MFA enforcement
Because the victim interacts with a real authentication page, traditional indicators such as invalid certificates, obvious fake domains, or credential entry errors may not exist.
Why UPNs Appear in Malicious URLs
To track and manage active victims, many AiTM frameworks embed victim identifiers directly into URLs.
These identifiers may appear in:
- Query string parameters
- URL path segments
- Redirect tokens
- Encoded tracking values
- Session correlation IDs
Example attacker use cases:
- Mapping a specific victim to an active proxy session
- Correlating credentials with captured session cookies
- Linking authentication attempts to backend control panels
- Automating post-authentication token replay
While this behavior benefits the attacker, it introduces a detectable artifact.
Why This Is Abnormal
Under standard enterprise browsing behavior:
- SaaS platforms do not require embedding a full UPN inside third-party public URLs
- Browsers do not normally initiate outbound requests containing the user’s own identity in the destination URL
- Identity values are typically transmitted via secure headers, tokens, or encrypted session exchanges — not visible URL strings
Therefore, when a browser process connects to a public IP and the RemoteUrl contains the initiating user’s UPN, it often indicates:
- Active phishing infrastructure
- Session hijacking attempts
- Credential harvesting
- Identity tracking by malicious proxy frameworks
This makes the signal both subtle and high-confidence when properly filtered.


