Lune

CCS2022Top-tier venue

Victory by KO: Attacking OpenPGP Using Key Overwriting

Lara Bruseghini, Daniel Huigens, Kenneth G. Paterson

Abstract

We present a set of attacks on the OpenPGP specification and implementations of it which result in full recovery of users' private keys. The attacks exploit the lack of cryptographic binding between the different fields inside an encrypted private key packet, which include the key algorithm identifier, the cleartext public parameters, and the encrypted private parameters. This allows an attacker who can overwrite certain fields in OpenPGP key packets to perform cross-algorithm attacks, causing a user's software to, for example, misinterpret an ECC private key as being a DSA key. It also allows an attacker to replace the legitimate public parameters with adversarially chosen ones, e.g. allowing them to select the DSA group. We refer to this class of attacks as Key Overwriting (KO) attacks. We provide a detailed analysis of the vulnerability of different OpenPGP libraries to KO attacks, showing in particular that in some cases additional key validation steps performed by libraries that should prevent the attacks in fact allow variant attacks. We also assess the applicability of KO attacks in the context of specific OpenPGP-based applications that reflect different threat models. Finally, we explain how KO attacks can be completely prevented (and the need for key validation obsoleted) at the OpenPGP specification level by expanding the existing proposal of using AEAD schemes for key packet protection to have all the security-relevant public fields included as Associated Data. Version (4) Creation Date Key Algorithm (ECDSA) Curve identifier 𝑂 Public point 𝑄 Public fields (fingerprinted)

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

6 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password Managers cites End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem
  • Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password Managers cites MEGA: Malleable Encryption Goes Awry
  • Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password Managers cites MFKDF: Multiple Factors Knocked Down Flat
  • Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password Managers cites Caveat Implementor! Key Recovery Attacks on MEGA
  • On the (In)Security of ElGamal in OpenPGP cites Efail: Breaking S/MIME and OpenPGP Email Encryption using Exfiltration Channels
  • End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem cites MEGA: Malleable Encryption Goes Awry
  • End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem cites Caveat Implementor! Key Recovery Attacks on MEGA
  • MFKDF: Multiple Factors Knocked Down Flat cites MEGA: Malleable Encryption Goes Awry
  • MFKDF: Multiple Factors Knocked Down Flat cites Caveat Implementor! Key Recovery Attacks on MEGA
  • Caveat Implementor! Key Recovery Attacks on MEGA cites MEGA: Malleable Encryption Goes Awry
  • A Performant, Misuse-Resistant API for Primality Testing cites Prime and Prejudice: Primality Testing Under Adversarial Conditions
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers6

  1. Caveat Implementor! Key Recovery Attacks on MEGAMartin R. Albrecht, Miro Haller, Lenka Mareková, Kenneth G. PatersonEUROCRYPT 2023 · 8 citations
  2. End-to-End Encrypted Cloud Storage in the Wild: A Broken EcosystemJonas Hofmann, Kien Tuong TruongCCS 2024 · 5 citations
  3. MFKDF: Multiple Factors Knocked Down FlatMatteo Scarlata, Matilda Backendal, Miro HallerUSENIX Security 2024 · 3 citations
  4. Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password ManagersMatteo Scarlata, Giovanni Torrisi, Matilda Backendal, Kenneth G. PatersonUSENIX Security 2026
  5. MEGA: Malleable Encryption Goes AwryMatilda Backendal, Miro Haller, Kenneth G. PatersonS&P 2023

Builds on4

  1. Efail: Breaking S/MIME and OpenPGP Email Encryption using Exfiltration ChannelsDamian Poddebniak, Christian Dresen, Jens Müller, Fabian Ising et al.USENIX Security 2018 · 64 citations
  2. Prime and Prejudice: Primality Testing Under Adversarial ConditionsMartin R. Albrecht, Jake Massimo, Kenneth G. Paterson, Juraj SomorovskyCCS 2018 · 21 citations
  3. On the (In)Security of ElGamal in OpenPGPLuca De Feo, Bertram Poettering, Alessandro SorniottiCCS 2021 · 7 citations
  4. A Performant, Misuse-Resistant API for Primality TestingJake Massimo, Kenneth G. PatersonCCS 2020

Related papers

  1. Measuring small subgroup attacks against Diffie-HellmanLuke Valenta, David Adrian, Antonio Sanso, Shaanan Cohney et al.NDSS 2017 · 34 citations
  2. May the Fourth Be With You: A Microarchitectural Side Channel Attack on Several Real-World Applications of Curve25519Daniel Genkin, Luke Valenta, Yuval YaromCCS 2017 · 75 citations
  3. Mitigation of Attacks on Email End-to-End EncryptionJörg Schwenk, Marcus Brinkmann, Damian Poddebniak, Jens Müller et al.CCS 2020 · 10 citations
  4. Partitioning Oracle AttacksJulia Len, Paul Grubbs, Thomas RistenpartUSENIX Security 2021 · 57 citations
  5. "Johnny, you are fired!" - Spoofing OpenPGP and S/MIME Signatures in EmailsJens Müller, Marcus Brinkmann, Damian Poddebniak, Hanno Böck et al.USENIX Security 2019 · 34 citations
Dusk over the sea between two cliffs drawn in fine vertical lines