Hardware Security: Advanced Topics and Trends

Why was encrypting virtual machine memory alone considered insufficient in VM-based TEEs, so that mechanisms protecting memory integrity were added, as in AMD SEV-SNP?

  1. AEven with encrypted memory, the hypervisor manages the virtual machine's key and can use it to decrypt the memory freely outside the CPU
  2. BEncryption halves the memory available to the virtual machine, which increases paging
  3. CEven without being able to read the contents, the hypervisor can change page mappings or write back old ciphertext and thereby disrupt the virtual machine
Show answer and explanation

Answer: C. Even without being able to read the contents, the hypervisor can change page mappings or write back old ciphertext and thereby disrupt the virtual machine

With early memory encryption, the hypervisor could not read the ciphertext but could remap the virtual machine's pages to other locations, write back old ciphertext it had saved earlier (replay) or corrupt the ciphertext. When ciphertext is altered, the decrypted result merely turns into an unpredictable value, so the virtual machine cannot notice the tampering, and research demonstrated attacks that used this as a foothold. In SEV-SNP the CPU checks a table (the RMP) that records, for each physical page, the virtual machine that owns it and the address it maps to, preventing the hypervisor from writing to a virtual machine's pages or swapping their mappings. According to public documents as of the mid-2020s, advanced physical attacks such as directly manipulating the memory bus during operation are outside what SEV-SNP protects against.

  • A. The key exists only inside the CPU and the hypervisor cannot decrypt. Being unable to read and being unable to modify are separate problems.
  • B. Encryption does not change the usable memory capacity.
  • C. Correct. Not only confidentiality but also integrity, which prevents tampering and substitution, is needed.
Practice this topic Back to topic

Books on Hardware Security: Advanced Topics and Trends Ad

As an Amazon Associate I earn from qualifying purchases.

More Hardware Security: Advanced Topics and Trends questions

  1. Consider a circuit that adds tamper detection and replay protection to memory encryption. For every 64-byte cache line, an 8-byte MAC (a code for detecting tampering) and an 8-byte counter that increases on every write are stored in main memory. Ignoring the tree that protects the counters, what is the extra storage needed as a proportion of the amount of data protected?
  2. In confidential computing, a user's verification server (the verifier) checks the attestation report received from a VM-based TEE before handing over the key that decrypts the data. Which is the most appropriate set of things for the verifier to check?
  3. As of the mid-2020s, some data-center GPUs provide features that let them be used for confidential computing together with a CPU TEE. Which correctly describes the idea of this mechanism?
  4. Which correctly describes the realm introduced in Arm CCA (Confidential Compute Architecture)?
  5. Which correctly describes the capabilities used in the instruction-set extension called CHERI?