Skip to content

adeliktas/linux-5.15-hardened-kvm-svm-qemu-win10

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

This Repo contains patches, created Ahmet Deliktas, to bypass all common vm-detection vectors in al-khaser and pafish.

For educational purposes only.

Hardened kvm for amd svm Linux Gentoo Kernel 5.15.102 with rdtsc exit timer spoofing and locky trick (instant sequence). It provides a sysctl interface to adjust the rdtsc timer dividers at runtime.

# sudo sysctl -w rdtsc_timediffdivider=300
# sudo sysctl -w rdtsc_timediffdividersecond = 10
  1. Spoof Qemu Q35 edk2-ovmf firmware

  2. Spoof Qemu serials/identifiers

  3. Toggle/Disable Hypervisor Cpu Flag at runtime via Qemu QMP command with:

# virsh qemu-monitor-command --domain win10 --cmd '{"execute": "toggle-hypervisor"}' 
  1. Qemu hardened VM conf with vfio for gaming with any Anticheat! (Vanguard untested)

Credits:

https://github.com/lexi-src/kernel-rdtsc-patch
-for the base rdtsc_interception

https://gitlab.com/DonnerPartyOf1/kvm-hidden/
-for the edk2 spoof patch
-for the base qemu spoof patch
-for the base kvm/qemu toggle hypervisor flag patch

https://gist.github.com/PiMaker/70d01cc27792418e8e14e9b2b442129c
-for the base kvm/qemu hide-hypervisor-QMP-command patch

If my repo was able to help you and save your time, please consider donating a Pizza or Coffee worth to my BTC or XMR addr. in my profile!

Feel free to message me. Help requests that don't show any invested time/efforts or huge lack of understanding will get ignored.