← Lab /Security & privacy

AES-GCM is the only SSH AEAD mode secure against Terrapin-style attacks

AES-GCM remains secure under ciphertext-only, known-plaintext, and chosen-plaintext models while other AEAD modes are insecure

Security & privacy arXiv 22 Sep 2026 Theory Theory

Published as “Formally Modeling the Terrapin Attack on SSH”

Why it matters

Implementers can rely on GCM and EaM-CBC (under KPA) for SSH deployments, but must avoid EtM modes and ChaCha20-Poly1305 unless stronger protections are added.

Summary

The paper formally proves that EtM modes and ChaCha20-Poly1305 are insecure against the Terrapin attack, while GCM, EaM-CBC and EaM-CTR are secure in the weakest (CO) model and GCM remains secure even against CPA attacks; EaM-CBC is broken under CPA but secure under KPA. The evidence consists of provable security reductions and explicit attacks, so the claims are strongly supported by formal proofs.

What they found 4

  1. All EtM modes and ChaCha20-Poly1305 are insecure in the CO (ciphertext-only) model.

    “In the CO variant, which captures the Terrapin attack, we prove that all EtM modes and ChaCha20-Poly1305 are insecure.”

  2. GCM, EaM-CBC and EaM-CTR are CO-secure (unaffected by Terrapin).

    “we prove that the “unaffected” modes GCM, EaM-CBC and EaM-CTR are in fact CO-secure.”

  3. GCM remains secure even against CPA-level attackers.

    “SFSSH GCM is CINT-PCSA-CPAsecure”

  4. EaM-CBC is insecure under CPA but secure under KPA.

    “In Section 5.6, we show that this mode is not CINT-PCSA-CPA-secure.”

Caveats 3

  • In our model, EtM schemes are unconditionally vulnerable, while in [5], these schemes are classified as “affected with limited exploitability”.
  • We do not model the application-layer protocols to which the plaintexts of the secure channel are delivered.
  • We are not considering IND-CCA2 security in this paper.

What’s new here 4

  • First formal security model that includes partially chosen channel state for SSH.
  • Mapping of SSH stateful encryption schemes to AEAD inputs, enabling unified analysis.
  • Proof that EtM modes and ChaCha20-Poly1305 are unconditionally vulnerable, contrary to prior informal assessments.
  • Identification of the exact attacker capabilities (CO, KPA, CPA) needed to break each SSH cipher mode.