Lune

Abstract

MEGA is a leading cloud storage platform with more than 250 million users and 1000 Petabytes of stored data. MEGA claims to offer user-controlled, end-to-end security. This is achieved by having all data encryption and decryption operations done on MEGA clients, under the control of keys that are only available to those clients. This is intended to protect MEGA users from attacks by MEGA itself, or by adversaries who have taken control of MEGA’s infrastructure.We provide a detailed analysis of MEGA’s use of cryptography in such a malicious server setting. We present five distinct attacks against MEGA, which together allow for a full compromise of the confidentiality of user files. Additionally, the integrity of user data is damaged to the extent that an attacker can insert malicious files of their choice which pass all authenticity checks of the client. We built proof-of-concept versions of all the attacks. Four of the five attacks are eminently practical. They have all been responsibly disclosed to MEGA and remediation is underway.Taken together, our attacks highlight significant shortcomings in MEGA’s cryptographic architecture. We present immediately deployable countermeasures, as well as longer-term recommendations. We also provide a broader discussion of the challenges of cryptographic deployment at massive scale under strong threat models.

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.

10 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

  • End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem cites Victory by KO: Attacking OpenPGP Using Key Overwriting
  • End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem cites Metal: A Metadata-Hiding File-Sharing System
  • End-to-End Encrypted Cloud Storage in the Wild: A Broken Ecosystem cites Caveat Implementor! Key Recovery Attacks on MEGA
  • The 9 Lives of Bleichenbacher's CAT: New Cache ATtacks on TLS Implementations cites Return Of Bleichenbacher's Oracle Threat (ROBOT)
  • MFKDF: Multiple Factors Knocked Down Flat cites Victory by KO: Attacking OpenPGP Using Key Overwriting
  • MFKDF: Multiple Factors Knocked Down Flat cites Caveat Implementor! Key Recovery Attacks on MEGA
  • Caveat Implementor! Key Recovery Attacks on MEGA cites Victory by KO: Attacking OpenPGP Using Key Overwriting
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers10

  1. Injection Attacks Against End-to-End Encrypted ApplicationsAndrés Fábrega, Carolina Ortega Pérez, Armin Namavari, Ben Nassi et al.S&P 2024 · 9 citations
  2. Caveat Implementor! Key Recovery Attacks on MEGAMartin R. Albrecht, Miro Haller, Lenka Mareková, Kenneth G. PatersonEUROCRYPT 2023 · 8 citations
  3. End-to-End Encrypted Cloud Storage in the Wild: A Broken EcosystemJonas Hofmann, Kien Tuong TruongCCS 2024 · 5 citations
  4. MFKDF: Multiple Factors Knocked Down FlatMatteo Scarlata, Matilda Backendal, Miro HallerUSENIX Security 2024 · 3 citations
  5. Formal Security and Functional Verification of Cryptographic Protocol Implementations in RustKarthikeyan Bhargavan, Lasse Letager Hansen, Franziskus Kiefer, Jonas Schneider-Bensch et al.CCS 2025 · 1 citation

Builds on7

  1. Return Of Bleichenbacher's Oracle Threat (ROBOT)Hanno Böck, Juraj Somorovsky, Craig YoungUSENIX Security 2018 · 69 citations
  2. The 9 Lives of Bleichenbacher's CAT: New Cache ATtacks on TLS ImplementationsEyal Ronen, Robert Gillham, Daniel Genkin, Adi Shamir et al.S&P 2019 · 59 citations
  3. Partitioning Oracle AttacksJulia Len, Paul Grubbs, Thomas RistenpartUSENIX Security 2021 · 57 citations
  4. Victory by KO: Attacking OpenPGP Using Key OverwritingLara Bruseghini, Daniel Huigens, Kenneth G. PatersonCCS 2022 · 6 citations
  5. Metal: A Metadata-Hiding File-Sharing SystemWeikeng Chen, Raluca Ada PopaNDSS 2020

Related papers

  1. A Formal Treatment of End-to-End Encrypted Cloud StorageMatilda Backendal, Hannah Davis, Felix Günther, Miro Haller et al.CRYPTO 2024 · 15 citations
  2. Zero Knowledge (About) Encryption: A Comparative Security Analysis of Three Cloud-based Password ManagersMatteo Scarlata, Giovanni Torrisi, Matilda Backendal, Kenneth G. PatersonUSENIX Security 2026
  3. Three Lessons From Threema: Analysis of a Secure MessengerKenneth G. Paterson, Matteo Scarlata, Kien Tuong TruongUSENIX Security 2023
  4. Data-strophy: When Your Integrity Goes Wild, So Does Your Data!Ya-Nan Li, Yaqing Song, Qiang Tang, Moti Yung et al.CCS 2026
  5. Automatic Detection of Fake Key Attacks in Secure MessagingTarun Kumar Yadav, Devashish Gosain, Amir Herzberg, Daniel Zappala et al.CCS 2022 · 6 citations
Dusk over the sea between two cliffs drawn in fine vertical lines