G0s Workshop Android

Ground Zero Summit 2013 Delhi, India
1 / 83
Slide 1 of G0s Workshop Android
Slide 2 of G0s Workshop Android
Slide 3 of G0s Workshop Android
Slide 4 of G0s Workshop Android
Slide 5 of G0s Workshop Android
Slide 6 of G0s Workshop Android
Slide 7 of G0s Workshop Android
Slide 8 of G0s Workshop Android
Slide 9 of G0s Workshop Android
Slide 10 of G0s Workshop Android
Slide 11 of G0s Workshop Android
Slide 12 of G0s Workshop Android
Slide 13 of G0s Workshop Android
Slide 14 of G0s Workshop Android
Slide 15 of G0s Workshop Android
Slide 16 of G0s Workshop Android
Slide 17 of G0s Workshop Android
Slide 18 of G0s Workshop Android
Slide 19 of G0s Workshop Android
Slide 20 of G0s Workshop Android
Slide 21 of G0s Workshop Android
Slide 22 of G0s Workshop Android
Slide 23 of G0s Workshop Android
Slide 24 of G0s Workshop Android
Slide 25 of G0s Workshop Android
Slide 26 of G0s Workshop Android
Slide 27 of G0s Workshop Android
Slide 28 of G0s Workshop Android
Slide 29 of G0s Workshop Android
Slide 30 of G0s Workshop Android
Slide 31 of G0s Workshop Android
Slide 32 of G0s Workshop Android
Slide 33 of G0s Workshop Android
Slide 34 of G0s Workshop Android
Slide 35 of G0s Workshop Android
Slide 36 of G0s Workshop Android
Slide 37 of G0s Workshop Android
Slide 38 of G0s Workshop Android
Slide 39 of G0s Workshop Android
Slide 40 of G0s Workshop Android
Slide 41 of G0s Workshop Android
Slide 42 of G0s Workshop Android
Slide 43 of G0s Workshop Android
Slide 44 of G0s Workshop Android
Slide 45 of G0s Workshop Android
Slide 46 of G0s Workshop Android
Slide 47 of G0s Workshop Android
Slide 48 of G0s Workshop Android
Slide 49 of G0s Workshop Android
Slide 50 of G0s Workshop Android
Slide 51 of G0s Workshop Android
Slide 52 of G0s Workshop Android
Slide 53 of G0s Workshop Android
Slide 54 of G0s Workshop Android
Slide 55 of G0s Workshop Android
Slide 56 of G0s Workshop Android
Slide 57 of G0s Workshop Android
Slide 58 of G0s Workshop Android
Slide 59 of G0s Workshop Android
Slide 60 of G0s Workshop Android
Slide 61 of G0s Workshop Android
Slide 62 of G0s Workshop Android
Slide 63 of G0s Workshop Android
Slide 64 of G0s Workshop Android
Slide 65 of G0s Workshop Android
Slide 66 of G0s Workshop Android
Slide 67 of G0s Workshop Android
Slide 68 of G0s Workshop Android
Slide 69 of G0s Workshop Android
Slide 70 of G0s Workshop Android
Slide 71 of G0s Workshop Android
Slide 72 of G0s Workshop Android
Slide 73 of G0s Workshop Android
Slide 74 of G0s Workshop Android
Slide 75 of G0s Workshop Android
Slide 76 of G0s Workshop Android
Slide 77 of G0s Workshop Android
Slide 78 of G0s Workshop Android
Slide 79 of G0s Workshop Android
Slide 80 of G0s Workshop Android
Slide 81 of G0s Workshop Android
Slide 82 of G0s Workshop Android
Slide 83 of G0s Workshop Android

Abstract

A comprehensive Android security workshop covering platform internals, application architecture, the Android Tamer toolkit, and hands-on penetration testing techniques for both testing apps and using Android as a testing platform.

AI Generated Summary

AI Generated Content Disclaimer

Note: This summary is AI-generated and may contain inaccuracies, errors, or omissions. If you spot any issues, please contact the site owner for corrections. Errors or omissions are unintended.

At the Ground Zero Summit in 2013, the “Deep Dive Android” workshop ran as a comprehensive session on Android security covering platform internals, application architecture, the Android Tamer toolkit, mobile security vulnerabilities, and hands-on pentesting of Android apps plus pentesting with an Android device as the platform.

Summary

The workshop opened with Android’s credentials: 56 percent smartphone market share per Gartner May 2012, sources available free of cost, a minimal 25 dollar developer license, a Linux base, and the prediction that mobile internet would overtake desktop by 2014. System architecture described the software stack of Linux kernel merged back to mainstream in 3.4, C middleware, a Java application framework, and the Dalvik VM with a JIT compiler. The file system section broke down block devices and the important partitions: /system as the read-only OS partition, /data for user data, and /sdcard as vfat storage, with newer Nexus devices mounting a folder via MTP instead. The security model combined Unix permissions, SE Linux permissive from 4.3 and enforced in 4.4 through SEAndroid, per-app sandboxing with unique IDs, first-approval permissions, and the hidden AppOps feature. A demo section covered file system navigation with ADB and permission views including SELinux contexts.

Application architecture followed: Dalvik as Dan Bornstein’s register-based VM for memory and performance constrained machines, the dex format optimized for minimal memory footprint with multiple classes per file, and the Zygote process forking VM instances at boot. Component coverage spanned the manifest structure, Activities, Intents, and Services, plus the NDK, adb and fastboot, and a hello world exercise, with Genymotion recommended among alternate VMs.

The Android Tamer module introduced the toolkit as a VM, Live ISO, or installable environment focused on Android security, first launched at ClubHack 2011 and now based on Debian 7, with all tools in path, a preloaded pentesting browser, and repository-only updates. Its tool list spanned ROM modding, rooting, development, pentesting, reverse engineering and malware analysis, wireless capture, and forensics, with vendor flashing utilities for Sony Xperia, Samsung Galaxy, and Motorola devices.

The pentesting module ran the mobile security issue list: sniffing across SMS, email, audio, video, location, and browsing history (Secret SMS Replicator as example); telephony abuse through premium SMS and USSD purchases (FakePlayer as example); unsafe data in transit against the HTTPS and sslstrip counterpoint; hardcoded secrets; side-channel leakage; logic and time bombs; UI impersonation; rooting as a universal weakness; snappable OTA updates; backend SQL injection; tap jacking; and JavaScript attacks expanded by HTML5. The workflow covered reversing APKs with Dex2jar, JD-GUI, and APKtool; proxying traffic through ZAP or Burp with certificate import forcing a device pin; IPTables based per-app interception plus SandroProxy; device level tests with before-and-after scans; backend scanning with nmap, w3af, and nikto; and frameworks Mercury/Drozer, AFE, and the Smartphone Pentest Framework.

The final module covered pentesting through Android itself: the DroidSheep, Dsploit, and zAnti toolset, SL4A scripting with Python and Perl, and custom scripts for brute force attacks, task automation, and WordPress username enumeration, demonstrated live before a recap.

Key Themes

  • Platform fundamentals: market position, history, the software stack, and the partition layout give testers the base layer they need before touching tools.
  • A layered security model: Unix permissions, SEAndroid from 4.3 permissive to 4.4 enforced, per-app sandboxing with unique IDs, and first-approval permissions, with AppOps as the hidden tuning feature.
  • Dalvik and Zygote internals: the register-based VM, the memory-optimized dex format, and boot-time VM forking explain how Android apps execute.
  • Android Tamer as the lab: a Debian 7 based VM, Live ISO, or installable image bundling ROM modding, rooting, development, pentesting, reversing, malware analysis, wireless capture, and forensics tools.
  • A mobile threat catalog: sniffing, telephony abuse, insecure transit, hardcoded secrets, side channels, logic bombs, UI impersonation, universal rooting weakness, backend SQLi, tap jacking, and JavaScript attacks.
  • A repeatable pentest workflow: decompile statically, intercept traffic with proxy and certificate imports, intercept per-app with IPTables, inspect the device filesystem, scan the backend, and use frameworks like Drozer.
  • Android as the platform: DroidSheep, Dsploit, zAnti, and SL4A scripting with Python and Perl turn the phone into the testing device itself.

Notable Points

  • The Android Linux kernel was merged back to mainstream in version 3.4; partitions run yaffs2 or ext3/ext4 for /system and /data, and vfat for /sdcard up to 2.3.3.
  • Demo commands included ls -l and ls -lZ for SELinux contexts, with application permission checks under /data/data/ and /data/app/.
  • Android Tamer is based on Debian 7, first launched in December 2011 at ClubHack 2011, with updates delivered through repositories only.
  • Rooting kits named: ZergRush (GingerBread), adb restore (ICS/JB), Superoneclick, Gingerbreak, Z4root, superandRoot; flashing utilities: Flashtool (Sony Xperia), Heimdall (Samsung Galaxy), SBP_flash (Motorola).
  • The emulator host is reachable at 10.0.2.2; SSL interception requires installing the proxy certificate from the sdcard, which forces setting a device pin, and apps are proxified by default on 4.0 and 4.1 series.
  • IPTables interception works because Android runs each app with an individual user ID; SandroProxy was shown for on-device traffic analysis.
  • Device level tests target /data/data/<app_package_name> and /sdcard content with file system scans before and after install, usage, or removal; backend scanning uses nmap, w3af, and nikto.
  • Exercises used App Protector (referenced at /data/data/com.ruimaninfo.approtect/) and the Defender game app.
  • Pentesting frameworks named: Mercury/Drozer, AFE (Android Framework for Exploitation), and the Smartphone Pentest Framework; on-device tools named: DroidSheep, Dsploit, Interceptor, Network Discovery, Shark, Network Tools, zAnti.
  • Demo scripts included a Python based WordPress username enumeration tool and a Python based brute forcing tool.

Notable Quotes

“Ever Heard of sslstrip ?”

“Clickjacking for mobile is Tap jacking.”

“Javascript is the new playground.”

“All released android versions are vulnerable.”

“Permission need to be taken first time”

“Android runs each app with individal userid”

“Combine these two and you can do all the traffic interception you want.”

Embed This Presentation

See Also