Terrapin Attack (CVE-2023-48795)
O 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.
● Exemplos
- 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.
● Perguntas frequentes
O 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. Pertence à categoria Ataques e ameaças da cibersegurança.
O que significa 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.
Como funciona 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.
Como se defender contra Terrapin Attack (CVE-2023-48795)?
As defesas contra Terrapin Attack (CVE-2023-48795) costumam combinar controles técnicos e práticas operacionais, conforme detalhado na definição acima.
Quais são outros nomes para Terrapin Attack (CVE-2023-48795)?
Nomes alternativos comuns: CVE-2023-48795, SSH prefix truncation.
● Termos relacionados
- network-security№ 1205
SSH
Protocolo de rede criptografico (RFC 4251, porta 22) que oferece login remoto, execucao de comandos e tunelamento autenticados, cifrados e com integridade sobre redes nao confiaveis.
- attacks№ 724
Ataque do tipo Man-in-the-Middle
Ataque em que um adversário retransmite ou altera secretamente as comunicações entre duas partes que julgam estar a falar diretamente uma com a outra.
- network-security№ 1280
Handshake TLS
Troca inicial do protocolo Transport Layer Security que autentica o servidor (e opcionalmente o cliente) e deriva as chaves simetricas que cifram o restante da sessao.
- cryptography№ 190
Suíte criptográfica
Combinação nomeada de algoritmos criptográficos — troca de chaves, autenticação, cifragem e integridade — negociada por protocolos como o TLS para uma dada sessão.
- cryptography№ 179
ChaCha20-Poly1305
Construcao AEAD que combina a cifra de fluxo ChaCha20 com o autenticador de uso unico Poly1305, padronizada na RFC 8439 para TLS 1.3 e WireGuard.
- attacks№ 1211
Ataque de Downgrade SSL/TLS
Ataque MITM ativo que forca cliente e servidor a negociar uma versao, cifra ou tamanho de chave mais fracos para permitir o comprometimento posterior.