Terrapin Attack (CVE-2023-48795)
Qu'est-ce que Terrapin Attack (CVE-2023-48795) ?
Terrapin Attack (CVE-2023-48795)A 2023 prefix-truncation flaw in the SSH transport protocol that allows an active network attacker to silently downgrade or strip extensions during the handshake, weakening features like keystroke timing protection.
The Terrapin attack (CVE-2023-48795), disclosed by Bäumer, Brinkmann, and Schwenk in December 2023, is a prefix-truncation flaw in the SSH binary packet protocol. By manipulating packet sequence numbers during the initial KEX handshake — specifically when ChaCha20-Poly1305 (`chacha20-poly1305@openssh.com`) or CBC-EtM ciphers are used — a man-in-the-middle attacker can truncate the secure channel's initial messages without the integrity check failing, causing both ends to disagree about which extensions were negotiated. The most cited practical impact is silently disabling extensions such as keystroke-timing obfuscation; the underlying primitive can also weaken implementation-specific authentication features (notably AsyncSSH's CVE-2023-46446). Terrapin spurred quick fixes: OpenSSH 9.6 introduced a strict KEX mode that resets sequence numbers, and most major SSH implementations (Dropbear, libssh, PuTTY, Bitvise, Cisco IOS) followed. Mitigation is to upgrade clients and servers so both negotiate `strict-kex`, and to prefer AES-GCM ciphers, which are unaffected.
● Exemples
- 01
An attacker positioned between two SSH peers truncates the KEX handshake so a keystroke-timing extension never gets negotiated, then mounts a timing attack on the user's password.
- 02
An infrastructure team rolls out OpenSSH 9.6 across all jump hosts; the new `strict-kex` negotiation reports `kex_strict_s_v00@openssh.com` and blocks the truncation primitive.
● Questions fréquentes
Qu'est-ce que Terrapin Attack (CVE-2023-48795) ?
A 2023 prefix-truncation flaw in the SSH transport protocol that allows an active network attacker to silently downgrade or strip extensions during the handshake, weakening features like keystroke timing protection. Cette notion relève de la catégorie Attaques et menaces en cybersécurité.
Que signifie Terrapin Attack (CVE-2023-48795) ?
A 2023 prefix-truncation flaw in the SSH transport protocol that allows an active network attacker to silently downgrade or strip extensions during the handshake, weakening features like keystroke timing protection.
Comment fonctionne Terrapin Attack (CVE-2023-48795) ?
The Terrapin attack (CVE-2023-48795), disclosed by Bäumer, Brinkmann, and Schwenk in December 2023, is a prefix-truncation flaw in the SSH binary packet protocol. By manipulating packet sequence numbers during the initial KEX handshake — specifically when ChaCha20-Poly1305 (`chacha20-poly1305@openssh.com`) or CBC-EtM ciphers are used — a man-in-the-middle attacker can truncate the secure channel's initial messages without the integrity check failing, causing both ends to disagree about which extensions were negotiated. The most cited practical impact is silently disabling extensions such as keystroke-timing obfuscation; the underlying primitive can also weaken implementation-specific authentication features (notably AsyncSSH's CVE-2023-46446). Terrapin spurred quick fixes: OpenSSH 9.6 introduced a strict KEX mode that resets sequence numbers, and most major SSH implementations (Dropbear, libssh, PuTTY, Bitvise, Cisco IOS) followed. Mitigation is to upgrade clients and servers so both negotiate `strict-kex`, and to prefer AES-GCM ciphers, which are unaffected.
Comment se défendre contre Terrapin Attack (CVE-2023-48795) ?
Les défenses contre Terrapin Attack (CVE-2023-48795) combinent habituellement des contrôles techniques et des pratiques opérationnelles, comme détaillé dans la définition ci-dessus.
Quels sont les autres noms de Terrapin Attack (CVE-2023-48795) ?
Noms alternatifs courants : CVE-2023-48795, SSH prefix truncation.
● Termes liés
- network-security№ 1205
SSH
Protocole reseau cryptographique (RFC 4251, port 22) qui fournit une session a distance, l'execution de commandes et des tunnels authentifies, chiffres et integres sur un reseau non fiable.
- attacks№ 724
Attaque de l'homme du milieu (MitM)
Attaque dans laquelle un adversaire relaie ou modifie secrètement les communications entre deux parties qui pensent dialoguer directement.
- network-security№ 1280
Handshake TLS
Echange initial du protocole Transport Layer Security qui authentifie le serveur (et eventuellement le client) et derive les cles symetriques chiffrant le reste de la session.
- cryptography№ 190
Suite cryptographique
Combinaison nommée d'algorithmes — échange de clés, authentification, chiffrement, intégrité — négociée par des protocoles comme TLS pour une session donnée.
- cryptography№ 179
ChaCha20-Poly1305
Construction AEAD associant le chiffrement en flux ChaCha20 a l'authentificateur a usage unique Poly1305, normalisee par RFC 8439 pour TLS 1.3 et WireGuard.
- attacks№ 1211
Attaque de retrogradation SSL/TLS
Attaque MITM active qui force client et serveur a negocier une version, une suite de chiffrement ou une taille de cle plus faibles pour preparer la compromission.