~/talk

XOM-switch: Hiding Your Code from Advanced Code Reuse Attacks In One Shot

Talkat Black Hat Asia 2018 · 2018-03-20..03-23· [security]
links:none on file
links:none on file
slides:none on file

A deployable tool called XOM-switch statically patches ld.so to enable executable-only pages on Intel CPUs using PKU/protection keys without source or heavy binary rewriting. It maps code pages at load time, uses WRPKRU/PKRU to flip permissions in 60–120 cycles (versus ~20,000 for mprotect), supports 16 protection keys per process, and adds ~7% code size (glibc +0.9%). On Firefox a 104 MB code footprint yields 1.5 MB readable, 57% executable-only, 40% read-only (≈97% reduction); code is open source (xom-switch.git) and requires Linux ≥4.9 and radare2 for patching.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:04Code reuse attack landscape
  3. 4:18Limitations of current defenses
  4. 8:43Intel protection keys explained
  5. 12:06Leveraging MPK for security
  6. 16:20Executable-only memory design
  7. 17:40Binary patching methodology
  8. 20:06Implementing the loader patch
  9. 26:21Securing against MPK abuse
  10. 28:18Evaluation and performance
  11. 31:08Attack effectiveness analysis
  12. 32:31Practical usage and conclusion
~/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.