NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MrCrypt: static analysis for secure cloud computations

Sai Deep Tetali, Mohsen Lesani, Rupak Majumdar, Todd D. MillsteinOOPSLA 2013

TL;DR

This paper introduces MrCrypt, a system that enables secure cloud computations on encrypted data by automatically transforming Java programs. It statically analyzes programs to infer the most efficient homomorphic encryption scheme for each data column, significantly reducing the need for computationally expensive fully homomorphic encryption.

What Problem Does This Paper Address?

Cloud computing offers significant advantages in terms of scalability and cost, but it also introduces security concerns. When clients upload their data and computations to third-party cloud providers, their sensitive data can be exposed to potential adversaries, whether they are other clients on the same machine or malicious administrators. While encrypting data before uploading it to the cloud is a common solution, performing computations directly on encrypted data has historically been prohibitively expensive, especially with fully homomorphic encryption. This paper addresses the challenge of performing computations on encrypted data in the cloud efficiently and securely, without requiring the client to decrypt and re-encrypt data for every operation.

Methods

MrCrypt employs a novel approach that combines static analysis with homomorphic encryption. The core of the system is encryption scheme inference, a static analysis technique that determines the most appropriate homomorphic encryption scheme for each column of input data. This is achieved by modeling encryption schemes as a lattice, where "lesser" schemes support fewer operations but are more efficient. The analysis identifies the set of operations performed on each data column and selects the highest possible scheme in the lattice that supports those operations.

Once the optimal encryption schemes are identified, MrCrypt performs a source-to-source transformation of the Java program. Primitive operations in the original program are replaced with their homomorphic equivalents, and program constants are replaced with their pre-encrypted values. The transformed program and the encrypted data are then sent to the cloud for execution. The results are decrypted on the client side. The system formalizes this process and provides soundness and security guarantees.

Datasets

The paper evaluates MrCrypt on three standard MapReduce benchmark suites: PIGMIX2, the Brown suite, and the Purdue MapReduce Benchmarks (PUMA) Suite. The PUMA suite includes large datasets, up to 50GB, for various benchmarks. The authors also created modified versions of some benchmarks (Histogram Movies 1 and 2) to avoid the need for fully homomorphic encryption.

Key Insights and Ideas

  • Homomorphic Encryption Lattice: The paper introduces the concept of a lattice of encryption schemes, where schemes are ordered by their supported operations and efficiency. This allows for a principled way to select the most efficient scheme for a given set of operations.
  • Static Analysis for Scheme Inference: The key insight is that many cloud computations involve a limited set of operations on data columns. By statically analyzing the program, MrCrypt can infer these operations and avoid the need for computationally expensive fully homomorphic encryption for the entire dataset.
  • Practicality of Partially Homomorphic Encryption: The experiments demonstrate that fully homomorphic encryption is rarely required for real-world MapReduce programs, making partially homomorphic encryption schemes a practical and efficient solution for data confidentiality in the cloud.
  • Automated Program Transformation: MrCrypt automates the complex process of transforming programs to work with encrypted data, significantly reducing the burden on developers.

Key Results

  • MrCrypt successfully applied encryption scheme inference to 36 benchmarks, identifying efficient encryption schemes for 24 of them without requiring fully homomorphic encryption (66.7% success rate).
  • The analysis and translation time for MrCrypt were very fast, typically less than 5 seconds per benchmark.
  • On average, transformed programs ran 1.57x slower than their plaintext counterparts, with a 2.88x increase in space for input data. This overhead is considered acceptable given the security guarantees.
  • The system demonstrated that in some cases, encrypted execution could even be faster than plaintext execution due to the use of more efficient binary formats for encrypted data.

Limitations and Future Work

  • Data Integrity: MrCrypt currently only addresses data confidentiality and does not provide guarantees for data integrity or completeness of results. This is identified as an area for future work.
  • Floating-Point Numbers and Division: The current implementation does not efficiently support floating-point numbers or division operations, requiring workarounds or modifications to benchmarks.
  • Manual Annotations: While MrCrypt automates much of the process, some manual annotations are required for parsing input data and for indicating when sorting of keys is not necessary.
  • Refactoring for FH Avoidance: The paper suggests that refactoring programs to avoid the need for fully homomorphic encryption (as demonstrated with the Histogram Movies example) is a promising direction for extending the applicability of the approach.
  • More Sophisticated Analysis: Future work could involve more sophisticated static analysis techniques to automatically infer more complex operations and data structures.

Summary updated

BibTeX
@inproceedings{tetali2013mrcrypt,
  author = {Sai Deep Tetali and Mohsen Lesani and Rupak Majumdar and Todd D. Millstein},
  title = {{MrCrypt: static analysis for secure cloud computations}},
  booktitle = {OOPSLA},
  year = {2013},
  doi = {10.1145/2509136.2509554},
}
Figure