MAN IN THE BINDER:
HE WHO CONTROLS IPC, CONTROLS THE DROID
Everything Goes Through The Binder A Hack in Three Acts Act I Know - - PowerPoint PPT Presentation
MAN IN THE BINDER: HE WHO CONTROLS IPC, CONTROLS THE DROID Everything Goes Through The Binder A Hack in Three Acts Act I Know Your Droid Act II Atuack Your Droid Act III Prepare Your Droid Meet The Cast The Authors Nitay
MAN IN THE BINDER:
HE WHO CONTROLS IPC, CONTROLS THE DROID
Nitay Artenstein Idan Revivo Michael Shalyt
Name: Kituy Bank Occupatjon: Bank Applicatjon “U want KitCoins – we haz it”
Name: Kituy-ninja Occupatjon: Script kiddy “Mommy, can I rob this bank?”
Name: Paw of Death Occupatjon: Black belt ninja hacker “To rob a bank, you must fjrst become the bank”
Name: System Service Occupatjon: Sittjng and waitjng to serve your needs These things run Android!
Name: $ echo `uname –r` Occupatjon: Holding the world
Feeling neglected now that system services get all the atuentjon on Android
Name: The Binder Occupatjon: All Powerful Mystery Character
Syscalls
Syscalls Syscalls Syscalls
Syscalls Syscalls
/dev/binder /dev/tuy0 libbinder.so libbinder.so
kernel
/system/libbinder.so /system/libbinder.so /system/lib*.so /system/lib*.so
DalvikVM DalvikVM
syscall
parcel parcel Bank Applicatjon Process System Service Process
applicatjon applicatjon System services proxy System services proxy
libandroid_runtjme.so libandroid_runtjme.so libandroid_runtjme.so libandroid_runtjme.so
System Service System Service
component and a kernel
Parcel via an ioctl syscall and sends it to the target processes
libbinder.so libbinder.so
DalvikVM
Kituy Bank Process
Parcels Syscalls Parcels
Audio Manager
A n00b Atuacker’s View of The System
What Would The n00b Atuacker Do?
What Would The n00b Atuacker Do?
What Would The n00b Atuacker Do?
A Ninja Atuacker’s View of The System
What Would The Ninja Atuacker Do?
What Would The Ninja Atuacker Do?
A n00b Atuacker’s View of The System
Actjvity Actjvity Actjvity
What Would The n00b Atuacker Do?
Bye Kituy Bank , Hello Shi**y Bank
What Would The n00b Atuacker Do?
Bye Kituy Bank , Hello Shi**y Bank
A Ninja Atuacker’s View of The System
Actjvity Manager
In-app data goes through Binder???
A Ninja Atuacker’s View of The System
Actjvity Manager
What Would The Ninja Atuacker Do?
Actjvity Manager
What Would The Ninja Atuacker Do?
A n00b Atuacker’s View of The System
Telephony Manager
What Would The n00b Atuacker Do?
Just Ask Politely
What Would The n00b Atuacker Do?
Just Ask Politely
A Ninja Atuacker’s View of The System
Telephony Manager
What Would The Ninja Atuacker Do?
whenever an SMS is received
What Would The Ninja Atuacker Do?
ioctl to the kernel
Vulnerable to known rootjng exploits
Features:
party security apps just like any other app.
browser, but for literally everything on Android.
tjme soon.
What are you trying to tell me? That I can get all permissions on a device? No. I’m trying to tell you that when you’re ready, you won’t have to
space.
encrypt what has to go.
[1] White paper: “Man in the Binder”, Artenstein and Revivo [2] “On the Reconstructjon of Android Malware Behaviors”, Fatori, Tam et al [3] “Binderwall: Monitoring and Filtering Android Interprocess Communicatjon”, Hausner