Join our Newsletter — 33% off our NHI Course
Home› Glossary› Threats, Abuse & Incident Response› Man In The Middle
Threats, Abuse & Incident Response

Man In The Middle

← Back to Glossary
By NHI Mgmt Group Updated November 24, 2026 Domain: Threats, Abuse & Incident Response

A man-in-the-middle attack is one in which an adversary positions themselves between two communicating parties and intercepts or alters the traffic passing between them, often without either side noticing. It can expose credentials and session data or change messages in transit. Encryption with properly validated certificates is the main defence. See also adversary-in-the-middle (AiTM).

How man-in-the-middle attacks work

A man-in-the-middle attack succeeds by inserting an unseen relay between endpoints so the attacker can observe, alter, replay or redirect traffic. The technique is dangerous because it targets trust in the communication path itself, not just the endpoints, so even a well-run service can be undermined if the channel is not strongly authenticated.

Attackers often exploit weak trust bootstrapping, for example by abusing spoofed DNS, rogue Wi-Fi, poisoned local name resolution or a forged certificate chain. The practical danger is that users and systems can believe they are talking to the intended peer while the attacker silently mediates the exchange.

Why MITM attacks are so damaging

Man-in-the-middle attacks can expose credentials, session cookies, API tokens, cookies, SSH sessions and other sensitive traffic in transit. They can also change commands, downgrade security settings or inject malicious content, which turns a confidentiality problem into an integrity and availability problem as well.

In identity-heavy environments, the impact is often amplified because stolen sessions or intercepted authenticators can be reused before they expire. Once an attacker can impersonate a trusted party, the attack can progress from passive interception to account takeover, lateral movement or fraudulent transaction manipulation.

Common attack paths and warning signs

MITM commonly shows up as certificate warnings, unexpected host key changes, unexplained login prompts, TLS downgrade behaviour or traffic that succeeds only when validation is weakened. In wireless, enterprise and industrial settings, the same pattern can arise through rogue access points, ARP spoofing, DHCP spoofing or name-resolution poisoning.

For SSH, a changed host key warning is often the clearest signal that something in the trust path has shifted. That warning should trigger verification of the new fingerprint out of band, not blind acceptance of a replacement key.

Practical examples and detection patterns are covered in Man-in-the-Middle Attacks Guide and MITRE ATT&CK T1557 Adversary-in-the-Middle.

Defences that raise the cost of interception

The core defence is strong endpoint authentication of the channel, backed by certificate validation that is actually enforced by the client. Encryption alone is not enough if the client accepts a forged certificate, skips hostname checks or relies on user approval to bypass warnings.

Additional hardening can include HSTS for web traffic, mTLS where both sides must prove identity, pinned or otherwise tightly managed trust anchors, secure DNS controls and route protections that make silent interception harder. For SSH specifically, host key verification and careful management of known_hosts entries are critical.

What to do when SSH warns REMOTE HOST IDENTIFICATION HAS CHANGED explains how to handle host key warnings without weakening trust, while TLS Inspection Guide shows why certificate validation and inspection CA handling must be controlled carefully.

Risk and Threat Considerations

MITM is dangerous because it converts a trusted communication channel into a surveillance and tampering point. The attacker does not need to defeat the application directly if they can control the path, weaken validation or exploit a user to accept a bad trust decision.

Failure mechanism: Interception succeeds when trust is established through spoofable network conditions, weak certificate checking, downgradeable protocols or unverified trust-anchor changes. Once the attacker is in the path, they can steal secrets, alter messages or relay authenticated traffic.

Impact: The result can be credential theft, session hijacking, fraudulent transaction changes, silent data exposure and follow-on compromise of systems that trust the intercepted identity or session.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5 provides the primary governance reference for this term.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5SC-8 — Transmission Confidentiality and IntegrityMitigates interception and tampering of data in transit.
IA-5 — Authenticator ManagementMITM often steals or relays authenticators, sessions and tokens.
IA-7 — Cryptographic Module AuthenticationStrong channel authentication helps prevent forged peers and certificate abuse.
Recommendation — Enforce SC-8 to protect traffic against disclosure and modification in transit. Use IA-5 to rotate, protect and expire authenticators that could be intercepted. Apply IA-7 to require cryptographic authentication of communicating parties.

Practitioner Guidance

What to watch for: Treat certificate errors, unexpected key changes and unexplained authentication anomalies as security events, not user nuisances. Any environment that permits users to bypass validation should be considered exposed to avoidable interception risk.

Governance implication: Security teams should make certificate validation, host-key verification and secure trust-store management non-negotiable requirements for any protocol that carries sensitive data. Where interception tooling is used for inspection, it needs explicit policy, tight CA governance and clear scope limits.

Practitioner takeaway: If the channel can be trusted only after a human clicks through a warning, the trust model is already too weak.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 24, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org