[Paper Review] Heckler: Breaking Confidential VMs with Malicious Interrupts
Heckler demonstrates a software-based attack where a privileged hypervisor injects malicious interrupts into AMD SEV-SNP and Intel TDX confidential VMs to alter guest register state and break confidentiality and integrity, bypassing authentication in OpenSSH and sudo and disrupting certain applications.
Hardware-based Trusted execution environments (TEEs) offer an isolation granularity of virtual machine abstraction. They provide confidential VMs (CVMs) that host security-sensitive code and data. AMD SEV-SNP and Intel TDX enable CVMs and are now available on popular cloud platforms. The untrusted hypervisor in these settings is in control of several resource management and configuration tasks, including interrupts. We present Heckler, a new attack wherein the hypervisor injects malicious non-timer interrupts to break the confidentiality and integrity of CVMs. Our insight is to use the interrupt handlers that have global effects, such that we can manipulate a CVM's register states to change the data and control flow. With AMD SEV-SNP and Intel TDX, we demonstrate Heckler on OpenSSH and sudo to bypass authentication. On AMD SEV-SNP we break execution integrity of C, Java, and Julia applications that perform statistical and text analysis. We explain the gaps in current defenses and outline guidelines for future defenses.
Motivation & Objective
- Motivate reassessment of trusted computing boundaries in CVMs by highlighting hypervisor-controlled interrupt interfaces.
- Show that non-timer interrupts can trigger explicit effect handlers to modify CVM state and program flow.
- Demonstrate practical exploits on real TEEs, including bypassing authentication and corrupting data analysis results.
- Identify gaps in current defenses and propose defense guidelines for CVMs against malicious interrupts.
Proposed method
- Analyze the hypervisor's ability to inject interrupts into AMD SEV-SNP and Intel TDX CVMs.
- Identify explicit effect handlers (gadgets) triggered by interrupts such as int 0x80 and signals like SIGFPE.
- Instrument and characterize how interrupts map to user-space handlers and kernel syscalls within CVMs.
- Develop end-to-end exploit scenarios showing bypass of OpenSSH and sudo authentication.
- Propose kernel patches and defensive guidelines to mitigate the observed attacks.
Experimental results
Research questions
- RQ1Can the hypervisor inject interrupts into CVMs in SEV-SNP and TDX and cause explicit effects in user-space applications?
- RQ2What specific interrupt gadgets exist in common CVM-hosted services (e.g., OpenSSH, sudo, SIGFPE-enabled workloads)?
- RQ3How can these gadgets be chained to alter data and control flow within confidential VMs?
- RQ4What defenses are effective against malicious interrupts, and where do current SEV-SNP/TDX protections fall short?
- RQ5What practical steps can mitigate Heckler without sacrificing TEE performance?
Key findings
- Interrupts such as int 0x80 are delivered to CVMs and can alter the guest register state, enabling unauthorized system calls.
- Malicious interrupts can bypass OpenSSH authentication and sudo by changing return values in critical routines.
- Explicit effect handlers (SIGFPE, other signals) can modify application state and data flow in Java, Julia, and C workloads.
- Heckler gadgets exist in common services; for example, int 0x80 can trigger a login bypass, and SIGFPE handlers can bias statistical and text-analysis results.
- AMD SEV-SNP and Intel TDX expose interrupt pathways that can be weaponized, revealing gaps in current defenses.
- Kernel patches can mitigate specific gadgets (e.g., int 0x80 on SEV-SNP/TDX) but broader protections are still needed.
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.