Targeting the iOS Kernel - Reverse Engineering Mac OS X
Targeting the iOS Kernel - Reverse Engineering Mac OS X Targeting the iOS Kernel - Reverse Engineering Mac OS X
KDP on iOS 4 • the OS X kernel debugger KDP is obviously inside the iOS kernel • but KDP does only work via ethernet or serial interface • how to communicate with KDP? • the iPhone / iPad do not have ethernet or serial, do they? Stefan Esser • Targeting the iOS Kernel • April 2011 • 54
iPhone Dock Connector (Pin-Out) PIN Desc 1,2 GND 3 Line Out - R+ 4 Line Out - L+ 5 Line In - R+ 6 Line In - L+ 8 Video Out 9 S-Video CHR Output 10 S-Video LUM Output 11 GND 12 Serial TxD 13 Serial RxD 14 NC 15,16 GND 17 NC 18 3.3V Power 19,20 12V Firewire Power 21 Accessory Indicator/Serial Enable 22 FireWire Data TPA- 23 USB Power 5 VDC 24 FireWire Data TPA+ 25 USB Data - 26 FireWire Data TPB- 27 USB Data + 28 FireWire Data TPB+ 29,30 GND iPhone Dock Connector has PINs for - Line Out / In - Video Out - USB - FireWire - Serial Stefan Esser • Targeting the iOS Kernel • April 2011 • 55
- Page 3 and 4: Motivation • iPhone security heav
- Page 5 and 6: Part I Introduction Stefan Esser
- Page 7 and 8: Finding Vulnerabilities in the iOS
- Page 9 and 10: Interesting Kernel Bugs - OS X OS X
- Page 11 and 12: Part II The iOS Kernelcache Stefan
- Page 13 and 14: Getting the iOS Kernelcache (II)
- Page 15 and 16: Kernelcache is just a Mach-O Binary
- Page 17 and 18: iOS Kernelcache vs. IDA • IDA can
- Page 19 and 20: Helping IDA - Kernel Extensions •
- Page 21 and 22: Helping IDA - findAndMarkKEXT.py St
- Page 23 and 24: IOKit Driver Classes (I) • IOKit
- Page 25 and 26: IOKit Object Hierarchy - Full View
- Page 27 and 28: Part IV iOS Kernel Where Are your S
- Page 29 and 30: Kernel Symbols - Manual Symbolizati
- Page 31 and 32: Zynamic‘s BinDiff • Zynamic‘s
- Page 33 and 34: Zynamic‘s BinDiff - Demo (II) Ste
- Page 35 and 36: Using IOKit Class Hierarchy for Sym
- Page 37 and 38: Exporting Symbols • IDA cannot ex
- Page 39 and 40: iOS Kernel Attack Surface • simpl
- Page 41 and 42: Finding and Marking the Syscall Tab
- Page 43 and 44: Attacking through Network Protocols
- Page 45 and 46: Attacking through Network Protocols
- Page 47 and 48: Attacking through Devices (II) com.
- Page 49 and 50: Dumping List of Sysctl Handlers mai
- Page 51 and 52: Attacking from User-Land: IOKit Dri
- Page 53: iOS Kernel Debugging • no support
- Page 57 and 58: Ingredients (I) • 470 kΩ resisto
- Page 59 and 60: Ingredients (III) • FT232RL Break
- Page 61 and 62: Final USB and USB Serial Cable •
- Page 63 and 64: KDP over serial • KDP over serial
- Page 65 and 66: Using GDB... $ /Developer/Platforms
- Page 67: Links • xpwntool - https://github
KDP on <strong>i<strong>OS</strong></strong> 4<br />
• <strong>the</strong> <strong>OS</strong> X kernel debugger KDP is obviously inside <strong>the</strong> <strong>i<strong>OS</strong></strong> kernel<br />
• but KDP does only work via e<strong>the</strong>rnet or serial interface<br />
• how to communicate with KDP?<br />
• <strong>the</strong> iPhone / iPad do not have e<strong>the</strong>rnet or serial, do <strong>the</strong>y?<br />
Stefan Esser • <strong>Targeting</strong> <strong>the</strong> <strong>i<strong>OS</strong></strong> <strong>Kernel</strong> • April 2011 •<br />
54