Formally Modeling the Terrapin Attack on SSH
Researchers formally model the Terrapin SSH attack and show which AEAD modes remain secure.
An arXiv cs.CR paper formally models SSH channel integrity when an attacker can partially choose channel state, using the sequence number as in the 2024 Terrapin attack. It gives pseudocode for eight prominent SSH AEAD modes and varies the sending oracle across ciphertext-only, known-plaintext, and chosen-plaintext attacks. All three Encrypt-then-MAC modes and ChaCha20-Poly1305 are insecure in the ciphertext-only model, while AES-GCM is secure in all three. Encrypt-and-MAC with CBC remains secure under known plaintext, but a new BEAST-like chosen-plaintext attack breaks its channel integrity.