RevAnC: A framework for reverse engineering hardware page table caches

Stephan Van Schaik, Kaveh Razavi, Ben Gras, Herbert Bos, Cristiano Giuffrida

Research output: Chapter in Book / Report / Conference proceedingConference contributionAcademicpeer-review

119 Downloads (Pure)

Abstract

Recent hardware-based attacks that compromise systems with Rowhammer or bypass address-space layout random- ization rely on how the processor's memory management unit (MMU) interacts with page tables. These attacks often need to reload page tables repeatedly in order to observe changes in the target system's behavior. To speed up the MMU's page table lookups, modern processors make use of multiple levels of caches such as translation lookaside buffers (TLBs), special-purpose page table caches and even general data caches. A successful attack needs to ush these caches reliably before accessing page tables. To ush these caches from an unprivileged process, the attacker needs to create specialized memory access patterns based on the internal architecture and size of these caches as well as how they in- teract with each other. While information about TLBs and data caches are often reported in processor manuals released by the vendors, there is typically little or no information about the properties of page table caches on different pro- cessors. In this paper, we describe RevAnC, an open-source framework for reverse engineering internal architecture, size and the behavior these page table caches by retrofitting a recently proposed EVICT+TIME attack on the MMU. RevAnC can automatically reverse engineer page table caches on new architectures while providing a convenient interface for ush- ing these caches on 23 different microarchitectures that we evaluated from Intel, ARM and AMD.

Original languageEnglish
Title of host publicationEuroSec'17: Proceedings of the 10th European Workshop on Systems Security
PublisherAssociation for Computing Machinery, Inc
Pages1-6
Number of pages6
ISBN (Print)9781450349352
DOIs
Publication statusPublished - Apr 2017
Event10th European Workshop on Systems Security, EuroSec 2017, co-located with European Conference on Computer Systems, EuroSys 2017 - Belgrade, Serbia
Duration: 23 Apr 201727 Apr 2017

Conference

Conference10th European Workshop on Systems Security, EuroSec 2017, co-located with European Conference on Computer Systems, EuroSys 2017
Country/TerritorySerbia
CityBelgrade
Period23/04/1727/04/17

Funding

FundersFunder number
Horizon 2020 Framework Programme644571

    Fingerprint

    Dive into the research topics of 'RevAnC: A framework for reverse engineering hardware page table caches'. Together they form a unique fingerprint.

    Cite this