Git Product home page Git Product logo

rakisaionji / stealthchamp-qemu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from softwareguy/stealthchamp-qemu

1.0 0.0 0.0 94.1 MB

A modified version of QEMU with maximum stealth for those annoying VM-detecting rootkits

License: Other

Shell 0.53% Makefile 0.52% C 80.06% Meson 0.24% C++ 10.68% CSS 0.06% JavaScript 0.21% HTML 2.07% Roff 0.07% CMake 0.02% Python 4.83% Java 0.22% OCaml 0.13% PowerShell 0.01% VBA 0.04% Batchfile 0.02% Tcl 0.01% C# 0.18% Smalltalk 0.10% Lex 0.01%

stealthchamp-qemu's Introduction

StealthChamp QEMU: Stealthy Virtual Machines

What is this?

This repository contains a git snapshot version of QEMU with KVM stealth patches applied to fool programs that look for signs of VirtualBox, Virtual PC, Bochs, QEMU/KVM and VMWare.

By using this QEMU, you can play games that would either penalize you for playing under a VM (BattlEye in Rainbow Six Siege) or flat-out refuse to run (Genshin Impact).

Precautions

  • Under no circumstances should you run this stealth-patched version of QEMU as a daily driver. The code is from the official Git repository and could be in whatever state. While I have successfully booted a Windows 10 (1609) virtual machine and it works for me, it may not work as intended for you. You've been warned.
  • This version of QEMU is also great for debugging anti-tamper/anti-VM mechanisms in software or analysing suspicious software that are hostile to VM environments.
  • Do not simply run make install once you've built QEMU! You will most likely overwrite your virgin QEMU that was supplied either by compiling an official QEMU release or using a package supplied by your distro repositories. I'd honestly recommend copying the built binary to the folder you have your work directory prepared in and run it from there.

Compiling and Installation

Compiling and installation was done on Linux Mint 20.1 which is based on Ubuntu.

  1. Clone this repository to your computer.
  2. Update your distro package repositories and install dependencies for QEMU. Debian/Ubuntu can use sudo apt-get update && sudo apt-get build-dep qemu.
  3. Run the configure script, like so: ./configure --target-list=x86_64-softmmu --audio-drv-list=alsa,pa --prefix=/opt/stealth-qemu. This will install the stealth QEMU into /opt/stealth-qemu. Change if desired.
  4. If step 3 fails or something goes wrong, check to ensure you have enough disk space, you're up to date and build dependencies have been met.
  5. Run make and then make install. This will install QEMU into /opt/stealth-qemu or if you changed the path, wherever you want it.
  6. Run /opt/stealth-qemu/bin/qemu-system-x86_64 --version and you should get something like QEMU Version 5.2.50. If you do, congrats! You've got yourself a stealthy QEMU build.

Getting the custom BIOS blobs

The last part of the puzzle is getting the firmware that spoofs stuff so it's completely not QEMU/Bochs.

To save you time, blood, sweat and tears, look at my repositories for stealthChamp-firmware. Download the files in that repository and use them in conjuction with the script (details below).

If you don't trust me then you can compile EDK2 yourself but that took a while to complete so pick your poison.

Running QEMU

See the included shell script to boot a QEMU instance with stealth mode enabled.

I highly recommend not running the script in this work directory, though. It will get very messy. Copy it to a fresh work directory in your home folder.

For example, your work directory could be like:

/home/tenryuu:
- Desktop
- Documents
- Development
-- stealthChamp-qemu
--- (source repo)
-- qemu-stealth-work
--- Boot-Stealth-VM.sh
--- bios
---- OVMF_CODE.fd
---- OVMF_VARS.fd
---- nvram.fd
--- disk
---- hdd.img
- Pictures
(...)

Performance Hits Inbound

This version of QEMU requires you to disable specific CPU instructions in order to boot your OS. This will encur performance penalities since the emulator will no longer expose those virtual machine CPU instructions and the OS may fail to boot correctly if the instructions are exposed since the patch modifies them. I would not use this for extensive gaming, but for reverse engineering and various other uses it's good enough.

Credits

Again, I take no credit for what CB/DonnerPartyOf1 did. I merely patched QEMU manually and tested it out, which worked nicely. Original QEMU patch is available here: https://gitlab.com/DonnerPartyOf1/kvm-hidden.

Enjoy.

stealthchamp-qemu's People

Contributors

softwareguy avatar

Stargazers

bokutake 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.