G0s Workshop Android
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.”


















































































