~/talk

Detecting Reflective Injection

Talkat DEF CON 20 · 2012-07-26..07-29· [security]
links:none on file
slides:none on file

A week‑built detector implemented in Python with ctypes scans process memory via VirtualQuery and checks the two pages before executable regions for “MZ” to find reflectively injected DLLs, catching most cases but producing false positives (Flash/Java) and running only reliably on x86; a C port exists but is slower, and an auto‑kill feature was removed. Response options demonstrated include flipping page permissions, suspending threads, dumping and rebuilding relocations, or editing the process module table to attach the DLL. Evasion techniques shown: zero out MZ, map a huge benign binary and carve the DLL inside, or toggle header page permissions.

AI-written summary · about

  1. 0:00Reflective Injection Detection - RID.py
  2. 0:38Pre-talk notes
  3. 1:13Why would I do a talk that's going t make people angry? If you want to make some enemies
  4. 1:43Reflective Injection?
  5. 4:49Why does it still work?
  6. 5:37Defense side of things
  7. 6:25So first build a white-list
  8. 7:49Process of elimination
  9. 9:14So now that we found it
  10. 11:19Offense side of things
  11. 16:45Conclusion
  12. 17:23It's not pretty, but it works.
  13. 18:00The other code
  14. 19:08Questions?
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.