Visual RFC.
ALL RFCs / RFC 4251
Read the RFC ↗
RFC 4251 / MECHANISMS

An unchecked key enables a middleman

03

An attacker can create two encrypted connections when the client accepts the wrong host key.

RFC 4251 · § 9.3.4EXAMPLE
3 / 3
03
Trust gate

A trusted host-key comparison stops the client at the wrong-key boundary.

An unchecked key enables a middlemanAn attacker can create two encrypted connections when the client accepts the wrong host key. Current state: Trust gate.An unchecked key enables a middlemanClientServerMiddlemankey Bsecond connectionexpected key AEncryption to the wrong key protects a connection to the attacker.

Key idea: Encryption to an attacker does not authenticate the intended server.

Terms

Look up a term in the glossary ↗

Rules & examples
  • Encryption to an attacker does not authenticate the intended server.
  • A known host-key mismatch can expose the substitution.
  • Verify the server-name-to-key association before relying on authentication.

The illustration is schematic. Example values are illustrative; profiles and later security guidance can add requirements.

Sources
Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
New to this? Start hereA quick picture + helpful background

A seal answers a specific question.

A certificate or signature supports particular checks about a key or message. It does not automatically prove that every claim or sender is trustworthy.

Helpful first, if these ideas are unfamiliar

These pictures are analogies to help you learn. The linked RFC explains the actual rules.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

All chapters in RFC 4251

Drawing view

Scroll the drawing to see every part. Playback controls stay above it.

RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗