[Paper Review] DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
This paper presents DRAMA, a novel class of cross-CPU side-channel and covert channel attacks that exploit undocumented DRAM address mappings to access shared DRAM row buffers across processors without shared memory. By reverse-engineering memory mappings via physical probing or software-based timing analysis, DRAMA enables a 2 Mbps covert channel and a side-channel attack that locates and monitors memory accesses with cache-attack-level precision, even on DDR4 systems, demonstrating practical Rowhammer attacks in isolated cloud environments.
In cloud computing environments, multiple tenants are often co-located on the same multi-processor system. Thus, preventing information leakage between tenants is crucial. While the hypervisor enforces software isolation, shared hardware, such as the CPU cache or memory bus, can leak sensitive information. For security reasons, shared memory between tenants is typically disabled. Furthermore, tenants often do not share a physical CPU. In this setting, cache attacks do not work and only a slow cross-CPU covert channel over the memory bus is known. In contrast, we demonstrate a high-speed covert channel as well as the first side-channel attack working across processors and without any shared memory. To build these attacks, we use the undocumented DRAM address mappings. We present two methods to reverse engineer the mapping of memory addresses to DRAM channels, ranks, and banks. One uses physical probing of the memory bus, the other runs entirely in software and is fully automated. Using this mapping, we introduce DRAMA attacks, a novel class of attacks that exploit the DRAM row buffer that is shared, even in multi-processor systems. Thus, our attacks work in the most restrictive environments. First, we build a covert channel with a capacity of up to 2 Mbps, which is three to four orders of magnitude faster than memory-bus-based channels. Second, we build a side-channel template attack that can automatically locate and monitor memory accesses. Third, we show how using the DRAM mappings improves existing attacks and in particular enables practical Rowhammer attacks on DDR4.
Motivation & Objective
- To address the lack of effective cross-CPU side-channel and covert channel attacks in cloud environments where shared memory is disabled and VMs are isolated across different physical CPUs.
- To reverse-engineer the undocumented mapping of physical memory addresses to DRAM channels, ranks, and banks in multi-processor systems.
- To exploit the shared DRAM row buffer across processors as a new side-channel primitive for high-precision memory access monitoring and covert communication.
- To demonstrate practical Rowhammer attacks on DDR4 memory by leveraging the reverse-engineered DRAM addressing scheme.
- To show that existing countermeasures like TRR and memory access restrictions are ineffective against the proposed attacks.
Proposed method
- Reverse-engineer DRAM address mappings using physical probing of the memory bus to extract timing and access patterns from memory transactions.
- Develop a fully automated, software-only method that infers DRAM mappings by measuring timing differences in memory access patterns across different addresses.
- Leverage the reverse-engineered mappings to target the shared DRAM row buffer, which persists across CPU cores and memory modules in multi-processor systems.
- Implement a high-bandwidth covert channel by manipulating row buffer states through controlled memory accesses, achieving up to 2 Mbps throughput.
- Design a side-channel template attack that identifies and monitors memory access patterns using DRAM row buffer behavior, with precision comparable to Flush+Reload.
- Extend existing Rowhammer attacks to DDR4 by using the DRAM address mappings to efficiently target vulnerable rows, even in the presence of TRR countermeasures.
Experimental results
Research questions
- RQ1Can a high-speed covert channel be built across processors without shared memory by exploiting undocumented DRAM addressing?
- RQ2Is it possible to perform precise side-channel monitoring of memory accesses across processors using only timing information and no shared memory?
- RQ3Can the DRAM row buffer, a shared component across CPUs, be exploited as a side-channel primitive in isolated multi-processor systems?
- RQ4Can the reverse-engineered DRAM address mappings enable practical Rowhammer attacks on DDR4 memory, even with TRR enabled?
- RQ5What are the limitations of existing countermeasures like TRR and access restrictions in defending against such attacks?
Key findings
- A covert channel was implemented with a capacity of up to 2 Mbps, representing a 3-4 order-of-magnitude improvement over existing memory-bus-based covert channels.
- The software-based reverse-engineering method successfully mapped DRAM addresses across multiple platforms, including consumer PCs, dual-CPU servers, and recent smartphones.
- On a DDR4-2133 memory module with TRR support, the authors observed bit flips after 16 seconds and one every 12 seconds, demonstrating that TRR does not fully prevent Rowhammer attacks.
- The side-channel attack achieved accuracy comparable to Flush+Reload, enabling automatic detection and monitoring of memory accesses without shared memory.
- The DRAMA framework enabled practical Rowhammer attacks on DDR4, even when TRR was enabled, by precisely targeting vulnerable rows using the reverse-engineered address mappings.
- The attacks remain effective even when the attacker cannot access shared memory or rely on cache coherency, proving that the DRAM row buffer is a viable cross-CPU side-channel.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.