Arxiv:2003.05503V3 [Cs.CR] 19 Apr 2021

Total Page:16

File Type:pdf, Size:1020Kb

Arxiv:2003.05503V3 [Cs.CR] 19 Apr 2021 Bypassing memory safety mechanisms through speculative control flow hijacks Andrea Mambretti1,2, Alexandra Sandulescu1, Alessandro Sorniotti1, William Robertson2, Engin Kirda2, and Anil Kurmus1 1IBM Research – Zurich, Rüschlikon, Switzerland {asa, aso, kur}@zurich.ibm.com 2Northeastern University, Boston, USA {mbr, wkr, ek}@ccs.neu.edu Abstract—The prevalence of memory corruption bugs in of modern computing systems against memory corruption the past decades resulted in numerous defenses, such as attacks: does the security of memory safety mechanisms, stack canaries, control flow integrity (CFI), and memory- such as stack smashing protection (SSP), control flow safe languages. These defenses can prevent entire classes of integrity (CFI), and those embedded in memory safe vulnerabilities, and help increase the security posture of a languages, hold in the post-Spectre threat model? program. In this paper, we show that memory corruption In this paper, we show that multiple memory safety defenses can be bypassed using speculative execution attacks. mechanisms that would otherwise successfully prevent ex- We study the cases of stack protectors, CFI, and bounds ploitation of vulnerabilities can be speculatively bypassed checks in Go, demonstrating under which conditions they to perform arbitrary memory reads. Because these attacks can be bypassed by a form of speculative control flow require a combination of techniques, we show that they do hijack, relying on speculative or architectural overwrites of not apply to all memory safety mechanisms and a careful, control flow data. Information is leaked by redirecting the case-by-case analysis is necessary. speculative control flow of the victim to a gadget accessing At a high level, these attacks work by overwriting, secret data and acting as a side channel send. We also either architecturally or speculatively, a backwards or for- demonstrate, for the first time, that this can be achieved by ward edge, followed by the use of speculative code reuse attacks to leak data. In all cases, this overwrite achieves stitching together multiple gadgets, in a speculative return- a speculative control flow hijack, i.e., a redirection of the oriented programming attack. We discuss and implement speculative control flow to an attacker-chosen arbitrary ad- software mitigations, showing moderate performance impact. dress. One case of such an attack is the speculative buffer overflow discovered by Kiriansky and Waldspurger [21], Index Terms—Transient Execution, Hardware Security, Side where a return address is speculatively overwritten. Channels, Speculative ROP, Memory Safety Mechanisms, We demonstrate that SSP, GCC’s vtable verification Operating System Security (VTV), and Go’s runtime memory safety checks are all vulnerable. In particular, we develop a practical attack against SSP, where the mitigations against a stack-based 1. Introduction buffer overflow in libpng can be speculatively bypassed to read arbitrary bytes from the victim program. This Memory corruption vulnerabilities have plagued the attack additionally leverages a last level cache (LLC) evic- computer security field for more than 30 years. Multiple tion attack to extend the speculative execution window, ways of exploiting memory bugs have surfaced, requiring and a speculative return-oriented programming (ROP) at- controls to be placed at different levels in the software tack to achieve a Flush+Reload side channel by reusing 5 stack: mechanisms such as stack canaries and control flow gadgets from the victim program. Both components of the arXiv:2003.05503v3 [cs.CR] 19 Apr 2021 integrity have been designed and deployed as a mitigation attack are not specific to SSP and generalize beyond our in existing software, while new languages were designed selected use case. Our results demonstrate that, although with memory safety to close this class of bugs in new such end-to-end attacks are not trivial to mount, they are programs [42], [46]. realistic. For this reason, we evaluate countermeasures for Recently, a new class of attacks, transient execution each attack scenario, showing that mitigations are both attacks [11], and more specifically speculative execution effective and viable from a performance standpoint. attacks [23], [21], [29], [25], [40], [10], [32] have been This paper makes the following contributions: the subject of intense scrutiny. The ensuing vulnerabilities • Demonstration of a practical attack against SSP- appear difficult to mitigate without considerable perfor- based buffer overflow mitigations, together with mance trade-offs, leading to the conclusion that specu- proof-of-concept attacks against GCC VTable Verifi- lative execution attacks will remain a problem for the cation (VTV) and against Go’s array bounds checks. foreseeable future, and therefore a possibly fruitful area • Demonstration of speculation window lengthening of research [34]. leveraging LLC eviction of victim data. A natural question to ask is whether the advent of • Practical speculative code reuse attack (ROP) to transient execution attacks has changed the security stance achieve side-channel send. • Custom mitigations derived from lfence-based and assume a hyperthread-colocated attacker, thereby sharing masking-based approaches, withstanding the class of the instruction cache with the victim program, which the speculative architectural control flow hijacking at- attacker leverages during the ROP chain warm-up phase. tacks, together with a performance evaluation. The goal of the attacker is, as in all transient execution attacks, to leak secrets from the target program. Attacks 2. Speculative execution attacks on memory based on the architectural overwrite of a backward or forward edge correspond to the case where an attacker safety mechanisms can provoke a memory safety violation whose traditional exploitation is prevented by hardening mechanisms in In this section, we describe end-to-end speculative place. This is demonstrated in the SSP and CFI use cases. execution attacks on abstracted memory safety mecha- In this case, we assume that the victim program can either nisms. We begin with a high-level overview of the various be executed multiple times by the attacker or that the components necessary to perform such an end-to-end at- program automatically restarts, given that each attack run tack. We then proceed to analyze the class of speculative leaks a limited volume of information and likely leads to control flow hijacks which is at the heart of the attack; abnormal program termination. This assumption remains we refer to this general category of attacks as SPEculative realistic in practice because modern Linux distributions ARchitectural control flow hijacks, or SPEAR, and detail with systemd automatically restart services after abnor- them in Section 2.1. Furthermore, we analyze the eviction mal termination. mechanism in Section 2.2, and the speculative ROP in Attacks based on the speculative overwrite of a for- Section 2.3. ward edge correspond to a victim program with a memory safety check that the attacker can exercise and specula- tively bypass. This is demonstrated in the Go use case. In this case, given that the overwrite of control flow data occurs speculatively, the attack does not lead to program termination, and so the attack does not require the ability to restart the victim. Figure 1: Overview of speculative attack against memory safety 2.1. SPEAR attacks mechanisms. A SPEAR-vulnerable sequence is a code sequence that Figure 1 shows an overview of the steps required to results in a speculative control flow hijack. A speculative perform an end-to-end attack. The attack has a preparation control flow hijack allows an attacker to gain control of phase (Steps 1 and 2), where eviction sets (to ensure the target program’s speculatively-executed code. This is a the existence of a suitably long speculation window) are powerful primitive: an attacker can follow such an attack identified, memory used by the side channel is flushed with a speculative ROP sequence to speculatively execute and ROP gadgets are primed in the instruction cache. The code gadgets that access a secret and send it to the attacker attacker then submits an input to the victim in Step 3, via a side channel. crafted to trigger a violation of a memory safety property. We assume that traditional exploitation of the violation is prevented by a suitable memory safety mechanism. However, the attacker uses a speculative execution attack to bypass the mechanism by overwriting (architecturally or speculatively) control-flow data, and obtaining a spec- ulative control flow hijack (Step 5). As a result, the victim is tricked into executing a side-channel send of attacker-chosen memory in Step 6: this is achieved with the ROP component, which reuses code snippets from Figure 2: Overview of various Speculative control flow hijack- the victim program, appropriately selected and primed in ing attacks. the initialization phase. The attacker can then execute the corresponding side-channel receive in Step 7. The success Figure 2 shows a breakdown of the various instances in rate of the attack is increased by concurrently executing the SPEAR attack class in the context of different variants an eviction loop to lengthen the speculation window (Step of speculative control flow hijacks. Classic speculative 4) using the eviction sets found in Step 1. control flow hijacking attacks can be performed through Threat model: The general threat model for all attacks microarchitectural components such as the Branch Target in this
Recommended publications
  • Privacy and Security
    Privacy and Security Sekar Kulandaivel, Jennifer Xiao - April 21, 2020 Understanding Contention-Based Channels and Using Them for Agenda Defense Spectre Attacks: Exploiting Speculative Execution Understanding Contention-Based Channels and Using Them for Defense (HPCA ‘15) Distrustful tenants living within a neutral cloud provider ● Shared hardware can be exploited to leak information ○ e.g. CPU usage vs. operation can expose secret key ● Two bodies of solutions: ○ HW-based: state-of-the-art is either limited in scope or requires impractical architecture changes ○ SW-based: HomeAlone forgoes shared hardware and permits only friendly co-residency, but still vulnerable to an intelligent attacker Threat model of a co-resident attacker ● Distrustful tenants violate confidentiality or compromise availability ● Goal: infer info about victim VM via microarchitectural structures e.g. cache and memory controllers ● Side-channel: victim inadvertently (oops!) leaks data inferred by attacker ● Covert channel: privileged malicious process on victim deliberately leaks data to attacker Known side-channels to transmit a ‘0’ or a ‘1’ (alt. exec.) ● Alternative execution attacks ○ Timing-driven: measure time to access memory portion ○ Access-driven: measure time to access specific cache misses Known side-channels to transmit a ‘0’ or a ‘1’ (parallel exec.) ● Parallel execution attacks ○ No time sharing required ○ E.g. Receiver monitors latency of memory fetch, sender either issues more instructions or idles Formal model of covert channels ● Detection failure (undetectable flow) = same rate of false positives and false negatives for both legitimate and covert traffic ● Network vs. microarchitectural channels: ○ Network receivers read silently ○ Microarch. receivers read destructively (overwrites when reading) ● Main insight: network channels are provably undetectable whereas microarch.
    [Show full text]
  • Full Disclosure
    FULL DISCLOSURE David C Frier Atos RSS - 2017 FULL DISCLOSURE: Topics ● About your speaker ● What is -- and is NOT -- a “hacker”? ● Cybercriminals and Researchers ● What is -- and is NOT -- a “zero-day”? ● Disclosure, Responsible and Otherwise ● Bug Bounties About Your Speaker ● David C Frier, CISSP, CISM, CRISC, CCSK ● Client Security Manager for Atos, caring for Xerox’s infrastructure ...but I speak only for myself, not for Atos! ● I’ve been doing Information Security for a dozen years ● I’ve been doing IT of one sort or another for Jack Benny’s age ● Avid player of poker and Ingress, enthusiastic rider of a Trek. ● $FIRST.$LAST@{gmail.com | atos.net} ● Not on LinkedIn ...but feel free to check my profile at Google+ if the Ambien has stopped working. What’s a Hacker? ● Hacker n. (from Wikitionary) 1. (computing) One who is expert at programming and solving problems with a computer. 2. (computing) One who uses a computer to gain unauthorized access to data, or to carry out malicious attacks. 3. (computing) A computer security professional. ● The top discussion item on that wiki entry simply says, Unfortunately, the original sense of this word is no longer primary, and as much as I would like to reclaim the original sense, that battle is long since lost. If you use hacker outside the hacker community, expect to be misunderstood. ● TL;DR - Hacker ≠ Criminal Cybercriminals? ● Cybercriminals may or may not be hackers. ○ They may hire technical capability, and not exercise it themselves ○ They may be only script-kiddies ○ They might not even be criminals: They may be state-sponsored, and thus their actions are legal, under their nation’s laws ● Meanwhile, hacking is: ○ A set of problem-solving approaches ○ A toolbox of techniques ○ Morally neutral ● IFF the goal of the hacking is a crime, then a hacker also happens to be a cybercriminal.
    [Show full text]
  • Software Bug Bounties and Legal Risks to Security Researchers Robin Hamper
    Software bug bounties and legal risks to security researchers Robin Hamper (Student #: 3191917) A thesis in fulfilment of the requirements for the degree of Masters of Law by Research Page 2 of 178 Rob Hamper. Faculty of Law. Masters by Research Thesis. COPYRIGHT STATEMENT ‘I hereby grant the University of New South Wales or its agents a non-exclusive licence to archive and to make available (including to members of the public) my thesis or dissertation in whole or part in the University libraries in all forms of media, now or here after known. I acknowledge that I retain all intellectual property rights which subsist in my thesis or dissertation, such as copyright and patent rights, subject to applicable law. I also retain the right to use all or part of my thesis or dissertation in future works (such as articles or books).’ ‘For any substantial portions of copyright material used in this thesis, written permission for use has been obtained, or the copyright material is removed from the final public version of the thesis.’ Signed ……………………………………………........................... Date …………………………………………….............................. AUTHENTICITY STATEMENT ‘I certify that the Library deposit digital copy is a direct equivalent of the final officially approved version of my thesis.’ Signed ……………………………………………........................... Date …………………………………………….............................. Thesis/Dissertation Sheet Surname/Family Name : Hamper Given Name/s : Robin Abbreviation for degree as give in the University calendar : Masters of Laws by Research Faculty : Law School : Thesis Title : Software bug bounties and the legal risks to security researchers Abstract 350 words maximum: (PLEASE TYPE) This thesis examines some of the contractual legal risks to which security researchers are exposed in disclosing software vulnerabilities, under coordinated disclosure programs (“bug bounty programs”), to vendors and other bug bounty program operators.
    [Show full text]
  • The CERT Guide to Coordinated Vulnerability Disclosure
    The CERT® Guide to Coordinated Vulnerability Disclosure Allen D. Householder Garret Wassermann Art Manion Chris King August 2017 SPECIAL REPORT CMU/SEI-2017-SR-022 CERT Division Distribution Statement A: Approved for Public Release; Distribution is Unlimited http://www.sei.cmu.edu Copyright 2017 Carnegie Mellon University. All Rights Reserved. This material is based upon work funded and supported by the Department of Defense under Contract No. FA8702-15-D-0002 with Carnegie Mellon University for the operation of the Software Engineer- ing Institute, a federally funded research and development center. The view, opinions, and/or findings contained in this material are those of the author(s) and should not be construed as an official Government position, policy, or decision, unless designated by other docu- mentation. This report was prepared for the SEI Administrative Agent AFLCMC/AZS 5 Eglin Street Hanscom AFB, MA 01731-2100 NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT. [DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution. Internal use:* Permission to reproduce this material and to prepare derivative works from this material for internal use is granted, provided the copyright and “No Warranty” statements are included with all reproductions and derivative works.
    [Show full text]
  • Exploring Branch Predictors for Constructing Transient Execution Trojans
    Exploring Branch Predictors for Constructing Transient Execution Trojans Tao Zhang Kenneth Koltermann Dmitry Evtyushkin [email protected] [email protected] [email protected] William & Mary William & Mary William & Mary Williamsburg, Virginia Williamsburg, Virginia Williamsburg, Virginia Abstract on Architectural Support for Programming Languages and Operating Transient execution is one of the most critical features used Systems (ASPLOS ’20), March 16–20, 2020, Lausanne, Switzerland. in CPUs to achieve high performance. Recent Spectre at- ACM, New York, NY, USA, 16 pages. https://doi.org/10.1145/3373376. 3378526 tacks demonstrated how this feature can be manipulated to force applications to reveal sensitive data. The industry quickly responded with a series of software and hardware mitigations among which microcode patches are the most 1 Introduction prevalent and trusted. In this paper, we argue that currently Increased performance of modern processors largely relies deployed protections still leave room for constructing at- on various hardware units performing activities ahead of tacks. We do so by presenting transient trojans, software time. For example, when the processor encounters a branch modules that conceal their malicious activity within tran- instruction, a type of instruction that alters the normal se- sient execution mode. They appear completely benign, pass quential execution flow, the branch prediction unit (BPU) static and dynamic analysis checks, but reveal sensitive data predicts the address of the following instruction instead of when triggered. To construct these trojans, we perform a waiting for the correct address to be computed. In order to detailed analysis of the attack surface currently present in avoid damaging the architectural state, execution based on today’s systems with respect to the recommended mitiga- predicted data is performed in a special transient (or specula- tion techniques.
    [Show full text]
  • A Target to the Heart of the First Amendment: Government Endorsement of Responsible Disclosure As Unconstitutional Kristin M
    Northwestern Journal of Technology and Intellectual Property Volume 13 | Issue 2 Article 1 2015 A Target to the Heart of the First Amendment: Government Endorsement of Responsible Disclosure as Unconstitutional Kristin M. Bergman Reporters Committee for Freedom of the Press Recommended Citation Kristin M. Bergman, A Target to the Heart of the First Amendment: Government Endorsement of Responsible Disclosure as Unconstitutional, 13 Nw. J. Tech. & Intell. Prop. 117 (2015). https://scholarlycommons.law.northwestern.edu/njtip/vol13/iss2/1 This Article is brought to you for free and open access by Northwestern Pritzker School of Law Scholarly Commons. It has been accepted for inclusion in Northwestern Journal of Technology and Intellectual Property by an authorized editor of Northwestern Pritzker School of Law Scholarly Commons. NORTHWESTERN JOURNAL OF TECHNOLOGY AND INTELLECTUAL PROPERTY A Target to the Heart of the First Amendment: Government Endorsement of Responsible Disclosure as Unconstitutional Kristin M. Bergman May 2015 VOL. 13, NO. 2 Copyright 2015 by Northwestern University School of Law Volume 13, Number 2 (May 2015) Northwestern Journal of Technology and Intellectual Property A Target to the Heart of the First Amendment: Government Endorsement of Responsible Disclosure as Unconstitutional By Kristin M. Bergman* Brian Krebs, a former reporter for the Washington Post who is now known for his blog Krebs on Security, remained relatively unknown for most of his career. But in December 2013, Mr. Krebs found that hackers had exploited a data vulnerability in Target’s electronic-payment system, compromising millions of credit-card numbers that had been used to purchase goods from the second-largest discount retailer in the United States.
    [Show full text]
  • A Bug Bounty Perspective on the Disclosure of Web Vulnerabilities
    A Bug Bounty Perspective on the Disclosure of Web Vulnerabilities Jukka Ruohonen Luca Allodi University of Turku Eindhoven University of Technology Email: juanruo@utu.fi Email: [email protected] Abstract—Bug bounties have become increasingly popular in OBB is mostly a community-based platform that neither pays recent years. This paper discusses bug bounties by framing these for the vulnerabilities disseminated nor explicitly engages with theoretically against so-called platform economy. Empirically the vendors through a subscription model. As will be shown, both interest is on the disclosure of web vulnerabilities through the Open Bug Bounty (OBB) platform between 2015 and late 2017. terms are important for a theoretical framing of bug bounties. According to the empirical results based on a dataset covering The paper’s main empirical findings, theoretical points, and nearly 160 thousand web vulnerabilities, (i) OBB has been contributions can be summarized and generalized as follows: successful as a community-based platform for the dissemination of web vulnerabilities. The platform has also attracted many • Bug bounty platforms in general align well with the productive hackers, (ii) but there exists a large productivity gap, theories about network effects and platform economy. which likely relates to (iii) a knowledge gap and the use of auto- mated tools for web vulnerability discovery. While the platform • However, when excluding the crowd-sourcing elements, (iv) has been exceptionally fast to evaluate new vulnerability innovation seems limited from a business perspective; submissions, (v) the patching times of the web vulnerabilities disseminated have been long. With these empirical results and most current bug bounties mimic the business models that the accompanying theoretical discussion, the paper contributes have been used already in the older vulnerability markets.
    [Show full text]
  • The Duties Held by Malware Researchers, Penetration Testers, and "White Hat" Hackers
    Minnesota Journal of Law, Science & Technology Volume 19 Issue 2 Article 7 6-2018 No Good Deed Goes Unpunished: The Duties Held by Malware Researchers, Penetration Testers, and "White Hat" Hackers Jon Watkins Follow this and additional works at: https://scholarship.law.umn.edu/mjlst Part of the Computer Law Commons, Internet Law Commons, and the Science and Technology Law Commons Recommended Citation Jon Watkins, No Good Deed Goes Unpunished: The Duties Held by Malware Researchers, Penetration Testers, and "White Hat" Hackers, 19 MINN. J.L. SCI. & TECH. 535 (2018). Available at: https://scholarship.law.umn.edu/mjlst/vol19/iss2/7 The Minnesota Journal of Law, Science & Technology is published by the University of Minnesota Libraries Publishing. Note No Good Deed Goes Unpunished: The Duties Held by Malware Researchers, Penetration Testers, and “White Hat” Hackers Jon Watkins* I. INTRODUCTION More than five years ago, the National Security Agency (NSA) discovered a vulnerability1 in Windows’ implementation of SMBv12 and developed a tool, EternalBlue,3 to exploit that © 2018 Jon Watkins * JD Candidate 2019, University of Minnesota Law School; BA University of Minnesota, 2016. Thank you to Professor Ralph Hall for his feedback and guidance on this Note, to the editors and staff of MJLST for their phenomenal work, and to Martha, Maddie, Tom, and Mona for everything. 1. A “vulnerability” is an occurrence of a weakness (or multiple weaknesses) within software, in which the weakness can be used by a party to cause the software to modify or access unintended data, interrupt proper execution, or perform incorrect actions that were not specifically granted to the party who uses the weakness.
    [Show full text]
  • [Acknowledgements, Honors, Awards & Cves]
    [Acknowledgements, Honors, Awards & CVEs] Seekurity Acknowledgements, Honors, Awards & CVEs Acknowledged by Fitbit Security Team Fitbit Security Team February 2019 Got acknowledged by Fitbit Security Team for discovering several severe bugs are undisclosed yet, because we disclosed one of the most critical ones, In this write-up we will show you how Seekurity team was able to harvest all the user's private/custom activities leaves more than 20 million private custom activities data in danger. First of all, this write-up is not a new one and the discovery itself is dated back to 2017 but we decided to disclose it right now after we gave Fitbit the reasonable amount of time to patch the vulnerability and to protect the health data about the users! Write-up: https://seekurity.com/services/goto/60 ======================================================================== Acknowledged by Zynga Whitehat Security Zynga February 2019 Got acknowledged by Zynga Whitehat Security Team, This is the first time i get an acknowledgement from a company not for discovering a security vulnerability but for a whole collaborative investigation between their me and Zynga's security team, During my investigation i discovered that one of Zynga's mobile games is leaking user critical information including "access token" which reveals a lot about the user who is playing the game along with other information. Was a great pleasure working with Zynga's security team to discover such issues which later led them to discover that some users made a custom bots to automate some stuff inside this particular game, Hint: this game is one of their major ones.
    [Show full text]
  • Encouraging Responsible Disclosure of Software Vulnerabilities
    ENCOURAGING RESPONSIBLE DISCLOSURE OF SOFTWARE VULNERABILITIES ROBERT S. PROSTKO CRITICAL CHALLENGE PROJECT FINAL EXECUTIVE MASTER IN CYBERSECURITY BROWN UNIVERSITY FEBRUARY 2019 ENCOURAGING RES PO NS IBLE DIS CLO S URE O F SOFTWARE VULNERABILITIES ROBERT S. PROSTKO I. INTRODUCTION Vulnerabilit ies in software are commonplace. They are routinely exploited by bad actors to cause harm and for financial gain. As software is increasingly embedded in daily life, from refrigerators to implanted medical devices to transportation to power management systems, it becomes ever more important to address the problem of rampant software vulnerabilit ies. One way to improve the situation is wider use of programs for responsible disclosure of software vulnerabilities. Responsible disclosure programs are established by organizations 1 to provide a mechanism for security researchers to disclose vulnerabilities to the entity that developed the product or service. When disclosing responsibly, the researcher typically reveals the vulnerability to the company, but otherwise keeps the vulnerability confidential for a period of time, so that the organization can develop and deploy a software fix for the vulnerability before it becomes publicly known. If the security researcher were to disclose the vulnerability publicly without disclosing it first to the organization, it would be a so-called “zero-day” vulnerability because it was a previously unknown vulnerability with no published fix for the software. Malicious actors could use the vulnerability to attack the software because the company has not had a chance to develop and release a fix or patch. A wide range of groups and organizations support the proper disclosure of software vulnerabilit ies.
    [Show full text]
  • Meltdown and Spectre Meltdown and Spectre Vulnerabilities in Modern Computers Leak Passwords and Sensitive Data
    6/17/2019 Meltdown and Spectre Meltdown and Spectre Vulnerabilities in modern computers leak passwords and sensitive data. Meltdown and Spectre exploit critical vulnerabilities in modern processors (The main part of every computer). These hardware vulnerabilities allow programs to steal data which is currently processed on the computer. While programs are typically not permitted to read data from other programs, a malicious program can exploit Meltdown and Spectre to get hold of secrets stored in the memory of other running programs. This might include your passwords stored in a password manager or browser, your personal photos, emails, instant messages and even business-critical documents. Meltdown and Spectre work on personal computers, mobile devices, and in the cloud. Depending on the cloud provider's infrastructure, it might be possible to steal data from other customers. Meltdown Meltdown breaks the most fundamental isolation between user applications and the operating system. This attack allows a program to access the memory, and thus also the secrets, of other programs and the operating system. https://meltdownattack.com 1/9 6/17/2019 Meltdown and Spectre If your computer has a vulnerable processor and runs an unpatched operating system, it is not safe to work with sensitive information without the chance of leaking the information. This applies both to personal computers as well as cloud infrastructure. Luckily, there are software patches against Meltdown. Meltdown Paper Cite arXiv Spectre Spectre breaks the isolation between different applications. It allows an attacker to trick error-free programs, which follow best practices, into leaking their secrets. In fact, the safety checks of said best practices actually increase the attack surface and may make applications more susceptible to Spectre Spectre is harder to exploit than Meltdown, but it is also harder to mitigate.
    [Show full text]
  • Exploiting Speculative Execution
    Spectre Attacks: Exploiting Speculative Execution Paul Kocher1, Jann Horn2, Anders Fogh3, Daniel Genkin4, Daniel Gruss5, Werner Haas6, Mike Hamburg7, Moritz Lipp5, Stefan Mangard5, Thomas Prescher6, Michael Schwarz5, Yuval Yarom8 1 Independent (www.paulkocher.com), 2 Google Project Zero, 3 G DATA Advanced Analytics, 4 University of Pennsylvania and University of Maryland, 5 Graz University of Technology, 6 Cyberus Technology, 7 Rambus, Cryptography Research Division, 8 University of Adelaide and Data61 Abstract—Modern processors use branch prediction and spec- leverage hardware vulnerabilities to leak sensitive information. ulative execution to maximize performance. For example, if the Attacks of the latter type include microarchitectural attacks destination of a branch depends on a memory value that is in the exploiting cache timing [8, 30, 48, 52, 55, 69, 74], branch process of being read, CPUs will try to guess the destination and attempt to execute ahead. When the memory value finally arrives, prediction history [1, 2], branch target buffers [14, 44] or open the CPU either discards or commits the speculative computation. DRAM rows [56]. Software-based techniques have also been Speculative logic is unfaithful in how it executes, can access the used to mount fault attacks that alter physical memory [39] or victim’s memory and registers, and can perform operations with internal CPU values [65]. measurable side effects. Several microarchitectural design techniques have facilitated Spectre attacks involve inducing a victim to speculatively perform operations that would not occur during correct program the increase in processor speed over the past decades. One such execution and which leak the victim’s confidential information via advancement is speculative execution, which is widely used a side channel to the adversary.
    [Show full text]