Code loading hardening by hypervisor page table switching
Abstract
Systems and methods are provided for modifying one or more guest memory permissions. An example method includes receiving a request to modify a memory permission of a guest running on a virtual machine. The guest includes a kernel that includes loading code and kernel code. The method also includes determining whether the request was sent from the loading code. The loading code corresponds to a first set of hypervisor page tables and is stored at a first range of memory addresses, and the kernel code corresponds to a second set of hypervisor page tables. The first range of memory addresses is in an executable mode in the first set of hypervisor page tables. The method further includes in response to a determination that the request was sent from the loading code, modifying the guest's memory permission in the second set of hypervisor page tables in accordance with the request.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 23 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of modifying one or more guest memory permissions stored in a hypervisor page table, comprising: receiving, by a hypervisor, a request to modify a memory permission of a guest running on a virtual machine, the virtual machine and hypervisor running on a host machine, and the guest including a kernel that includes loading code and kernel code; determining, by the hypervisor, whether the request was sent from the loading code, the loading code corresponding to a first set of hypervisor page tables and being stored at a first range of memory addresses, the kernel code corresponding to a
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (23)
Non-Patent Literature (5)
- Elwell et al. "Hardening Extended Memory Access Control Schemes with Self-Verified Address Spaces", 978-1-5386-3093-8/17, IEEE '17.
- Kernel-guard, http://gentoo-hardened.gentoo.narkive.com/9t16yPd0/kernel-guard.
- Nathan E. Rosenblum, Gregory Cooksey, Barton P. Miller, "Virtual Machine-Provided Context Sensitive Page Mappings", Computer Sciences Department, University of Wisconsin-Madison, Mar. 2008, ftp://ftp.cs.wisc.edu/paradyn/papers/Rosenblum08cspm.pdf.
- Sven Vermeulen, Checksec Kernel Security, Jul. 24, 2011, http://blog.siphos.be/2011/07/checksec-kernel-security/.
- Taylor Merry, "Linux Kernel Hardening", Nov. 18, 2003, https://www.sans.org/reading-room/whitepapers/linux/linux-kernel-hardening-1294.