We will build a reinforcement learning environment in which language models can be post-trained to exploit RowHammer vulnerabilities in simulated DRAM. In RowHammer attacks, an adversary rapidly accesses (“hammers”) DRAM rows, which can cause bits to flip in physically adjacent memory. RowHammer has been demonstrated to enable privilege escalation over the network and extract keys from a secure enclave.
We have already built a proof of concept of this environment, the code for which is available here. Our environment uses Ramulator 2.1 (https://arxiv.org/abs/2606.13844) to simulate DRAM, and we fit a read-disturbance model using real data, which allows us to simulate RowHammer-vulnerable DRAM with a high degree of realism.
The concrete outputs of our work will be:
- An open source environment for training models to exploit RowHammer vulnerabilities in simulated DRAM
- A write-up of our environment and a blog post arguing that humanity is dropping the ball on automating hardware security research
- Models post-trained in our environment
We also plan to build other hardware security environments, though this may end up out of scope for this grant depending on how difficult building the RowHammer environment ends up being.