[Paper Review] Insecure Until Proven Updated: Analyzing AMD SEV's Remote Attestation
This paper demonstrates that the AMD SEV remote attestation protocol on Epyc Naples CPUs is fundamentally insecure due to extractable platform-specific keys in the PSP firmware. By compromising the firmware, attackers can forge SEV presence, decrypt guest memory, and bypass all cryptographic protections—rendering SEV ineffective against untrusted cloud providers, with no viable software-only mitigations available.
Customers of cloud services have to trust the cloud providers, as they control the building blocks that form the cloud. This includes the hypervisor enabling the sharing of a single hardware platform among multiple tenants. AMD Secure Encrypted Virtualization (SEV) claims a new level of protection in cloud scenarios. AMD SEV encrypts the main memory of virtual machines with VM-specific keys, thereby denying the higher-privileged hypervisor access to a guest's memory. To enable the cloud customer to verify the correct deployment of his virtual machine, SEV additionally introduces a remote attestation protocol.This paper analyzes the firmware components that implement the SEV remote attestation protocol on the current AMD Epyc Naples CPU series. We demonstrate that it is possible to extract critical CPU-specific keys that are fundamental for the security of the remote attestation protocol.Building on the extracted keys, we propose attacks that allow a malicious cloud provider a complete circumvention of the SEV protection mechanisms. Although the underlying firmware issues were already fixed by AMD, we show that the current series of AMD Epyc CPUs, i.e., the Naples series, does not prevent the installation of previous firmware versions. We show that the severity of our proposed attacks is very high as no purely software-based mitigations are possible. This effectively renders the SEV technology on current AMD Epyc CPUs useless when confronted with an untrusted cloud provider. To overcome these issues, we also propose robust changes to the SEV design that allow future generations of the SEV technology to mitigate the proposed attacks.
Motivation & Objective
- To analyze the firmware components implementing SEV's remote attestation on AMD Epyc Naples CPUs.
- To identify vulnerabilities in the PSP secure boot mechanism that allow unauthorized firmware access.
- To demonstrate how extracted keys can be used to forge SEV presence and decrypt guest memory.
- To show that rollback to vulnerable firmware versions is possible, undermining trust in SEV.
- To propose a redesigned remote attestation protocol that enables future trust guarantees despite firmware flaws.
Proposed method
- Reverse-engineered the PSP firmware on AMD Epyc Naples CPUs to identify security flaws in the secure boot process.
- Developed a patched firmware image to gain arbitrary read and write access to the PSP's memory.
- Extracted the Chip Endorsement Key (CEK) from the PSP memory across three distinct Epyc processors.
- Constructed attacks using the extracted CEK to impersonate SEV-protected platforms and decrypt guest memory.
- Demonstrated a migration attack that allows exfiltration of encrypted VM state using the CEK.
- Proposed a redesigned remote attestation protocol with firmware version enforcement to prevent trust degradation.
Experimental results
Research questions
- RQ1Can the platform-specific private keys used in SEV remote attestation be extracted from the PSP firmware on AMD Epyc Naples CPUs?
- RQ2To what extent does the absence of rollback protection undermine the security of SEV's remote attestation?
- RQ3Can a malicious cloud provider exploit extracted CEKs to decrypt guest memory or forge SEV presence?
- RQ4Why are purely software-based mitigations ineffective against these firmware-level vulnerabilities?
- RQ5How can future SEV designs ensure trustworthiness despite potential PSP firmware compromises?
Key findings
- The Chip Endorsement Key (CEK) was successfully extracted from the PSP firmware on three different AMD Epyc Naples processors.
- The extracted CEK allows an attacker to impersonate a legitimate SEV-protected platform, enabling full forgery of remote attestation.
- A patched SEV firmware enabled arbitrary memory access to the PSP, allowing extraction of encrypted guest memory in plaintext.
- Rollback to vulnerable PSP firmware versions is possible, and the extracted CEK remains valid indefinitely, rendering the key permanently compromised.
- No software-only mitigations can restore security, as the vulnerability lies in the firmware and hardware root of trust.
- The current SEV design cannot guarantee correct deployment of VMs on Epyc Naples systems, effectively nullifying SEV's security guarantees.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.