Coder Social home page Coder Social logo

hhy5277 / minivisorpkg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tandasat/minivisorpkg

0.0 1.0 0.0 3.93 MB

The research UEFI hypervisor that supports booting an operating system.

License: MIT License

Python 0.15% JavaScript 0.17% Assembly 1.20% C++ 1.11% C 97.37%

minivisorpkg's Introduction

MiniVisor

Codacy Badge

This is a research hypervisor written as a UEFI and Windows driver for the educational purpose for Intel processors.

This MiniVisor, as a UEFI driver, provides the ability to inspect system activities even before the operating system boots, while as a Windows driver, allows developers to debug it with familiar tools like WinDbg.

Showcase

  • Loading the hypervisor from the UEFI shell. Readme_Showcase1.jpg

  • Logging boot activities and interacting with the guest. Readme_Showcase2.jpg

  • Booting Ubuntu on a bare-metal. Readme_Showcase3.jpg

Motivation

The goal of this project is to share an additional learning resource for writing UEFI hypervisors with the community and researchers.

There are numerous open source hypervisors with small and easy-to-study implementations, but those that support booting operating systems as UEFI drivers are still not many.

Given the universality of UEFI systems on the AMD64 ecosystem and the unique ability to monitor, attack and protect the system throughout operating system startup on bare-metal systems, the authors believe that having the understanding and being able to develop this type of hypervisors are valuable for research.

System Requirements

Common Requirements:

  • Intel VT-x and EPT supported processors

Requirements for the UEFI driver:

  • UEFI-based system
  • 64bit Windows 10, IoT Core, or Ubuntu to boot

Requirements for the Windows driver:

  • 64bit Windows 7 and 10

See Building and Debugging for testing.

Advantages and Use Cases

While this project does not implement or designed for any immediately useful features, UEFI-based hypervisors have multiple advantages over Windows driver-based ones and can implement unique features.

  • No need of disabling Hyper-V (Virtualization Based Security) to run the custom hypervisor
  • No need of enabling the test-signing mode
  • Zero direct indicator of existence of the hypervisor from operating system perspective
  • Detecting bootkit and early system modification
  • Implementing operating system agnostic solutions
  • Installing hooks during the early boot phase and letting PatchGuard to protect them Readme_Showcase4.jpg

Acknowledgments

The authors thank for creators and maintainers of the following projects:

  • Bareflank and STM -- for publishing UEFI-base hypervisors with the relatively small codebase.
  • zpp_hypervisor -- for making me realize that writing UEFI-based hypervisors is viable.
  • EfiGuard -- for clean codebase and rich documentation for UEFI development newbies.
  • hvpp -- for few techniques required for the UEFI environment.
  • ia32-doc -- for saving me from defining thousands of constants and structures by hand.

minivisorpkg's People

Contributors

brucedang avatar tandasat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.