TL;DR: MITM attacks keep succeeding because many systems still trust insecure defaults, weak certificate validation, and internal networks too much, according to WorkOS. For IAM teams, the lesson is that transport security, token handling, and identity verification must be treated as one control surface, not separate problems.
At a glance
What this is: This is a technical analysis of man-in-the-middle attacks showing that they persist mainly because trust checks fail in real implementations, not because encryption itself is broken.
Why it matters: IAM, NHI, and platform teams need to treat certificate validation, session handling, and internal trust boundaries as linked controls because a gap in any one of them can expose identities in transit.
Context
MITM attacks exploit a broken trust decision in transit: one party believes it is talking to a legitimate endpoint while an attacker sits between both sides and can read, alter, or relay traffic. The article’s core point is that this happens when TLS is misconfigured, certificate checks are weakened, or network location is treated as a trust signal.
For identity programmes, the important lesson is that transport security is not just a network concern. When certificate validation, token handling, and internal API assumptions are loose, the identity layer inherits that weakness and sessions become easier to intercept, replay, or impersonate.
The article is most relevant to teams operating web apps, APIs, mobile clients, internal services, and distributed environments where TLS is present but not consistently enforced. In those environments, the starting position described here is common rather than exceptional.
Key questions
Q: What fails first in a man-in-the-middle attack when TLS is already enabled?
A: The first failure is usually not encryption itself but trust validation. If a client accepts the wrong certificate, skips hostname checking, or allows insecure fallback, the attacker can sit between both sides and relay traffic while the session still appears normal. That is why certificate handling is the real control point, not TLS branding alone.
Q: Why do internal services still need strong transport security?
A: Internal location does not prove legitimacy. Compromised endpoints, rogue devices, or malicious insiders can intercept traffic on local networks just as easily as on public ones. If internal APIs accept plaintext or skip client authentication, they create a lateral MITM path that turns network convenience into identity exposure.
Q: What are the signs that a session may be under MITM interception?
A: Common indicators include repeated login prompts, unexpected certificate warnings, suspicious DNS resolutions, mixed-content errors, and network traffic to unfamiliar intermediary IPs. None of these proves MITM by itself, but together they show that the trust path is unstable and should be investigated before users continue the session.
Q: How should teams reduce replay risk if a token is captured in transit?
A: Use short-lived access tokens, secure cookies, and strict transport policies so a captured token has little value outside the original context. Then protect the connection itself with hostname validation, TLS enforcement, and authenticated service-to-service links so the attacker cannot easily capture a reusable credential in the first place.
Technical breakdown
Why TLS still fails when encryption is enabled
TLS protects data in transit only when both ends actually verify the connection. MITM attacks persist when clients accept self-signed or expired certificates, skip hostname validation, or silently fall back to insecure modes. In practice, the cryptography is not what fails first. The failure is usually implementation discipline: permissive defaults, weak library configuration, or development shortcuts that survive into production. Once that happens, an attacker can proxy traffic, inject a fake certificate, and keep the session looking legitimate to both sides.
Practical implication: audit client-side TLS settings and remove any path that allows a connection to continue after certificate validation fails.
How internal trust boundaries create identity exposure
Internal services often assume that anything inside the network is trustworthy, so they accept plaintext HTTP, omit mTLS, or stop authenticating clients carefully. That assumption breaks down once a laptop is compromised, a rogue device joins the network, or an attacker reaches a local segment. At that point, MITM is no longer an edge-case external attack. It becomes a lateral trust failure between services, where internal APIs and microservices can be intercepted just like public ones.
Practical implication: treat internal API calls as untrusted until they are authenticated and encrypted end to end.
Why session tokens are the real prize in MITM attacks
MITM attacks often aim less at the payload than at the identity artifact carried in the session. Bearer tokens, cookies, and API credentials are especially valuable because once intercepted they can be replayed without needing to break encryption again. That is why weak transport controls, unsafe redirects, and mixed-content exposure become identity events, not just network events. The attacker is not only observing traffic, but also harvesting a reusable authentication context that can outlive the original connection.
Practical implication: shorten token lifetime, enforce secure transport for every hop, and assume intercepted credentials become immediate access paths.
Threat narrative
Attacker objective: The attacker’s objective is to capture reusable identity material and manipulate trusted traffic without being detected.
- The attacker gets into the middle by using ARP spoofing, DNS spoofing, rogue Wi-Fi, or TLS downgrade tricks to position themselves between two communicating parties.
- They intercept or alter traffic by exploiting weak certificate validation, insecure redirects, or permissive trust assumptions in clients and internal services.
- They use that access to steal credentials, hijack sessions, inject malware, or forward fake responses while both sides believe the connection is legitimate.
Breaches seen in the wild
- CISA Private-CISA GitHub leak 2026: A CISA contractor's public GitHub repo exposed AWS GovCloud admin keys, Artifactory credentials and plaintext passwords for six months.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 150+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
MITM is a trust-verification problem before it is a cryptography problem: The article is right to frame these attacks as persistent because implementation gaps outlast protocol upgrades. TLS can be present and still ineffective if hostname checks, certificate validation, or redirect handling are weak. The practical implication is that security teams should measure trust enforcement quality, not just encryption adoption.
Internal network trust is a broken assumption, not a control: Many environments still behave as if internal traffic is inherently safer than external traffic. That premise collapses when compromised endpoints, rogue devices, or malicious insiders can place themselves between services. The implication is that internal APIs need the same verification discipline as internet-facing ones.
MITM exposure turns identity controls into transport controls: Session cookies, bearer tokens, and API credentials are only as safe as the channel carrying them. If the channel can be intercepted, the identity control can be replayed. Practitioners should stop treating token handling, TLS, and application trust as separate workstreams.
Ephemeral session trust debt: Short-lived tokens reduce exposure, but they do not fix a system that still accepts insecure certificate chains or downgraded connections. The article shows that trust debt accumulates at issuance, verification, and session reuse time, and that is where governance needs to be tightened.
For IAM teams, MITM is an access integrity issue: If a session can be intercepted, the resulting access event may look legitimate even though the trust path was compromised. That is why identity programmes need to validate transport assumptions alongside authentication and authorization. The practitioner conclusion is simple: access governance now extends into the network path.
What this signals
Identity teams should treat trust enforcement as part of access governance: The article’s core lesson is that authentication does not end when a token is issued. If transport verification is weak, the resulting session can still be intercepted, replayed, or modified, which means the governance boundary extends into TLS, DNS, and client configuration.
A useful way to name the problem is session trust debt: the gap between a session that looks authenticated and a session whose path was actually verified. That debt accumulates when teams leave insecure defaults in staging, internal tools, or mobile builds, and it becomes visible only after interception or token theft.
For practitioners
- Enforce certificate validation everywhere Remove any client setting that allows self-signed, expired, or hostname-mismatched certificates to pass. Test staging, mobile, and internal service paths separately because those environments are where insecure defaults usually survive.
- Treat internal APIs as untrusted links Require TLS and client authentication on service-to-service calls, including private networks and service mesh traffic. Do not rely on network location as proof that the peer is legitimate.
- Harden session handling against interception Use short-lived access tokens, secure cookies, and strict transport on every redirect and API call. If a token can be replayed after capture, the transport layer has already failed you.
- Lock down wireless and DNS trust paths Disable auto-connect to open networks, prefer WPA3 or certificate-backed enterprise Wi-Fi, and use DNS protections such as DNSSEC, DoH, or DoT where the client stack supports them.
- Review logs for downgrade and proxy patterns Look for unexpected certificate errors, unusual DNS resolution, mixed-content warnings, and outbound traffic to unknown intermediaries. Those signals often appear before confirmed session theft.
Key takeaways
- MITM attacks succeed when systems trust the wrong thing, such as weak certificate handling, internal network location, or permissive client defaults.
- The article shows that the practical failure is often at the trust boundary, where session tokens and identity flows become reusable attack material.
- For practitioners, the control priority is to verify every connection path, harden token handling, and stop treating internal traffic as inherently safe.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP API Security Top 10 | API2 — Broken Authentication | MITM succeeds when client authentication and trust checks fail on API traffic. |
| Recommendation — Enforce strong API authentication and reject any request path that can be replayed through an intercepted channel. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | Session tokens and cert-based authenticators are the material assets at risk in MITM flows. |
| Recommendation — Manage authenticators so captured tokens, cookies, and certificates cannot be reused outside their intended context. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | MITM turns apparently valid access into untrusted access if the path is not verified. |
| Recommendation — Verify entitlement and authorization paths end to end before allowing privileged or sensitive sessions to proceed. | ||
| CIS Controls v8 | CIS-12 — Network Infrastructure Management | Network trust gaps, rogue Wi-Fi, and DNS spoofing are central to the article's attack paths. |
| Recommendation — Harden network infrastructure to block spoofing, downgrade, and unauthorized interception paths. | ||
Key terms
- Man-in-the-Middle Attack: A man-in-the-middle attack is an interception technique where an attacker positions themselves between two parties that believe they are communicating directly. The attacker can read, alter, or replay traffic, which makes the attack especially dangerous when credentials, sessions, or certificates are involved.
- Certificate validation: Certificate validation is the process of checking that a TLS certificate chains to a trusted authority and matches the intended hostname. In practice, it is a core trust decision, because accepting invalid or mismatched certificates lets an attacker impersonate a legitimate endpoint and intercept secure traffic.
- Transport security: Transport security protects data while it moves between systems, usually with TLS or mTLS. It is not just encryption in transit. It also depends on correct endpoint verification, secure protocol negotiation, and consistent enforcement across web, mobile, API, and service-to-service traffic.
- Session Hijacking: Session hijacking is the takeover of an authenticated session after the original login has completed. The attacker does not need to know the password if they can use the active session token, which is why session monitoring and revocation are essential controls in SaaS identity governance.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on June 8, 2026.
Updated on October 8, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org