arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.10269cs.CRcs.OScs.SE
收藏

SoftTRR:使用纯软件目标行刷新保护页表免受RowHammer攻击

SoftTRR: Protect Page Tables Against RowHammer Attacks using Software-only Target Row Refresh

Zhi Zhang, Yueqiang Cheng, Minghua Wang, Wei He, Wenhao Wang, Nepal Surya, Yansong Gao, Kang Li, Zhe Wang, Chenggang Wu

摘要:

Rowhammer攻击破坏一级页表以获得内核特权,是对系统安全最有害的攻击,并且很难缓解。然而,最近提出的仅限软件的缓解措施对此类内核权限提升攻击无效。在本文中,我们提出了一个有效的和实用的纯软件的防御,称为SoftTRR,以保护页表从所有现有的rowhammer攻击x86。SoftTRR的核心思想是在检测到可疑的rowhammer活动时刷新页表占用的行。SoftTRR由基于DRAM芯片的目标行刷新(ChipTRR)驱动,但消除了其主要的安全限制(即,ChipTRR跟踪有限数量的行,因此可以被多面锤绕过)。具体地,SoftTRR通过跟踪对与页表行非常接近的行的存储器访问并且一旦跟踪的访问计数超过预定义阈值就刷新页表行来保护无限数量的页表。我们实现了一个原型的SoftTRR的内核模块,并评估其安全性的有效性,性能开销,和内存消耗。实验结果表明,SoftTRR保护页表免受真实世界的rowhammer攻击,并带来很小的性能开销以及内存成本。

英文摘要:

Rowhammer attacks that corrupt level-1 page tables to gain kernel privilege are the most detrimental to system security and hard to mitigate. However, recently proposed software-only mitigations are not effective against such kernel privilege escalation attacks. In this paper, we propose an effective and practical software-only defense, called SoftTRR, to protect page tables from all existing rowhammer attacks on x86. The key idea of SoftTRR is to refresh the rows occupied by page tables when a suspicious rowhammer activity is detected. SoftTRR is motivated by DRAM-chip-based target row refresh (ChipTRR) but eliminates its main security limitation (i.e., ChipTRR tracks a limited number of rows and thus can be bypassed by many-sided hammer). Specifically, SoftTRR protects an unlimited number of page tables by tracking memory accesses to the rows that are in close proximity to page-table rows and refreshing the page-table rows once the tracked access count exceeds a pre-defined threshold. We implement a prototype of SoftTRR as a loadable kernel module, and evaluate its security effectiveness, performance overhead, and memory consumption. The experimental results show that SoftTRR protects page tables from real-world rowhammer attacks and incurs small performance overhead as well as memory cost.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑