~/talk

Prison Break Season 6: Defeating the Mitigations Adopted by Android OEMs

Talkat Black Hat Asia 2018 · 2018-03-20..03-23· [android, security]
name:Jun Yao
links:none on file
name:Tong Lin
links:none on file
slides:none on file

Disclosure of multiple OEM kernel protections and concrete bypasses: decrypt OTA images by reversing the recovery to recover an AES-ECB key extracted from recovery binary, extract static kernel symbols, and correlate them with leaked dmesg/boot messages (or trigger leaks) to compute KASLR offsets. Use gadgets and victim function-pointer calls to read/write kernel memory without changing addr_limit, flip a UID compare into a no-op and clear page-table write-protect bits to restore syscall tables. Demos target four vendors—four device demos yielding root shells—and all bypasses run reliably on tested builds.

AI-written summary · about

  1. 0:00Start
  2. 2:55The evolution of official mitigations
  3. 3:27Shellcode
  4. 4:11The kptr_restrict
  5. 4:30Defeat kptr_restrict
  6. 4:57black hat PXN (Privileged Execute Never)
  7. 5:32black hat PAN (Privileged Access Never)
  8. 6:53Common root flow on Android
  9. 7:48Case study 1 randomized thread_info
  10. 8:12kti_offset internals
  11. 10:23Case study 2
  12. 11:17The addr_limit checking
  13. 11:38How to bypass it.
  14. 12:46blackhat Secrets in system call table
  15. 13:08Code flow on hooked system calls
  16. 14:16How kernel hooks system call tables
  17. 15:39blackhat Page table walk in user space
  18. 17:26Erase the UID checking
  19. 18:14ROM encryption
  20. 19:34Retrieving kernel symbol table statically
  21. 21:17Unzip the ozip ROM
  22. 21:48Analysis of the ozip file
  23. 22:58Recovery reversing
  24. 24:26black hat Decryption & extract kallsyms
  25. 35:11Bypass KASLR
  26. 37:00Demo
  27. 37:53Suggestions
  28. 39:32Conclusion
~/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.