What is a man-in-the-middle attack?

A man-in-the-middle attack is an attack in which an intermediary reads or alters traffic between two parties. Here is what it means for post-quantum migration planning.

On this page

What is a man-in-the-middle attack and why does it matter for post-quantum planning?

You are most likely to meet the term man-in-the-middle attack in a protocol guide, a vendor questionnaire or a tender that asks how your key establishment is protected. In a man-in-the-middle attack, an intermediary sits between two parties and reads or alters the traffic passing between them, so that each side believes it is talking directly to the other. The sources listed on this page frame this attack as a threat to key establishment and authentication: an intermediary that can take part in the handshake can substitute its own keys and impersonate one endpoint. The term is used across protocol documentation and security reviews, but the sources listed on this page do not show a single standard that defines it, so check how the specific document you are reading uses it.

For post-quantum planning, the practical question is which of your handshakes depend on keys and signatures that a future quantum attacker could break, and whether an intermediary could exploit that dependency. Key establishment, such as the key-encapsulation mechanisms specified in NIST FIPS 203, and authentication, such as the signatures specified in NIST FIPS 204, are the two places where a man-in-the-middle position does damage. Protocol guidance such as RFC 8446 for TLS 1.3 and the hybrid terminology in RFC 9794 shows how these exchanges are structured, and it is there that you should confirm which parts of your handshake are authenticated and which are only encrypted.

Start your inventory by listing every handshake in your environment, noting where authentication is performed and where certificates are validated, and asking each vendor which algorithms their implementation negotiates for key establishment and for signatures. Ask whether a hybrid or fallback mode can be forced to a weaker algorithm by an intermediary, and confirm the exact version and configuration you run, since the sources listed on this page do not show that any specific product resists this attack. Treat the answers as the input to your migration plan rather than as a finished assessment.

Which names and identifiers go with man-in-the-middle attack in standards

This table lists the name and abbreviation for the attack, then the standards identifiers the sources on this page give that relate to it. The sources do not assign a standard number to the attack itself, so the identifiers below are the mechanisms an attacker targets, not names for the attack. Use the table to check which document covers each mechanism you run.

Name or identifierTypeRelation to man-in-the-middle attack
Man-in-the-middle attack (MITM)Attack nameFull name and common abbreviation. The sources on this page give no standard number for the attack itself.
RFC 8446IETF standard (TLS 1.3)Defines TLS 1.3, the protocol whose handshake an intermediary would try to read or alter. Dated August 2018.
RFC 9794IETF Informational RFCTerminology for PQ/T traditional hybrid schemes, dated June 2025. Defines the hybrid KEM that a man-in-the-middle would target in a hybrid key exchange.
FIPS 203NIST standard (ML-KEM)Specifies the key-encapsulation mechanism used to establish a shared secret. A mechanism an attacker targets, not a name for the attack. Final on 13 August 2024.
FIPS 204NIST standard (ML-DSA)Specifies the digital signature algorithms used to authenticate parties. A mechanism an attacker targets, not a name for the attack. Final on 13 August 2024.
RFC 9935 and RFC 9881IETF standards (X.509 identifiers)Give X.509 algorithm identifiers for ML-KEM and ML-DSA. Confirm which identifiers your certificates and libraries use.

Where practitioners meet man-in-the-middle attacks in protocols and documents

A man-in-the-middle attack is named in protocol specifications, migration designs and the paperwork that reviewers exchange with vendors. The entries below show where the term appears, so readers can find the passage that matters for their own system.

TLS 1.3 handshakes

RFC 8446 defines TLS 1.3, the handshake that lets a client and server agree on keys and authenticate each other. Its authentication steps are what stop an intermediary from silently reading or altering traffic. When reviewing a deployment, check that the server certificate is validated against a trusted root and that the peer's identity is verified, not only that encryption is on. The sources do not describe how any particular product implements these checks, so confirm this against that product's documentation.

RFC 8446 text

Hybrid key exchange

RFC 9794 defines terminology for hybrid schemes that combine a post-quantum algorithm with a traditional one, with at least one of each. A hybrid key exchange is meant to keep the handshake secure if either component holds, but the attack surface still lies in how the two shared secrets are authenticated and combined. Ask a vendor which components its hybrid mode uses and how the handshake authenticates both parties. The sources on this page do not state whether any named product implements these combinations.

RFC 9794 text

Certificate and signature identifiers

RFC 9881 gives X.509 algorithm identifiers for ML-DSA, and RFC 9935 gives them for ML-KEM. These identifiers are how a certificate states which post-quantum algorithm signs it or which key it carries. An intermediary who could swap in a certificate with a weaker or unexpected identifier would be a man-in-the-middle, so certificate issuance and validation must check these fields. Confirm with each certificate authority and client library which identifiers they accept before relying on them.

RFC 9881 text

Vendor security documents

Vendor security questionnaires and architecture documents often describe how TLS is configured and how certificates are managed. Reviewers should read these for statements about peer authentication, certificate pinning or trust store management, which are the controls that address a man-in-the-middle. A vague answer that encryption is used does not show that the intermediary is excluded. Ask for the specific configuration and the version it applies to.

Tender requirements and audit requests

Public tenders and audit requests increasingly list transport encryption and mutual authentication as requirements. Procurement and audit teams can use the man-in-the-middle term in these requests to ask how a system resists an intermediary. Clarify in writing what evidence the vendor must provide, such as configuration exports or test results. The sources do not set any specific threshold, so the requirement wording should come from the buyer's own policy.

How does a man-in-the-middle attack sit between two parties?

A man-in-the-middle attack works by placing an intermediary on the communication path between two parties so that each side believes it is talking directly to the other. The attacker does not need to break the underlying algorithms to do this. It needs a position on the network path, such as a compromised router, a rogue access point or a manipulated name resolution step, and the ability to receive each message, decide what to do with it, and forward it onward. Once in that position, the intermediary can relay messages unchanged, alter them before forwarding, or read the session data it handles. From the endpoints' point of view, the traffic looks normal, which is why the attack is hard to notice without checking the identity of the peer.

The two points where this matters most are key establishment and certificate validation. During a handshake, the two parties agree on a shared secret over a channel the intermediary can see. If the attacker can substitute its own key material in that exchange, it can end up holding a session key with each side and decrypt and re-encrypt everything in between. A post-quantum key-encapsulation mechanism changes the algorithm used in that exchange, but it does not by itself stop a substitution. What stops it is proving who the peer is before trusting the key. In TLS 1.3, as defined in RFC 8446, the server authenticates itself with a certificate and a signature over the handshake, and the client is expected to validate that certificate chain.

The sources tie defense against this attack to authentication through certificates, so the practical checks for a migration are these: confirm that every client validates the server certificate and does not accept unvalidated or self-signed chains by default, confirm which signature algorithm the certificate chain uses, and confirm that the certificate formats you plan to issue are supported by your libraries. For the X.509 identifiers that carry post-quantum keys and signatures, see RFC 9935 for ML-KEM and RFC 9881 for ML-DSA. Confirm with each vendor and library which versions implement these identifiers and whether their certificate validation is enabled in your configuration.

Where an intermediary sits during a TLS handshake

The diagram starts with the client sending its initial handshake message toward the server. The intermediary sits on that network path, so it receives the client's messages before the server does and can forward, change or hold them. Server replies travel back through the same intermediary, which is why an attacker in this position can see or alter the exchange. Check that the client validates the server's certificate, since that check is what exposes an impersonated server. This is an illustrative view of the path only, not the internal cryptographic steps defined in RFC 8446.

Illustrative path of a TLS handshake with an intermediary between client and server.

Which standards and documents address the defences against this attack

The sources listed for this page do not identify any of the documents below as a defence specifically against man-in-the-middle attacks. Their relevance is indirect: they define the protocols and algorithms that protect the channel an intermediary would try to alter or read. RFC 8446 defines TLS 1.3, an Internet Standards Track document dated August 2018. It is the protocol that authenticates the server, and optionally the client, and derives session keys, so it is the document where interception and substitution are addressed. Before relying on it, read the security considerations section of RFC 8446 yourself to see which threats it names and which it leaves to the implementer.

For the post-quantum side, RFC 9794, Terminology for Post-Quantum Traditional Hybrid Schemes, is an Informational RFC dated June 2025. It defines the vocabulary for hybrid schemes that combine a post-quantum algorithm with a traditional one, which is the terminology you need when a vendor says its key exchange is hybrid. FIPS 203, which specifies ML-KEM, and FIPS 204, which specifies ML-DSA, were both published as final standards on 13 August 2024. They supply the key-establishment and signature algorithms that a protocol would use to authenticate the endpoints and protect the exchanged key. Whether an implementation of either is correct for your use depends on the protocol profile it runs in, so confirm that against the specific protocol version your systems support.

Your action is to map each deployed protocol and certificate path to the document that governs it, then read that document's own security considerations before deciding which controls are needed. Confirm with each vendor which protocol versions and algorithm identifiers its products support, and check that certificate handling follows RFC 9935 and RFC 9881, which give X.509 identifiers for ML-KEM and ML-DSA. The sources listed here do not say that any of these documents is a defence on its own, so treat them as the baseline to verify, not as a completed control.

What should a migration team check for man-in-the-middle exposure

This sequence maps where TLS and certificate-based authentication run, confirms which key exchange and signature mechanisms each system actually negotiates, and records the results in a form auditors can review. It produces a verified inventory that shows where an intermediary could alter or read traffic during the migration.

  1. Inventory every TLS and certificate-based authentication use

    The team lists each service, endpoint, client and internal connection that uses TLS, mutual TLS, or certificate-based authentication, including load balancers, API gateways, VPNs, service meshes and any component that terminates or re-originates a session. Each entry records the owner, the protocol versions in use, and the certificate chain involved. The step is complete when the inventory covers every network path that carries sensitive traffic and each owner has confirmed their entries.

  2. Confirm negotiated key exchange and signature mechanisms

    For each inventoried system, the team checks which key exchange groups and signature algorithms the server and client actually negotiate, rather than relying on what the configuration file says is enabled. Captured handshakes or the library's own diagnostic output are the usual evidence. The step is complete when every entry records the negotiated mechanism per protocol version, and any system that negotiates a classical-only group or signature is flagged for follow-up.

  3. Ask vendors which versions and configurations they support

    The team sends each vendor a written question asking which TLS versions, key exchange groups and certificate signature algorithms the product supports, under which version or edition, and whether those options are enabled by default. Answers should name the product version and the component they apply to. The step is complete when each vendor has answered in writing, and any gap between a vendor's answer and the team's observed behavior is recorded as an open item.

  4. Test handshake behavior in a non-production environment

    In a test environment that mirrors production, the team runs client and server pairs through a handshake and observes what each side accepts, rejects and falls back to when the peer offers a different set of options. Testers should also check how the system responds when a peer offers only older or weaker options, since a downgrade is one way an intermediary can push a session onto a weaker mechanism. The step is complete when the observed behavior for each pair is written down, including any fallback that occurs.

  5. Document results in a form auditors can review

    The team compiles the inventory, negotiated mechanisms, vendor answers and test observations into a single record, with the date, the product versions tested, and the person who ran each test. Each finding is tied to a system, an owner and a remediation status. The step is complete when the record can be handed to an internal or external auditor without further explanation, and when the team has a named owner for every open item.

What readers commonly mix up with man-in-the-middle attacks

Man-in-the-middle attacks sit close to several other security terms, and readers often blur them together when they read protocol guidance or vendor claims. The four cards below separate the attack from related ideas so that the definition in this glossary entry is applied correctly.

Not the same as a downgrade attack

A man-in-the-middle attack is about an intermediary positioned between two parties who can read or alter their traffic. A downgrade attack is a different technique: it forces two systems to fall back to weaker algorithms or protocol versions. An attacker can use one to enable the other, but they are separate concepts. When you read a standard, check whether it addresses interception, forced weakening, or both, because the defenses differ.

RFC 8446 text

Encryption does not rule out an intermediary

An encrypted channel protects the content of messages, but it does not by itself stop an intermediary from sitting on the path. Whether an interceptor can impersonate one endpoint depends on whether the handshake authenticates that endpoint, typically through certificates. If authentication is weak, misconfigured, or skipped, an intermediary may still relay or alter traffic. Check how peer identity is verified, not only whether the connection is encrypted.

RFC 8446 text

The attack is not the standards that defend against it

Standards such as TLS define how to authenticate endpoints and protect messages, which are the defenses against a man-in-the-middle attack. The attack itself is the threat those mechanisms address. Naming a standard in a design does not describe the threat, and citing the threat does not show the standard is in use. Reviewers should ask which specific mechanism in a given design addresses interception, and confirm it is configured and enforced.

RFC 8446 text

A vendor mention is not a protection claim

A product page or datasheet may use the phrase man-in-the-middle without describing a control that stops one. The term may appear in a list of threats the product considers, in marketing copy, or in a description of a feature that only partly addresses the threat. Ask the vendor which mechanism applies, which versions and configurations it covers, and what the product does when peer authentication fails. Verify the answers against the vendor's documentation and your own environment.

What do people search about man-in-the-middle attacks?

Is a man-in-the-middle attack the same thing as MITM?

Yes. MITM is the common abbreviation for man-in-the-middle attack, and the two terms are used interchangeably in protocol guidance and vendor documents. The attack describes an intermediary that sits between two communicating parties and can read, alter or inject traffic without either endpoint noticing. Searches for MITM usually lead to the same explanations, so the abbreviation does not change what the term covers. When you read a vendor document, treat MITM and man-in-the-middle attack as the same concept and check the surrounding text for what the attacker is assumed to be able to do, such as observing only or also modifying messages.

Is a man-in-the-middle attack defined in a standard?

The sources listed for this page do not give a formal standard definition of man-in-the-middle attack that you can cite as a normative text. Protocol documents such as RFC 8446 describe the threats their mechanisms are designed to resist, and the terminology in those documents is the place to look for how a given standard frames the attacker. For post-quantum work, RFC 9794 defines terminology for hybrid schemes, which helps when reading how hybrid key exchange is meant to resist a single failed algorithm, but it is not a definition of this attack. Confirm the wording in the specific standard your organization follows before citing it in an audit or procurement response.

Does TLS 1.3 protect against man-in-the-middle attacks according to RFC 8446?

RFC 8446 defines TLS 1.3, which is an Internet Standards Track document dated August 2018 and which obsoletes RFC 5077, RFC 5246 and RFC 6961. The protection against an intermediary comes from the protocol's authentication and key exchange design, which the RFC specifies in detail. Whether a particular deployment is protected depends on the certificate validation and configuration that the endpoints actually perform, not only on the protocol version. Read the security considerations section of RFC 8446 directly to see what it claims and what it leaves to implementers. Confirm how your clients and servers validate certificates before assuming the protocol-level protection applies.

Why does a man-in-the-middle attack matter for post-quantum migration?

A migration can change which algorithms the endpoints use for key exchange and signatures, so the attack surface moves with it. Post-quantum schemes such as the ML-KEM key-encapsulation mechanism in FIPS 203 and the ML-DSA signature algorithm in FIPS 204 are used to establish keys and authenticate parties, and an intermediary that can break authentication can still reach traffic even when the key exchange is strong. Hybrid designs, described in RFC 9794 as combining at least one post-quantum and at least one traditional algorithm, are one approach discussed for keeping protection while the new algorithms mature. The main migration task is to confirm that certificate validation and authentication still hold after the algorithms change, not only that the new algorithm is negotiated.

What should I ask a vendor about man-in-the-middle protection?

Ask which protocol versions and certificate validation settings the product enables by default, and whether those settings can be changed. Ask whether the product supports the post-quantum key exchange and signature algorithms you plan to use, and for which version and edition, since support differs between releases. Ask how the product validates peer certificates, including the trust store it uses and whether it can pin certificates for internal services. Ask for the documentation that describes its authentication design and any known limitations in the sources it cites. Request written answers that name the version and configuration, so you can test them in your own environment before relying on them.

How much effort does man-in-the-middle protection add to a migration?

The sources listed for this page do not give a cost or duration for this work, so no figure is stated here. The effort depends on how many systems terminate encryption, how many certificates and trust stores you must update, and whether your vendors have released post-quantum support for the products you run. One-time costs usually include inventory, testing of certificate validation after each change, and any upgrades to endpoints that cannot negotiate the new algorithms. Recurring costs are monitoring for vendor updates and retesting after upgrades. Ask any partner for a written scope that lists the systems covered and the tests they will run, since the scope drives the effort more than the attack definition does.

How DeployOpen works on this

DeployOpen approaches man-in-the-middle exposure during migration as an engineering question about where handshakes, certificates and key exchange happen in your own environment. Engagements start with a written scope, then map the systems that terminate TLS and where hybrid or post-quantum key exchange would be negotiated. The output is a set of checked configurations and documented evidence your team can review.

How we scope

  • Engagements are fixed-scope, with the systems, protocols and deliverables agreed in writing before work starts.
  • We inventory the endpoints, proxies and load balancers that terminate TLS and where certificate validation happens.
  • The scope records which key exchange and signature configurations are in and out of the assessment.

How we build

  • We test whether the server-side and client-side configurations can negotiate the expected TLS 1.3 and hybrid key exchange settings.
  • We check certificate chain validation and trust store handling, since interception often depends on what a client accepts.
  • We run active tests for downgrade and certificate substitution paths within the agreed scope, reporting findings with reproduction steps.

How we hand over

  • Deliverables include a written findings report, the configuration changes recommended, and a retest after fixes are applied.
  • Each finding is tied to the specific component, version and setting it applies to, so your team can verify it independently.
  • We document the test method and evidence so auditors and internal reviewers can trace how each conclusion was reached.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after the initial assessment closes.
  • Retainers can cover re-testing when a client upgrades TLS libraries, proxies or certificate issuance workflows.
  • Confirm the exact standard versions and vendor documentation for your products before relying on any configuration we recommend.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.