~/talk

Windows Kernel Patch Protection - Achilles Heel: PatchGuard

Talkat RSAC 2021 · 2021-05-17..05-20· [security, linux-and-operating-systems]
links:none on file
slides:none on file

Claims a reproducible design flaw in Windows Kernel Patch Protection that lets kernel code disable PatchGuard’s crash response by hooking kernel memset and intercepting the bugcheck path. The PoC uses memset hook via DR0/DR7 plus IDT hooking and IPI calls to set per‑CPU debug registers, detects KeBugCheckEx→KeBugCheck2 with code 0x109, decrements KiHardwareTrigger and stalls the reporting thread forever. A working driver demo suppresses the BSOD and restores the IDT; DPC hangs and some race cases remain.

AI-written summary · about

  1. 0:00Introduction
  2. 0:16About Me
  3. 0:46Agenda
  4. 1:44Objective
  5. 2:28What is PatchGuard
  6. 3:19What does PatchGuard check
  7. 4:14Response analysis of PatchGuard
  8. 5:42What happens after a crash
  9. 7:29Flaws
  10. 10:16Nonsense
  11. 12:51CPU Debug registers
  12. 14:09Code
  13. 16:56Servicing Routine
  14. 24:22Creating the Hook
  15. 25:23Stall Routine
  16. 25:54Log File Entry
  17. 26:40Kernel Address
  18. 28:26Demo
  19. 32:08Problems and Improvements
  20. 32:54What to Do Now
  21. 33:44What to Do Next
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.