This paper, presented by researchers from Purdue, Penn State, and Indiana University, provides a significant leap forward in the design of Memory-Hard Functions (MHFs)—the cryptographic building blocks that keep your passwords safe from brute-force attacks.
TL;DR
The authors demonstrate that current "state-of-the-art" data-independent MHFs (like DRSample) are surprisingly vulnerable to simple greedy attacks. To solve this, they introduce DRSample+BRG, a new construction that is provably optimal against all known attacks and provides the first practical "sustained space" guarantee, all while remaining as fast as the industry-standard Argon2.
What Problem Does This Paper Address?
When you log into a website, your password isn't stored in plain text; it’s hashed. To prevent hackers from using specialized hardware (ASICs or FPGAs) to guess millions of passwords per second, we use Memory-Hard Functions (MHFs). These functions are designed to require a massive amount of RAM to compute, making brute-force attacks prohibitively expensive.
There are two types: Data-Dependent (dMHF), where memory access depends on the password (fast but vulnerable to side-channel attacks like cache-timing), and Data-Independent (iMHF), where the access pattern is fixed (secure against side-channels but historically harder to make "hard" enough).
The "gold standard" iMHF, Argon2i, and newer theoretical constructions like DRSample, were thought to be highly resistant to attacks. However, this paper reveals that simple "greedy" strategies can drastically reduce the cost for an attacker, and that existing functions don't effectively force an attacker to use a large amount of memory continuously (sustained space complexity).
Methods
The researchers attacked the problem from three angles:
- New Attacks: They analyzed the Greedy Pebbling strategy, showing it is devastatingly effective against DRSample. They also developed a novel Greedy Depth Reduce heuristic to find small sets of nodes in a graph that, when removed, significantly reduce the "depth" (and thus the computation time) for an attacker.
- New Construction (DRSample+BRG): They proposed a new graph-based iMHF by "overlaying" a Bit-Reversal Graph (BRG) on top of a DRSample graph. This hybrid approach inherits the depth-robustness of DRSample and the sequential hardness of BRG.
- Round Function Hardening: They identified that the internal "round function" of Argon2 (based on Blake2b) could be parallelized by an ASIC attacker for an 8x speedup. They proposed a simple XOR-based modification to make this function inherently sequential.
- Theoretical Proofs: They provided a new "pebbling reduction" proof. Most theoretical proofs assume inputs are concatenated before hashing; the authors proved that the more efficient XOR-based labeling used in practice is just as secure for a wide class of graphs.
Datasets
As a theoretical and algorithmic paper, the "datasets" consist of directed acyclic graphs (DAGs) representing memory dependencies:
- Graph Sizes: Evaluated on $N = 2^{14}$ to $2^{24}$ nodes (representing memory footprints from 16MB to 16GB).
- Benchmarks: The authors implemented their new iMHF and benchmarked its running time against the standard Argon2i implementation on an Intel Core i5-6600K CPU.
Key Insights and Ideas
- Greedy is Powerful: Simple, easy-to-implement greedy pebbling strategies can outperform complex, mathematically-derived attacks on certain graph structures.
- The Power of Overlays: You don't need to reinvent the wheel. By combining two different graph types (DRSample for depth-robustness and BRG for sequentiality), you create a structure that is stronger than the sum of its parts.
- Sustained Space is the New Frontier: It’s not enough to require some memory; a truly strong MHF should force the attacker to use a lot of memory for the entire duration of the calculation. DRSample+BRG is the first practical construction to achieve this.
- Don't Ignore the Round Function: Even if your high-level graph is secure, if your low-level hash function can be parallelized on a chip, you've given the attacker a massive advantage.
Key Results
- Attack Quality: On the DRSample graph, the greedy attack achieved an "attack quality" of ~24 (meaning it's 24x cheaper for the attacker). On the new DRSample+BRG, the quality never exceeded 6, even for very large memory sizes.
- Sustained Space: They proved that any attack on DRSample+BRG either costs $\omega(N^2)$ or requires $\Omega(N)$ steps with $\Omega(N/\log N)$ pebbles—a massive win for defenders.
- Performance: The new construction is just as fast as Argon2 for legitimate users. The modified round function adds negligible overhead (~3% difference) but increases an attacker's cost by nearly an order of magnitude.
- Optimality: The construction is asymptotically optimal across every major MHF security metric (aAT, sequential ST-complexity, and sustained space).
Limitations and Future Work
- Conjectures: Some of the strongest theoretical bounds for DRSample+BRG rely on a "plausible conjecture" regarding the depth-robustness of the underlying DRSample graph. While empirical evidence supports it, a formal proof remains an open challenge.
- ASIC Implementation: While the paper provides a CPU implementation, the authors note that their attacks have not yet been implemented on actual ASICs to measure real-world energy/area costs.
- Cryptanalysis: The authors invite the community to further analyze their modified "sequential" round function to ensure no new algebraic vulnerabilities were introduced.
Summary updated