Security teams should look for the behavior chain, not just the domain reputation. AitM kits can use reputable services, bot checks, required parameters, JavaScript gates, and benign redirects to evade static analysis. The stronger control is to detect credential entry on a site that is not the intended login domain and to correlate that with suspicious redirect behavior and authentication anomalies.
Why Legitimate SaaS Hosting Makes AitM Detection Harder
aitm phishing kits are effective because they no longer look like classic “bad domain” phishing. They often sit behind reputable SaaS platforms, use short-lived infrastructure, and add friction only for real users, which means reputation tools and static URL checks miss the abuse path. Security teams need to shift from domain judgment to session and authentication behavior, especially where the login journey unexpectedly traverses a third-party service before reaching the real identity provider.
The practical issue is trust leakage: defenders see a branded or well-known service front end, while the actual objective is to intercept credentials, cookies, or MFA artifacts during a proxied login flow. That means the detection problem is closer to transaction analysis than web filtering, and it benefits from correlating redirect chains, page behavior, and post-login anomalies. In practice, many teams discover these kits only after users report account takeover indicators, not while the kit is still in its staging phase.
How the Detection Model Should Work
Effective detection starts by treating the phishing flow as a sequence of observable events. AitM kits often reveal themselves through a combination of benign-looking SaaS hosting, unusual intermediate redirects, client-side JavaScript gates, bot filtering, and login pages that only fully render after a series of checks. Individually, each element can look routine. Together, they form a behavior chain that is highly consistent with credential interception.
Security operations should therefore correlate signals across the request path rather than rely on a single indicator. Useful detections include:
- Credential entry on a page whose visible brand does not match the expected login domain.
- Redirects that pass through unrelated SaaS infrastructure before arriving at a credential prompt.
- Unusual authentication outcomes, such as MFA prompts followed by token replay, impossible travel, or session anomalies.
- Pages that change behavior based on user-agent, geolocation, or execution of JavaScript.
- Login flows that require odd parameters, path tokens, or one-time gating logic before exposing the final page.
The highest-value telemetry usually comes from the identity layer and the web proxy together. If a user submits credentials to a page that is not the intended login domain, and that submission is followed by redirects or authentication events that do not match the normal application flow, the detection signal is much stronger than any single IOC. That is also why EDR or DNS-only views are usually too shallow for this problem, they lack the application context needed to reconstruct the kit’s full sequence.
Teams get better results when detections are built around the user journey, not just the URL, because the kit’s real purpose is to make the malicious flow look operationally normal until the last possible step.
Common Variations and Edge Cases
Tighter detection often increases false positives, so teams have to balance coverage against friction. Some legitimate SaaS workflows do use redirects, bot checks, embedded content, and multi-step auth handoffs, especially in federated enterprise environments. The difference is that legitimate flows are consistent, documented, and tied to known application domains, while AitM kits tend to introduce unnecessary complexity to hide the real credential interception point.
Environment-specific exceptions matter. For example, marketing portals, help desks, external collaboration tools, and customer-facing auth experiences may involve approved SaaS-hosted pages that look suspicious at first glance. The better rule is to validate whether the page participates in an approved login route, whether the redirect chain is expected, and whether the post-authentication behavior matches the normal identity pattern for that application.
Teams should also be careful not to over-index on one signal such as JavaScript gating. Some kits use it to block scanners, but so do legitimate services that rely on anti-bot controls or dynamic rendering. The more reliable approach is to combine page behavior with account-side anomalies and known expected domains, then tune based on whether the flow produces a believable enterprise login path. The model breaks down when defenders only inspect the visible front door and do not trace the intermediate hops that actually capture the session.
Risk and Threat Considerations
AitM phishing kits create a higher-risk form of credential theft because they can capture more than passwords. By proxying a real login session, they can intercept MFA outcomes, tokens, and authenticated browser state, which makes simple credential resets less effective after compromise. The use of legitimate SaaS hosting also lowers the chance that users or perimeter controls will flag the page early.
Failure mechanism: The attacker places a proxy layer between the victim and the real login service, then uses redirects, bot checks, or JavaScript gates to hide the interception point while relaying the session in real time. This preserves the look and feel of a normal login while exposing secrets and tokens to the attacker.
Impact: Successful compromise can lead to account takeover, session replay, unauthorized access to SaaS resources, and downstream lateral movement through connected applications and federated identities.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-63 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| MITRE ATT&CK | T1566.002 — Spearphishing Link | AitM kits commonly start with deceptive links that lead victims into the proxy flow. |
| T1110 — Brute Force | Phishing kits often support credential capture and replay that feed account compromise. | |
| Recommendation — Correlate suspicious link delivery with redirect and credential-harvest telemetry. Hunt for repeated auth failures and follow-on takeover indicators. | ||
| NIST CSF 2.0 | DE.CM — Continuous Monitoring | Detecting AitM requires correlating web, identity, and session signals continuously. |
| Recommendation — Monitor login flow integrity across web and identity telemetry. | ||
| NIST SP 800-63 | 4.3 — Phishing Resistance | Phishing-resistant authentication directly reduces value of intercepted login flows. |
| Recommendation — Prefer phishing-resistant authenticators for high-value applications. | ||
| CIS Controls v8 | 6 — Access Control Management | AitM abuse becomes impactful when compromised sessions retain access. |
| Recommendation — Restrict and review access so stolen sessions have minimal blast radius. | ||
Practitioner Guidance
What to prioritise: Build detections around login flow integrity, not reputation alone. The most useful cases are those where credential entry occurs on an unexpected domain, then the user lands in a suspicious redirect chain before any valid session is established.
What to verify: Confirm which domains are actually approved in each auth journey, which redirect patterns are normal for the application, and which post-authentication events should occur if the login is legitimate. If those three do not line up, treat the flow as suspect even if the front-end service appears reputable.
Decision rule: If a sign-in page is hosted on a third-party SaaS domain but is collecting credentials for another brand or login path, escalate it as a likely AitM case and correlate it with identity anomalies before closing it as a nuisance phish.
Practitioner takeaway: AitM detection works best when teams instrument the authentication journey end to end, because the attacker’s advantage is not the domain itself, it is the ability to make the malicious handoff look like a normal login.
Related resources from NHI Mgmt Group
- How do security teams detect spear-phishing campaigns that hide behind seemingly legitimate file-sharing workflows?
- How should security teams detect phishing emails that hide behaviour behind HTML and JavaScript?
- How should security teams detect cloud-hosted phishing kits that use legitimate frameworks and branded login pages?
- How should security teams detect phishing that comes from legitimate Microsoft identity workflows?
Deepen Your Knowledge
Reviewed and updated by the NHIMG editorial team on September 16, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org