decompiling android workshop

12
Godfrey Nolan

Upload: godfreynolan

Post on 08-May-2015

545 views

Category:

Documents


0 download

DESCRIPTION

Reverse Engineering APKs workshop at the Detroit Google DevFest Mar 2013

TRANSCRIPT

Page 1: Decompiling Android Workshop

Godfrey Nolan

Page 2: Decompiling Android Workshop

� Easy access to APKs

� APK design

� Same trailer, different park

Page 3: Decompiling Android Workshop
Page 4: Decompiling Android Workshop
Page 5: Decompiling Android Workshop
Page 6: Decompiling Android Workshop
Page 7: Decompiling Android Workshop

� sdcard

� Rooting phone

� Download from forums

Page 8: Decompiling Android Workshop

� Identify and protect sensitive data on the mobile device� Handle password credentials securely on the device� Ensure sensitive data is protected in transit� Implement user authentication, authorization and session

management correctly� Keep the backend APIs (services) and the platform (server) secure� Secure data integration with third party services and applications� Pay specific attention to the collection and storage of consent for

the collection and use of the user’s data� Implement controls to prevent unauthorized access to paid-for

resources (wallet, SMS, phone calls etc.)� Ensure secure distribution/provisioning of mobile applications� Carefully check any runtime interpretation of code for errors

Page 9: Decompiling Android Workshop

� Download an APK� adb pull /data/app/Dashboard.apk

� Unzip APK� Disassemble an APK

� apktool d Dashboard.apk

� Decompile an APK� dex2jar.bat Dashboard.apk, open in JD-GUI

� SQLite investigation� adb backup –noapk Dashboard.apk

� java –jar abe.jar unpack backup.ab backup.tar

Page 10: Decompiling Android Workshop

� https://code.google.com/p/dex2jar/

� http://java.decompiler.free.fr/?q=jdgui

� http://www.netmite.com/android/mydroid/dalvik/docs/dex-format.html

� http://www.netmite.com/android/mydroid/dalvik/docs/instruction-

formats.html

� https://code.google.com/p/android-apktool/

� http://sourceforge.net/projects/adbextractor/files/

� http://www.sweetscape.com/010editor/

� http://sqlitebrowser.sourceforge.net/

Page 11: Decompiling Android Workshop

� Giveaway

Page 12: Decompiling Android Workshop

� http://www.decompilingandroid.com

� @decompiling

[email protected]

� http://www.riis.com