Skip to content

JulianVolodia/HyperPlatform

 
 

Repository files navigation

HyperPlatform

Introduction

HyperPlatform is an Intel VT-x based hypervisor (a.k.a. virtual machine monitor) aiming to provide a thin platform for research on Windows. HyperPlatform is capable of monitoring a wide range of events, including but not limited to, access to virtual/physical memory and system registers, occurrences of interrupts and execution of certain instructions.

Researchers are free to selectively enable and/or disable any of those event monitoring and implement their own logic on the top of HyperPlatform. Some potential applications are:

  • Analyzing kernel mode rootkit
  • Implementing virtual-machine-based intrusion prevention system (VIPS)
  • Reverse-engineering the Windows kernel

A simplified implementation of those ideas are available:

Advantages

HyperPlatform is designed to be easy to read and extend by researchers, especially those who are familiar with Windows. For instance:

  • HyperPlatform runs on Windows 7, 8.1 and 10 in both 32 and 64 bit architectures without any special configuration (except for enabling Intel-VT technology).
  • HyperPlatform compiles in Visual Studio and can be debugged though Windbg just like a regular software driver.
  • Source code of HyperPlatform is written and formatted in existing styles (Google C++ Style Guide and clang-format), and well commented.
  • HyperPlatform has no dependencies, supports use of STL and is released under a relaxed license.

For more details, see the HyperPlatform User Document and Programmer's Reference.

Build

To build HyperPlatform, the following are required.

Installation and Uninstallation

On the x64 platform, you have to enable test signing to install the driver. To do that, open the command prompt with the administrator privilege and type the following command, and then restart the system to activate the change:

>bcdedit /set testsigning on

To install and uninstall the driver, use the 'sc' command. For installation:

>sc create HyperPlatform type= kernel binPath= C:\Users\user\Desktop\HyperPlatform.sys
>sc start HyperPlatform

For uninstallation:

>sc stop HyperPlatform
>sc delete HyperPlatform
>bcdedit /deletevalue testsigning

Note that the system must support the Intel VT-x and EPT technology to successfully install the driver.

To install the driver on a virtual machine on VMware Workstation, see an "Using VMware Workstation" section in the HyperPlatform User Document.

Output

All logs are printed out to DbgView and saved in C:\Windows\HyperPlatform.log.

Supported Platforms

  • x86 and x64 Windows 7, 8.1 and 10
  • The system must support the Intel VT-x and EPT technology

Related Project(s)

SimpleVisor is a very (very) simple and readable Windows-specific hypervisor made up of only 1700 lines of code. I would recommend taking a look at the project to learn VT-x if you are new to hypervisor development. It should give you a clearer view of how a hypervisor is initialized and executed.

ksm is other simple and lightweight x64 hypervisor written in C for Windows for Intel processors. It is just a half size of HyperPlatform in lines of code while demonstrating usage of EPT, as well as #VE and VMFUNC where HyperPlatform does not include.

Bareflank Hypervisor is an actively developed open source, lightweight hypervisor. It comes with rich documents, tests, and comments, supports Linux on Intel 64bit, and also aims to support Windows, OS X, and UEFI as well as ARM and AMD platforms. While a size of code is larger than that of HyperPlatform, ones look for a more complihensive yet still lightweight hypervisor will find it interesting.

License

This software is released under the MIT License, see LICENSE.

About

Intel VT-x based hypervisor aiming to provide a thin VM-exit filtering platform on Windows.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 66.3%
  • C 27.1%
  • Assembly 4.9%
  • Objective-C 1.6%
  • Batchfile 0.1%