Advance Rowhammer Tactics Avoid Existing of DDR4 Memory Defenses

Investigators have set up an advance fuzzing-based tactics called “Blacksmith” that encourage Rowhammer vulnerability attacks against modern DRAM devices that avoid the existing mitigations. The emergence of this new Blacksmith method demonstrates that today’s DDR4 modules are vulnerable to exploitation, permitting a variety of attacks to be conducted.

What are the Ransomware Effects 

Rawhammer is a security exploit that relies on the leaking of electrical charges between adjacent memory cells, allowing a threat actor to flip 1s and 0s and change the content in the memory.

This powerful attack can avoid all software-based security mechanisms, famous for privilege escalation, memory corruption, and more. It was first discovered in 2014, and within a year, two working privilege escalation exploits based on the investigators were already available.

Gradually, this became a widespread problem, and even Android tools were developed, exploiting the Rowhammer vulnerability on smartphones to gain root access. The mitigations applied to address this bit-flipping problem showed the first signs of their insufficiency in March 2020, when academic researchers proved that a bypass was possible.

Manufacturers had implemented a set of mitigations called “Target Row Refresh” (TRR), which were mainly effective in keeping the then-new DDR4 safe from attacks. The attack used against it was called ‘TRRespass,’ and was another fuzzing-based technique that successfully found usable Rowhammering patterns.      

How they are fuzzing a new way?

‘TRRespass’ was able to find effective patterns in 14 of the 40 tested DIMMs, realizing a roughly 37.5% success. However, ‘Blacksmith’ found effective Rowhammer patterns on all of the 40 tested DIMMs. The trick that the researchers used this time is not to approach the hammering patterns uniformly but instead explore non-uniform structures that can still bypass TRR.

The team used to order, regularity, and intensity parameters to design frequency-based Rowhammer patterns and then fed them to the Blacksmith fuzzer to find working values.

Advance-Rowhammer-Tactics-Avoid-Existing-of-DDR4-Memory-Defenses-image1

The fuzzer ran for 12 hours and yielded the optimal parameters to use in a Blacksmith attack. Using these values, the researchers were able to perform bit flips over a contiguous memory area of 256 MB.

To prove that this is exploitable in real-world scenarios, the team performed test attacks that allowed them to retrieve private keys for public RSA-2048 keys used to authenticate to an SSH host.

Concluding, our work confirms that the DRAM vendors’ claims about Rowhammer protections are false and lure you into a false sense of security. All currently deployed mitigations are insufficient to fully protect against Rowhammer. Our novel patterns show that attackers can more easily exploit systems than previously assumed. – Comsec.

Comsec further found that while using ECC DRAM will make exploitation harder, they will not defend against all Rowhammer attacks.

DDR5 may be safer

Newer DDR5 DRAM modules are already available in the market, and adoption will pick up pace in the next couple of years.

In DDR5, Rowhammer may not be as much of a problem, as TRR is replaced by “refresh management,” a system that keeps track of activations in a bank and issues selective refreshes once a threshold is reached. This means that scalable fuzzing on a DDR5 DRAM device would be a lot harder and possibly a lot less effective, but that remains to be seen.

Leave a Reply