Urgent.News

What's breaking now, across thousands of outlets.

Tech

Spaghettifying DRAM

Article URL: https://github.com/xoreaxeaxeax/skitter-creek-bath-salts Comments URL: https://news.ycombinator.com/item?id=49286341 Points: 297 # Comments: 86

The source material discusses a technique called "spaghettifying DRAM" which involves reconfiguring the memory controller to scramble the physical addresses used by the CPU to access memory. This reconfiguration exposes protected regions of memory that are typically hidden from the operating system and security mechanisms. By manipulating the memory controller's translation registers, an attacker can map any physical address to a different DRAM location, allowing them to access memory regions that should be inaccessible.

The article explains that this technique can be applied to a wide range of architectures and generations of CPUs, including AMD's last generation. The scrambler works by modifying the final layer of the memory hierarchy, the physical-to-DRAM address translation, which is not protected by existing security mechanisms. When the memory is scrambled, the CPU's dereferencing of virtual addresses no longer points to the expected DRAM locations, creating a "spaghettified" view of memory where the traditional protections no longer apply.

The author provides a step-by-step explanation of how to perform this attack, including disabling other system components, flushing caches, and serializing memory accesses to maintain system stability during the scrambling process. They also discuss the challenges of reconstructing the scrambled memory once the scrambling is complete, which involves solving a linear algebra problem using the Z3 theorem prover to determine the transformation applied by the memory controller.

Overall, the source material describes a sophisticated attack that exploits vulnerabilities in the memory hierarchy to bypass existing security measures and gain unauthorized access to protected memory regions.

Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at github.com →

More in Tech

More from Thursday 13 August →