Join our Newsletter — 33% off our NHI Course
Home› FAQ› Threats, Abuse & Incident Response› How do attackers use Person in the Middle…
Threats, Abuse & Incident Response

How do attackers use Person in the Middle (PITM)?

← Back to all FAQ
By NHI Mgmt Group Editorial Team Updated October 20, 2026 Domain: Threats, Abuse & Incident Response

Attackers use a Person in the Middle position to intercept, relay or alter communication between two parties while each side thinks it is talking directly to the other. They use it to steal credentials, tokens or data, and to change transactions. Defenders should enforce strong mutual authentication, certificate validation and session protections, and watch for proxying and downgrade behaviour.

How attackers turn a Person in the Middle position into real compromise

A Person in the middle attack works because the attacker can sit between two legitimate parties without either side realising the path is no longer direct. That position lets the attacker relay traffic, modify messages, harvest secrets, or force a weaker authentication path. The technique is effective because it abuses trust at the moment it is being established, not after it is already fully trusted.

In practice, the attacker is not only listening. They are shaping the exchange so the victim continues to authenticate, sign in, or approve actions against the attacker-controlled path. That is why Person in the Middle is so often used for credential theft, token theft, and transaction tampering, especially when the application or user relies on partial validation rather than end-to-end trust.

What an attacker can steal or change once they are in the middle

The highest-value outcomes are usually authentication material and session state. If the attacker can capture passwords, one-time codes, bearer tokens, session cookies, or device-bound assertions, they may not need to keep relaying traffic for long. They can replay the material, pivot into the account, or use the session to impersonate the victim until the token expires or is revoked.

Modification is just as important as theft. A Person in the Middle can alter a payment destination, change account details, rewrite API requests, or inject approval messages that look legitimate to the user. The danger is greatest where the user sees a normal workflow and the backend accepts the message because the transport or session controls do not prove the message really came from the expected party.

Why defenders need to validate more than the channel

Defence is not just about using encryption. Strong transport protection helps, but attackers often succeed by abusing trust decisions around certificates, session continuity, and downgrade handling. Mutual authentication, certificate validation, phishing-resistant sign-in, and session binding all reduce the attacker’s room to relay traffic while masquerading as the trusted endpoint.

AiTM Phishing Guide is useful here because the same relaying pattern appears in adversary-in-the-middle phishing kits that steal sessions after login. Defenders should also watch for reverse-proxy behaviour, unusual redirects, inconsistent device signals, and authentication flows that unexpectedly succeed after a warning, challenge, or downgrade.

Risk and Threat Considerations

Person in the middle attack are dangerous because they break the assumption that an authenticated conversation is actually end-to-end. Once that trust boundary is crossed, the attacker can capture reusable secrets or quietly change high-value transactions without needing full endpoint compromise.

Failure mechanism: The attacker exploits a weak trust check, such as missing mutual authentication, poor certificate handling, or a session that can be replayed from a different path or device. In many real cases, the exploit succeeds because the victim keeps interacting with a convincing proxy while the backend accepts the relayed session.

Impact: Credential theft, session hijack, transaction tampering, and silent account takeover become possible. In business workflows, the result can be fraudulent approvals, altered payment instructions, or data exposure that is hard to distinguish from normal user activity.

Standards & Framework Alignment

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

OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST SP 800-63 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationPITM commonly abuses weak authentication trust during relayed sign-in flows.
NHI-02 — Secret LeakagePITM is often used to capture tokens, cookies, and other reusable secrets.
Recommendation — Enforce phishing-resistant authentication and validate the real endpoint before issuing trust. Protect, bind, and rapidly rotate secrets that could be exposed through relayed sessions.
NIST SP 800-63IAL/AAL/FAL — Digital Identity assurance and federation requirementsPITM directly targets the assurance of the authentication and federation path.
Recommendation — Use phishing-resistant authenticators and strong federation validation for sign-in flows.
NIST SP 800-53 Rev 5IA-2 — Identification and Authentication (Organizational Users)The attack relies on weakening authenticated user sessions and trust in identity proof.
SC-23 — Session AuthenticityPITM undermines confidence that a session is really between the intended parties.
Recommendation — Require strong user authentication and verify that login sessions remain bound to the intended user. Validate session authenticity so relayed or altered sessions are rejected.

Practitioner Guidance

What to verify: Treat any flow that carries credentials, tokens, or approvals as suspect unless the client, certificate path, and session behaviour are explicitly validated. Look for signs that the login or transaction path is being proxied, especially when the user reports repeated prompts, unexpected reauthentication, or a successful login followed by abnormal session behaviour.

Decision rule: If the attack surface includes browser-based sign-in, federated authentication, or remote approval workflows, prioritise phishing-resistant authentication and session protections over user training alone. If you cannot bind the session to a trusted device or origin, assume the relayed session can be abused even when the initial login looked legitimate.

Practitioner takeaway: The key judgement is to protect the trust handoff, not just the login page; once an attacker can relay a valid conversation, downstream controls must prove the session is still genuine.

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 October 20, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org