Foreshadow: Speculative Attacks on SGX and Beyond Mark Silberstein

Total Page:16

File Type:pdf, Size:1020Kb

Foreshadow: Speculative Attacks on SGX and Beyond Mark Silberstein Foreshadow: speculative attacks on SGX and beyond Mark Silberstein Joint work with Jo Van Bulck, Marina Minkin, Ofir Weisse, Daniel Genkin, Baris Kasikci, Frank Piessens, Thomas F. Wenisch, Yuval Yarom, and Raoul Strackx March 2019 Mark Silberstein, Technion 1 Big picture in one slide ● Where do CPUs loose performance? – Branches, Memory translation – Technology scaling does not help March 2019 Mark Silberstein, Technion 2 Big picture in one slide ● Where do CPUs loose performance? – Branches, Memory translation – Technology scaling does not help ● Speculative execution for latency hiding – CPU speculates the outcome of slow operations – Continues execution assuming speculation is correct – Rolls back the modified architectural state otherwise March 2019 Mark Silberstein, Technion 3 Speculative execution attacks exploit Speculation past illegal memory accesses Inability to fully roll back μarch state Covert/side channels to leak the state March 2019 Mark Silberstein, Technion 4 Today ● Background ● From Meltdown to Foreshadow ● SGX: Collateral damage ● Foreshadow-NG (L1TF) ● Discussion March 2019 Mark Silberstein, Technion 5 Speculative execution 101 Instruction stream Completed instructions CPU 1 2 Slow instruction 3 Execute Retire (commit results) 4 5 6 Depend on 3 March 2019 Mark Silberstein, Technion 6 Speculative execution 101 Instruction stream Completed instructions CPU 2 1 3 Execute Retire (commit results) 4 5 6 March 2019 Mark Silberstein, Technion 7 Speculative execution 101 Instruction stream Completed instructions CPU 2 1 3 Execute Retire (commit results) 4 5 6 March 2019 Mark Silberstein, Technion 8 Speculative execution 101 Instruction stream Completed instructions Slow CPU T 1 slow 3 2 Execute Retire (commit results) 4 5 6 March 2019 Mark Silberstein, Technion 9 Speculative execution 101 Instruction stream Completed instructions Slow CPU T 1 slow 2 3 Execute Retire 4 5 Executed speculatively 6 March 2019 Mark Silberstein, Technion 10 Speculative execution 101 Instruction stream Completed instructions CPU T 1 slow 2 3 Execute Retire 5 4 Not committed yet! 6 March 2019 Mark Silberstein, Technion 11 Speculative execution 101 Instruction stream Completed instructions CPU T 1 slow 2 3 Execute Retire 5 4 T speculative 6 Only 2 transiently executed instructions fit in the speculation window March 2019 Mark Silberstein, Technion 12 Speculative execution 101 Instruction stream Completed instructions Completed,CPU speculation was right 1 2 3 Execute Retire 5 4 6 March 2019 Mark Silberstein, Technion 13 Speculative execution 101 Instruction stream Completed instructions CPU 1 2 Execute Retire 3 6 4 5 Commit all pending instructions March 2019 Mark Silberstein, Technion 14 Speculative execution 101 Instruction stream Completed instructions Completed,CPU speculation was wrong 1 2 3 Execute Retire 5 4 6 March 2019 Mark Silberstein, Technion 15 Speculative execution 101 Instruction stream Completed instructions CPU 1 2 Execute Retire 3 4 5 6 Roll back architectural speculative state and continue execution March 2019 Mark Silberstein, Technion 16 Prerequisites to speculative execution attack ● CPU speculates insecurely ● Speculative state cannot be rolled back: data leak ● Race condition: roll back vs. leaking logic – Attack succeeds only if Tspeculative<Tslow access March 2019 Mark Silberstein, Technion 17 Complete example (Rogue cache read – aka Meltdown) Instruction stream Transient Access generates instructions exception 3 movb (kernel secret), %al 4 leak(%al) March 2019 Mark Silberstein, Technion 18 Complete example (Rogue cache read – aka Meltdown) Instruction stream Slow: illegal access to an inaccessible address triggers exception that requires long time to resolve movb (secret),%al Execute Retire leak (%al) March 2019 Mark Silberstein, Technion 19 Complete example (Rogue cache read – aka Meltdown) Instruction stream movb (secret),%al Execute Retire leak(%al) (secret) is insecurely speculated: read from cache or DRAM ignoring page protection March 2019 Mark Silberstein, Technion 20 Complete example (Rogue cache read – aka Meltdown) Instruction stream movb (secret),%al Execute Retire leak(%al) Need to be fast to finish before the exception is resolved March 2019 Mark Silberstein, Technion 21 Complete example (Rogue cache read – aka Meltdown) Instruction stream Exception movb (secret),%al Execute Retire leak (%al) Speculative state is cleaned except for the one leaked March 2019 Mark Silberstein, Technion 22 Recipe: Speculative read attacks ● Provoke insecure speculation ● Win the race ● Notify the attacker March 2019 Mark Silberstein, Technion 23 Question 1: where does insecure speculation occur? ● Meltdown: exception due to access to a page with Supervisor bit March 2019 Mark Silberstein, Technion 24 Question 1: where does insecure speculation occur? ● Meltdown: exception due to access to a page with Supervisor bit ● Spectre V1: mis-speculated branch March 2019 Mark Silberstein, Technion 25 Question 1: where does insecure speculation occur? ● Meltdown: exception due to access to a page with Supervisor bit ● Spectre V1: mis-speculated branch ● Foreshadow/L1TF: exception due to access to a non-present page, or via an incorrect mapping March 2019 Mark Silberstein, Technion 26 Question 1: where does insecure speculation occur? ● Meltdown: exception due to access to a page with Supervisor bit ● Spectre V1: mis-speculated branch ● Foreshadow/L1TF: exception due to access to a non-present page, or via an incorrect mapping The data is speculatively fetched from cache/memory violating protection guarantees (OS/program) March 2019 Mark Silberstein, Technion 27 Question 2: How to avoid misspeculation rollback? ● Not all μarch state can be rolled back ● μarch state becomes architecturally visible! – Caches – Branch predictors – Performance counters – Contention on shared resources ● Simplest: cache covert channel (Metldown/Spectre) March 2019 Mark Silberstein, Technion 28 Flush-Reload covert channel ● Flush the cache before the attack ● Sender/receiver: declare char leak_array[4K*256] ● Sender: void leak_byte(char secret) { leak_array[4K*secret]=1; } ● Receiver: probe the array to identify cached values – argmin(access_time(leak_array[4K*i])) March 2019 Mark Silberstein, Technion 29 Question 3: How to win the leak-to-rollback race condition ● Access to leak_array must be fast (in TLB) ● Access to secrets must be fast (in cache) ● Try many times – suppress the exception bailout ● Unsuccessful attempts are zero-biased March 2019 Mark Silberstein, Technion 30 Question 3: How to win the leak-to-rollback race condition ● Access to leak_array must be fast (in TLB) ● Access to secrets must be fast (in cache) ● Try many times – suppress the exception bailout ● Unsuccessful attempts are zero-biased PlusPlus somesome secretsecret saucesauce thatthat nobodynobody reallyreally understandsunderstands whywhy itit worksworks March 2019 Mark Silberstein, Technion 31 Agenda ● Background on SGX ● Foreshadow ● Collateral damage on SGX ● Foreshadow-NG /L1TF ● Discussion March 2019 Mark Silberstein, Technion 32 Background: SGX ● Enclave: reversed sandbox ● Private code & data Application – Confidentiality Enclave Enclave – Integrity – Freshness ● Defends against privileged SW! Operating system ● HW acceleration ● Scales with CPU scaling March 2019 Mark Silberstein, Technion 33 Background: SGX memory DRAM encrypted, cache in plain text System memory CPU secret_foo(): ... SGX *p = 1; memory CPU Enclave Plain text data Cache Enclave Page Cache (EPC) March 2019 Mark Silberstein, Technion 34 Background: Address translation in enclaves Enclave System memory secret_foo(): ... *p = 1; EPC Hardware Address translation Page table OS March 2019 Mark Silberstein, Technion 35 Background: SGX abort page semantics Process System memory foo(): ... printf(*p) ; EPC Hardware Address translation Page table OS March 2019 Mark Silberstein, Technion 36 Background: SGX abort page semantics Process System memory foo(): ... printf(*p) ; EPC Hardware read 0xFF Address translation Page table OS March 2019 Mark Silberstein, Technion 37 Process System memory foo(): ... printf(*p) ; EPC Hardware Address translation ForeshadowPage tableuses speculative execution to OSleak secrets from SGX secure memory (EPC) March 2019 Mark Silberstein, Technion 38 Agenda ● Foreshadow ● Collateral damage on SGX ● Foreshadow-NG /L1TF ● Discussion March 2019 Mark Silberstein, Technion 39 Reminder: Speculative read attacks ● Provoke insecure speculation ● Win the race ● Notify the attacker March 2019 Mark Silberstein, Technion 40 Challenges of SGX attacks SGX is resilient to ● Provoke strawman Meltdown attack – Abort page behavior suppresses exception: no speculation ● Provoke/Win – Secrets must be in L1 cache ● Notify – Same as Meltdown March 2019 Mark Silberstein, Technion 41 Challenges of SGX attacks SGX is resilient to ● Provoke strawman Meltdown attack – Abort page behavior suppresses exception: no speculation ● Provoke/Win – Secrets must be in L1 cache ● Notify – Same as Meltdown March 2019 Mark Silberstein, Technion 42 Understanding memory translation with SGX Virtual to physical no Enclave Mode? no In EPC no Is mapping In SGX no valid physical Exception Read EPC Read FF Regular March 2019 Mark Silberstein, Technion 43 Understanding memory translation with SGX Virtual to physical no Enclave Mode? Abort page path no In EPC no Is mapping In SGX no valid physical Exception Read EPC Read FF Regular March 2019 Mark Silberstein, Technion 44 Understanding memory translation with SGX Virtual to
Recommended publications
  • Ghostbuster: Understanding and Overcoming the Pitfalls of Transient Execution Vulnerability Checkers
    GhostBuster: understanding and overcoming the pitfalls of transient execution vulnerability checkers Andrea Mambretti∗y, Pasquale Convertiniy, Alessandro Sorniottiy, Alexandra Sandulescuy, Engin Kirda∗ and Anil Kurmusy ∗Khoury College of Computer Sciences, Northeastern University, Boston, USA Email: fmbr, [email protected] y IBM Research - Zurich, Rueschlikon, Switzerland Email: [email protected], faso, asa, [email protected] Abstract—Transient execution vulnerabilities require system co-located thread, and the threat model requires that the victim administrators to evaluate whether their systems are vulnerable process contains a side channel primitive allowing leakage of and whether available mitigations are enabled. They are aided sensitive data. While some of these attacks are exploitable in in this task by multiple community-developed tools, transient real-world settings, others have not left the realm of theoretical execution vulnerability checkers. Yet, no analysis of these tools vulnerabilities. exists, in particular with respect to their shortcomings and whether they might mislead administrators into a false sense Owing to the high number of transient execution attacks of security. In this paper, we provide the first comprehensive (both practical and theoretical) and the multitude of mitigation analysis of these tools and underpinning methodologies. We mechanisms, the degree to which systems are safe against run the tools on a large set of combinations of Intel/AMD speculative execution attackers is often hard to determine. The architectures and Linux kernel versions and report on their determination is made even more complex by the fact that a efficacy and shortcomings. We also run these tools on 17 of the most prominent cloud providers, report the collected results system might be affected by a certain microarchitectural attack and present the current status on the preparedness of the IT vector, while being safe in practice because the conditions of hosting industry against this class of attacks.
    [Show full text]
  • Class-Action Lawsuit
    Case 3:20-cv-00863-SI Document 1 Filed 05/29/20 Page 1 of 279 Steve D. Larson, OSB No. 863540 Email: [email protected] Jennifer S. Wagner, OSB No. 024470 Email: [email protected] STOLL STOLL BERNE LOKTING & SHLACHTER P.C. 209 SW Oak Street, Suite 500 Portland, Oregon 97204 Telephone: (503) 227-1600 Attorneys for Plaintiffs [Additional Counsel Listed on Signature Page.] UNITED STATES DISTRICT COURT DISTRICT OF OREGON PORTLAND DIVISION BLUE PEAK HOSTING, LLC, PAMELA Case No. GREEN, TITI RICAFORT, MARGARITE SIMPSON, and MICHAEL NELSON, on behalf of CLASS ACTION ALLEGATION themselves and all others similarly situated, COMPLAINT Plaintiffs, DEMAND FOR JURY TRIAL v. INTEL CORPORATION, a Delaware corporation, Defendant. CLASS ACTION ALLEGATION COMPLAINT Case 3:20-cv-00863-SI Document 1 Filed 05/29/20 Page 2 of 279 Plaintiffs Blue Peak Hosting, LLC, Pamela Green, Titi Ricafort, Margarite Sampson, and Michael Nelson, individually and on behalf of the members of the Class defined below, allege the following against Defendant Intel Corporation (“Intel” or “the Company”), based upon personal knowledge with respect to themselves and on information and belief derived from, among other things, the investigation of counsel and review of public documents as to all other matters. INTRODUCTION 1. Despite Intel’s intentional concealment of specific design choices that it long knew rendered its central processing units (“CPUs” or “processors”) unsecure, it was only in January 2018 that it was first revealed to the public that Intel’s CPUs have significant security vulnerabilities that gave unauthorized program instructions access to protected data. 2. A CPU is the “brain” in every computer and mobile device and processes all of the essential applications, including the handling of confidential information such as passwords and encryption keys.
    [Show full text]
  • Public Clouds and Vulnerable Cpus: Are We Secure? FOSDEM 2020
    Public clouds and vulnerable CPUs: are we secure? FOSDEM 2020 Vitaly Kuznetsov <[email protected]> About About myself ● Focusing (mostly) on Linux kernel ● My areas of interest include: ○ Linux as guest on public clouds (AWS, Azure, Aliyun,...) ○ Linux as guest on Hyper-V ○ Hyper-V Enlightenments in KVM ○ Running nested KVM on Hyper-V ○ Running nested Hyper-V on KVM Speculative vulnerabilities Speculative vulnerabilities discovered in the past few years: ● Spectre v1 ○ SWAPGS ● Spectre v2 ● Meltdown (Spectre v3) ● SSB (Spectre v4/NG) ● L1TF (AKA Foreshadow/Spectre v5) ● MDS & TAA Speculative vulnerabilities Speculative Execution Side Channel Methods Intel: “The concept behind speculative execution is that instructions are executed ahead of knowing that they are required. [...] By executing instructions speculatively, performance can be increased by minimizing latency and extracting greater parallelism. …. While speculative operations do not affect the architectural state of the processor, they can affect the microarchitectural state, such as information stored in Translation Lookaside Buffers (TLBs) and caches. ... A side channel method works by gaining information through observing the system, such as by measuring microarchitectural properties about the system. Unlike buffer overflows and other vulnerability classes, side channels do not directly influence the execution of the program, nor do they allow data to be modified or deleted. ” Speculative vulnerabilities and public clouds When running on a public cloud … but my cloud provider
    [Show full text]
  • A Survey of Published Attacks on Intel
    1 A Survey of Published Attacks on Intel SGX Alexander Nilsson∗y, Pegah Nikbakht Bideh∗, Joakim Brorsson∗zx falexander.nilsson,pegah.nikbakht_bideh,[email protected] ∗Lund University, Department of Electrical and Information Technology, Sweden yAdvenica AB, Sweden zCombitech AB, Sweden xHyker Security AB, Sweden Abstract—Intel Software Guard Extensions (SGX) provides a Unfortunately, a relatively large number of flaws and attacks trusted execution environment (TEE) to run code and operate against SGX have been published by researchers over the last sensitive data. SGX provides runtime hardware protection where few years. both code and data are protected even if other code components are malicious. However, recently many attacks targeting SGX have been identified and introduced that can thwart the hardware A. Contribution defence provided by SGX. In this paper we present a survey of all attacks specifically targeting Intel SGX that are known In this paper, we present the first comprehensive review to the authors, to date. We categorized the attacks based on that includes all known attacks specific to SGX, including their implementation details into 7 different categories. We also controlled channel attacks, cache-attacks, speculative execu- look into the available defence mechanisms against identified tion attacks, branch prediction attacks, rogue data cache loads, attacks and categorize the available types of mitigations for each presented attack. microarchitectural data sampling and software-based fault in- jection attacks. For most of the presented attacks, there are countermeasures and mitigations that have been deployed as microcode patches by Intel or that can be employed by the I. INTRODUCTION application developer herself to make the attack more difficult (or impossible) to exploit.
    [Show full text]
  • Bypassing KPTI Using the Speculative Behavior of the SWAPGS Instruction White Paper
    White Paper Bypassing KPTI Using the Speculative Behavior of the SWAPGS Instruction White Paper Contents Abstract ___________________________________________________________________________________________________________ 3 Disclaimer _________________________________________________________________________________________________________ 3 Introduction _______________________________________________________________________________________________________ 4 The SWAPGS instruction ___________________________________________________________________________________________ 4 The Exploit ________________________________________________________________________________________________________ 6 Challenges_________________________________________________________________________________________________________ 9 Mitigations _______________________________________________________________________________________________________ 13 Conclusions ______________________________________________________________________________________________________ 14 Glossary __________________________________________________________________________________________________________ 15 Timeline of the discovery__________________________________________________________________________________________ 16 References _______________________________________________________________________________________________________ 18 Authors: Andrei LUȚAȘ ([email protected]), Dan LUȚAȘ ([email protected]) [2] White Paper Abstract Speculative-execution based attacks and side-channels
    [Show full text]
  • Red Hat Product Security Risk Report: 2019
    Overview Red Hat Product Security Risk Report: 2019 Introduction The 2019 edition of the Red Hat® Product Security Risk Report is an overview of security vulnerabili- ties that impacted Red Hat products for the 2019 calendar year. We review large and small security vulnerabilities that were publicly announced throughout the year, as well as the data and metrics that were produced for these vulnerabilities across all of our solutions. We also review several high-impact, high-profile security vulnerabilities. By “product,” we mean a Red Hat offering listed at https://access.redhat.com/products. We reviewed vulnerabilities and the severity rating assigned to them by Red Hat, and then looked at which issues were of meaningful risk and which issues were exploited. This report is based on publicly avail- able data and was prepared by a group of security specialists within Red Hat referred to as Red Hat Product Security. Red Hat Product Security assigns a Common Vulnerabilities and Exposures (CVE) name to every security issue we fix. If we fix a general bug that later turns out to have had a secu- rity implication, we go back and assign a CVE name to that issue. Every CVE fixed has an entry in our public database in the Red Hat Customer Portal, as well as a public bug report with more technical detail. In this report, we use “vulnerabilities” and “CVEs” interchangeably. Every vulnerability reported to Red Hat Product Security is reviewed and analyzed by our team of open source security specialists. These specialists are experienced Red Hat engineers who under- stand how our offerings are composed, curated, hardened, packaged, delivered, and used by our customers.
    [Show full text]
  • Transient-Execution Attacks and Defenses
    Transient-Execution Attacks and Defenses Habilitation by Daniel Gruss June 2020 Daniel Gruss Transient-Execution Attacks and Defenses (Part I only) Habilitation June 2020 Institute for Applied Information Processing and Communications Graz University of Technology SCIENCE PASSION TECHNOLOGY Abstract The complexity of modern computer systems has dramatically increased over the past decades and continues to increase. The common solution to construct such complex systems is the divide-and-conquer strategy, dividing a complex system into smaller and less complex systems or system components. For a small system component, the complexity of the full system is hidden behind abstraction layers, allowing to develop, improve, and reason about it. As computers have become ubiquitous, so has computer security, which is now present in all aspects of our lives. One fundamental problem of security stems from the strategy that allowed building and maintaining complex systems: the isolated view of system components. Security problems often arise when abstractions are imperfect or incomplete, which they inherently need to be to hide complexity. In this habilitation, we focus on a very specific type of computer security problem, where an imperfect abstraction of the hardware can be observed from the software layer. The abstraction of the hardware, i.e., the defined hardware interface, is often called the \architecture". In contrast, the concrete implementation of the hardware interface, is called the \microar- chitecture". Architecture and microarchitecture often deviate enough to introduce software-exploitable behavior. This entirely new field of research, called \Transient-Execution Attacks", has not existed before our seminal works in 2018. Transient-execution attacks exploit that the hardware transiently performs operations it should not perform, in one of two cases: In one case deliberately (non-speculatively), as the operations will be architecturally discarded anyway.
    [Show full text]
  • Hardware Security, Vulnerabilities, and Attacks: a Comprehensive Taxonomy∗
    Hardware Security, Vulnerabilities, and Attacks: A Comprehensive Taxonomy∗ Paolo Prinetto and Gianluca Roascio Cybersecurity National Laboratory, Consorzio Interuniversitario Nazionale per l'Informatica Dipartimento di Automatica e Informatica, Politecnico di Torino, Turin, Italy [email protected] [email protected] Abstract Information Systems, increasingly present in a world that goes towards complete dig- italisation, can be seen as complex systems at the base of which is the hardware. When dealing with the security of these systems to stop possible intrusions and malicious uses, the analysis must necessarily include the possible vulnerabilities that can be found at the hardware level, since their exploitation can make all defences implemented at web or soft- ware level ineffective. In this paper, we propose a meaningful and comprehensive taxonomy for the vulnerabilities affecting the hardware and the attacks that exploit them to compro- mise the system, also giving a definition of Hardware Security, in order to clarify a concept often confused with other domains, even in the literature. 1 Introduction Every process and even every object that surrounds us is today managed by computing systems, and every day an endless amount of data is produced by these devices and exchanged with the external world, thanks to advanced connection capabilities. Yet, right because of this deep digitisation of our lives, this information sea is full of sensitive data that reveal our most private aspects. Innovation, at least initially, has not taken into account security and privacy issues, which instead must be seriously addressed. According to US National Institute of Standards and Technology (NIST)1, information security is defined as \the protection of information and information systems from unauthorised access, use, disclosure, disruption, modification, or destruction"[3], i.e., the protection against any misuse of Information Systems assets, which can be information itself or properties of the system.
    [Show full text]
  • Hardware Security: Spectre, Meltdown and Rowhammer
    CSE 127 Computer Security Stefan Savage, Spring 2018, Lecture 19 Hardware Security: Meltdown, Spectre, Rowhammer Vulnerabilities and Abstractions Abstraction Reality Vulnerability Review: ISA and µArchitecture Instruction Set Architecture (ISA) µArchitecture ▪ Defined interface between ▪ Implementation of the ISA hardware and software ▪ – Registers, instructions, etc. “Behind the curtain” details – E.g. cache specifics ▪ Spoiler: µArchitectural details cam sometimes become “architecturally visible” Review: Instruction Pipelining ▪ Processors break up instructions into smaller parts so that these parts could be processed in parallel. ▪ µArchitectural optimization – Architecturally, instructions appear to be executed one at a time, in order – Dependencies are resolved behind the scenes https://www.cs.fsu.edu/~hawkes/cda3101lects/chap6/index.html?$$$F6.1.html$$$ Review: Out-of-order Execution ▪ Some instructions can be safely executed in a different order than they appear. ▪ This may allow the processor to use available resources to “pre- compute” future instructions. ▪ µArchitectural optimization – Architecturally, it appears that instructions are executed in order. https://renesasrulz.com/doctor_micro/rx_blog/b/weblog/posts/pipeline-and-out-of-order-instruction-execution-optimize-performance Review: Speculative Execution ▪ Sometimes control flow depends on output of an earlier instruction. – E.g. conditional branch, function pointer ▪ Rather than wait to know for sure which way to go, the processor may “speculate” about the direction/target
    [Show full text]
  • Design of Secure Processor Architectures
    Design of Secure Processor Architectures Jakub Szefer Assistant Professor Dept. of Electrical Engineering Yale University CHES 2019 – August 25, 2019 Slides and information available at: https://caslab.csl.yale.edu/tutorials/ches2019/ Tutorial at CHES 2019, Atlanta, GA, USA © Jakub Szefer 2019 1 Outline 9:30 – 10:00 Secure Processor Architectures (30 min.) • Secure Processor Architectures • Memory Protections in Secure Processors • Principles of Design of Secure Processors 10:10 – 11:20 Timing Channels: Attacks and Hardware Defenses (70 min.) • Side and Covert Channels • Timing Channels in Caches • Timing Channels in Other Parts of Memory Hierarchy • Secure Hardware Caches • Secure Buffers, TLBs, and Directories 11:30 – 12:30 Transient Execution Attacks and Hardware Defenses (60 min.) • Transient Execution Attacks • Transient Attack Hardware Mitigation Techniques • Transient Attacks and Secure Processors Tutorial at CHES 2019, Atlanta, GA, USA © Jakub Szefer 2019 2 Secure Processor Architectures Tutorial at CHES 2019, Atlanta, GA, USA © Jakub Szefer 2019 3 Secure Processor Architectures Secure Processor Architectures extend a processor with hardware (and related software) features for protection of software • Protected pieces of code and data are now commonly called Enclaves • But can be also Trusted Software Modules • Focus on the main processor in the system • Others focus on co-processors, cryptographic accelerators, or security monitors • Add more features to isolate secure software from other, untrusted software • Includes untrusted
    [Show full text]
  • Secure Processor Architectures in the Era of Spectre and Meltdown
    HOST 2019 Tutorial on: Secure Processor Architectures in the Era of Spectre and Meltdown Jakub Szefer Wenjie Xiong Shuwen Deng Dept. Of Electrical Engineering Yale University HOST Tutorial 2019 © Jakub Szefer, Wenjie Xiong, and Shuwen Deng (rev. 2019-05-05) 1 HOST 2019 Tutorial on: Secure Processor Architectures in the Era of Spectre and Meltdown Slides and information at: http://caslab.csl.yale.edu/tutorials/host2019/ WiFi Information: Network: Hilton-Meeting, Password: HOST2019 HOST Tutorial 2019 © Jakub Szefer, Wenjie Xiong, and Shuwen Deng (rev. 2019-05-05) 2 Tutorial Outline & Schedule 15:30 – 16:10 Secure Processor Architectures 16:10 – 16:20 Break 16:20 – 17:10 Secure Processor Caches 17:10 – 17:20 Break 17:20 – 18:00 Transient Execution Attacks and Mitigations 18:00 Wrap Up Slides and information at: http://caslab.csl.yale.edu/tutorials/host2019/ WiFi Information: Network: Hilton-Meeting, Password: HOST2019 HOST Tutorial 2019 © Jakub Szefer, Wenjie Xiong, and Shuwen Deng (rev. 2019-05-05) 3 Secure Processor Architectures Jakub Szefer Wenjie Xiong Shuwen Deng Dept. Of Electrical Engineering Yale University HOST Tutorial 2019 © Jakub Szefer, Wenjie Xiong, and Shuwen Deng (rev. 2019-05-05) 4 Secure Processor Architectures Memory Protection Side-Channels Threats and Protections Speculative or Transient Execution Threats Principles of Secure Processor Architecture Design HOST Tutorial 2019 © Jakub Szefer, Wenjie Xiong, and Shuwen Deng (rev. 2019-05-05) 5 Principles of Computer Architecture Traditional computer architecture has six principles regarding processor design: E.g. caching frequently used data in a small but fast memory helps hide data access latencies. • Caching E.g.
    [Show full text]
  • DATA INSECURITY: How One of the Worst Computer Defects Ever Sacrificed Security for Speed
    DATA INSECURITY: How One of the Worst Computer Defects Ever Sacrificed Security for Speed October 2019 02 TABLE OF CONTENTS Executive Summary 3 Data Breaches Regularly Endanger Consumers 4 The Defects Inside Nearly Every Computer 5 Consumers’ Critical Data at Risk 7 The Patches: A Choice Between Security and Performance 9 The Impact 10 What Consumers Can Do 11 Conclusion 13 About NCL 14 03 EXECUTIVE SUMMARY In January 2018, it was announced that researchers had While it is not uncommon for bugs and security gaps to be discovered some of the most significant cyber security found in computers, they traditionally are quickly patched vulnerabilities the public has ever faced. The vulnerabilities, with software updates and never thought of again. However, which stem from serious flaws found in central processing these vulnerabilities are fundamentally different as they units (CPUs), also known as processors or chips, leave nearly affect the hardware, and specifically the brains, of nearly every computer, server and other device from the last 20 every computer and server around the world. Given that years susceptible to hacking. the flaws are foundational to how the CPU is built and each patch is only temporary until the next exploit is discovered, Researchers in the academic community and from the threat to consumers and the institutions they interact companies like Google discovered the vulnerabilities and with daily remains. described them as “probably one of the worst CPU bugs ever found,”1 with news reports around the world noting While software patches have been released to address these how they would “make nearly any computer vulnerable to issues, consumers often do not install all security updates.
    [Show full text]