This is a Proof Of Concept of UEFI Windows Bootkit with Secure Boot support. DSE and PatchGuard bypassed also.
State of Secure Boot status: On
Security Protocol Spoofer "MSBEA" aka Make Secure Boot Enabled Again!
I did it because I hate Windows. We must use GNU\Linux.
Also I use C++ because I hate "memory safe" and "blazzing fast" Rust.
- This POC use shimx64.efi and mmx64.efi from Ubuntu (I hate Ubuntu also. I use Arch Linux btw :3) to run SecureBootBypass aka MSBEA (grubx64.efi) in Secure Boot mode.
- MSBEA spoof EFI_SECURITY2_ARCH_PROTOCOL and EFI_SECURITY_ARCH_PROTOCOL to bypass authenticate check and run Evil.efi
- Evil.efi allocate memory for evil.sys, spoof ExitBootServices to get base address of winload.efi and SetVirtualAddressMap to convert address of allocated memory from physical address to virtual address.
- From ExitBootServices Evil.efi hook OslArchTransferToKernel. From OslArchTrasferToKernel Evil.efi infect disk.sys and Manual Map evil.sys driver.
All Windows systems with UEFI and Secure Boot support. Windows 11 also.
- You should clone this repo from github.
- Build drvtest in this folder, replace driver binary header from drvtest to HackingPkg
- Copy HackingPkg from this repo to EDK2 folder, configure EDK2 to this project and build.
- Copy shimx64.efi and mmx64.efi from any Linux ISO installer to
EFI\boot\in your USB storage. Rename shimx64.efi to bootx64.efi. - Copy HackPackage.efi and SecureBootBypass.efi to
EFI\bootdirectory also. Rename HackPackage.efi to Evil.efi. - Use a special python script pe-add-sections.py
./pe-add-sections.py -s .sbat <sbat csv file> -z .sbat -i <input file> -o <output file>and add sbat.csv to SecureBootBypass.efi .sbat section and save result to grubx64.efi.
When you run this POC for the first time, mmx64.efi throw an error. You should enroll hash of grubx64.efi and reboot PC.
If you use this project you should also spoof UEFI Runtime functions such as GetVariable and GetNextVariableName to hide Moklist variables.
Don't paste kids.
0 detects
https://www.virustotal.com/gui/file/3e6b77034d5c55c01410e289e130d1a88b26a0f4a51c701a2023a800a9573614
https://www.virustotal.com/gui/file/de705e83a56d059209a39204da38ad687368414fc4f54d289dd35ac2f83de8ea
If you wanna use this project for softwares like "super mega ultra duper faceit cs2 cheat" you must know how to hide thread after PsCreateSystemThread via PspCidTable
:3



