~/talk

Using EMET to Disable EMET

Talkat Black Hat USA 2016 · 2016-08-03..08-04· [security]
links:none on file
links:none on file
slides:none on file

Demonstrates a reliable ROP chain that calls DllMain with PROCESS_DETACH to trigger EMET’s unload routine, uses GetModuleHandle to find EMET’s base and restores original prologues via memcpy to remove detours, and then zeros hardware debug registers and calls SetThreadContext to disable EAF/EF checks. Works against EMET 5.2.0.1 using a modified Firefox exploit; Microsoft fixes in EMET 5.5 add integrity checks so the same DllMain call now rewrites hooks instead of removing them.

AI-written summary · about

  1. 0:00Introduction
  2. 1:25Who am I
  3. 1:49Amit
  4. 2:04Lost the battery
  5. 2:18Funny story
  6. 5:10Load Library
  7. 6:18EMET protections
  8. 9:33Antidote
  9. 10:33Previous Technique
  10. 14:13Evaluation Techniques
  11. 15:03Stackable Check
  12. 17:00Custom Class Check
  13. 18:12College Check
  14. 18:59Call Register Return Gadget
  15. 19:43Return into Shell Code
  16. 20:29Same Exit Flow
  17. 21:16Using EMET in MS HTML
  18. 25:32Using EMET in Import Address Table
  19. 26:29Targeted Evasion
  20. 27:29Assumptions
  21. 27:57API Address
  22. 28:20Relative Jump
  23. 29:59The Problem
  24. 31:12Main Highlights
  25. 32:31New Technique
  26. 33:27DLL Main Prototype
  27. 35:01Data Structures
  28. 38:08Loading Library
  29. 38:56Setting Context Thread
  30. 39:12Exploit Implementation
  31. 40:48Exploit Gadgets
  32. 41:44How did Microsoft fix it
  33. 43:23Importance of custom exploit prevention techniques
  34. 45:32Demo
~/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.