One Glitch to Rule Them All: Fault Injection Attacks Against AMD's Secure Encrypted Virtualization
Authors:
Open Access
- 12 November 2021
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 2875-2889
Abstract
AMD Secure Encrypted Virtualization (SEV) offers protection mechanisms for virtual machines in untrusted environments through memory and register encryption. To separate security-sensitive operations from software executing on the main x86 cores, SEV leverages the AMD Secure Processor (AMD-SP). This paper introduces a new approach to attack SEV-protected virtual machines (VMs) by targeting the AMD-SP. We present a voltage glitching attack that allows an attacker to execute custom payloads on the AMD-SPs of all microarchitectures that support SEV currently on the market (Zen 1, Zen 2, and Zen 3). The presented methods allow us to deploy a custom SEV firmware on the AMD-SP, which enables an adversary to decrypt a VM's memory. Furthermore, using our approach, we can extract endorsement keys of SEV-enabled CPUs, which allows us to fake attestation reports or to pose as a valid target for VM migration without requiring physical access to the target host. Moreover, we reverse-engineered the Versioned Chip Endorsement Key (VCEK) mechanism introduced with SEV Secure Nested Paging (SEV-SNP). The VCEK binds the endorsement keys to the firmware version of TCB components relevant for SEV. Building on the ability to extract the endorsement keys, we show how to derive valid VCEKs for arbitrary firmware versions. With our findings, we prove that SEV cannot adequately protect confidential data in cloud environments from insider attackers, such as rogue administrators, on currently available CPUs.Keywords
All Related Versions
This publication has 16 references indexed in Scilit:
- Plundervolt: How a Little Bit of Undervolting Can Create a Lot of TroubleIEEE Security & Privacy, 2020
- SEVurity: No Security Without Integrity : Breaking Integrity-Free Memory Encryption with Minimal Assumptions2020
- Insecure Until Proven Updated2019
- The SEVerESt Of Them All2019
- Extracting Secrets from Encrypted Virtual Machines2019
- SEVered2018
- Security Analysis of Encrypted Virtual Machines2017
- FAIL*: An Open and Versatile Fault-Injection Framework for the Assessment of Software-Implemented Hardware Fault Tolerance2015
- QEMU-Based Fault Injection for a System-Level Analysis of Software Countermeasures Against Fault Attacks2015
- The Sorcerer's Apprentice Guide to Fault AttacksProceedings of the IEEE, 2006