Conference paper Open Access

Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR

Daniel Gruss; Clémentine Maurice; Moritz Lipp; Stefan Mangard; Anders Fogh


DataCite XML Export

<?xml version='1.0' encoding='utf-8'?>
<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://datacite.org/schema/kernel-4" xsi:schemaLocation="http://datacite.org/schema/kernel-4 http://schema.datacite.org/meta/kernel-4.1/metadata.xsd">
  <identifier identifierType="DOI">10.5281/zenodo.375513</identifier>
  <creators>
    <creator>
      <creatorName>Daniel Gruss</creatorName>
      <affiliation>TU Graz</affiliation>
    </creator>
    <creator>
      <creatorName>Clémentine Maurice</creatorName>
      <affiliation>TU Graz</affiliation>
    </creator>
    <creator>
      <creatorName>Moritz Lipp</creatorName>
      <affiliation>TU Graz</affiliation>
    </creator>
    <creator>
      <creatorName>Stefan Mangard</creatorName>
      <affiliation>TU Graz</affiliation>
    </creator>
    <creator>
      <creatorName>Anders Fogh</creatorName>
      <affiliation>G DATA Advanced Analytics</affiliation>
    </creator>
  </creators>
  <titles>
    <title>Prefetch Side-Channel Attacks: Bypassing SMAP and Kernel ASLR</title>
  </titles>
  <publisher>Zenodo</publisher>
  <publicationYear>2016</publicationYear>
  <subjects>
    <subject>ASLR; Kernel Vulnerabilities; Timing Attacks</subject>
  </subjects>
  <dates>
    <date dateType="Issued">2016-10-24</date>
  </dates>
  <resourceType resourceTypeGeneral="Text">Conference paper</resourceType>
  <alternateIdentifiers>
    <alternateIdentifier alternateIdentifierType="url">https://zenodo.org/record/375513</alternateIdentifier>
  </alternateIdentifiers>
  <relatedIdentifiers>
    <relatedIdentifier relatedIdentifierType="DOI" relationType="IsPreviousVersionOf">10.1145/2976749.2978356</relatedIdentifier>
    <relatedIdentifier relatedIdentifierType="DOI" relationType="IsSupplementedBy">10.5281/zenodo.375521</relatedIdentifier>
    <relatedIdentifier relatedIdentifierType="URL" relationType="IsPartOf">https://zenodo.org/communities/hector</relatedIdentifier>
  </relatedIdentifiers>
  <rightsList>
    <rights rightsURI="http://creativecommons.org/licenses/by/4.0/legalcode">Creative Commons Attribution 4.0 International</rights>
    <rights rightsURI="info:eu-repo/semantics/openAccess">Open Access</rights>
  </rightsList>
  <descriptions>
    <description descriptionType="Abstract">&lt;p&gt;Modern operating systems use hardware support to protect against control flow hijacking attacks such as code-injection&lt;br&gt;
attacks. Typically, write access to executable pages is prevented and kernel mode execution is restricted to kernel code&lt;br&gt;
pages only. However, current CPUs provide no protection against code-reuse attacks like ROP. ASLR is used to prevent&lt;br&gt;
these attacks by making all addresses unpredictable for an attacker. Hence, the kernel security relies fundamentally&lt;br&gt;
on preventing access to address information. We introduce Prefetch Side-Channel Attacks, a new class of generic attacks exploiting major weaknesses in prefetch instructions. This allows unprivileged attackers to obtain address information and thus compromise the entire system by defeating SMAP, SMEP, and kernel ASLR. Prefetch can fetch inaccessible privileged memory into various caches on Intel x86. It also leaks the translation-level for virtual addresses on both Intel x86 and ARMv8-A. We build three attacks exploiting these properties. Our rst attack retrieves an exact image of the full paging hierarchy of a process, defeating both user space and kernel space ASLR. Our second attack resolves virtual to physical addresses to bypass SMAP on 64-bit Linux systems, enabling ret2dir attacks. We demonstrate this from unprivileged user programs on Linux and inside Amazon EC2 virtual machines. Finally, we demonstrate how to defeat kernel ASLR on Windows 10, enabling ROP attacks on kernel and driver binary code. We propose a new form of strong kernel isolation to protect commodity systems incuring an overhead of only 0:06{5:09%.&lt;/p&gt;</description>
  </descriptions>
  <fundingReferences>
    <fundingReference>
      <funderName>European Commission</funderName>
      <funderIdentifier funderIdentifierType="Crossref Funder ID">10.13039/501100000780</funderIdentifier>
      <awardNumber awardURI="info:eu-repo/grantAgreement/EC/H2020/644052/">644052</awardNumber>
      <awardTitle>HARDWARE ENABLED CRYPTO AND RANDOMNESS</awardTitle>
    </fundingReference>
  </fundingReferences>
</resource>
55
20
views
downloads
All versions This version
Views 5555
Downloads 2020
Data volume 17.6 MB17.6 MB
Unique views 5454
Unique downloads 1717

Share

Cite as