Deep Dive Android Cocon
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 c0c0n 2013, “Deep Dive Android” ran as a comprehensive training workshop on Android security. The deck covers the platform from the ground up: what Android is and why it dominates, the system and file system architecture, the security model, the Android Tamer toolkit, application architecture down to the Dalvik VM, mobile security issues, a full pentesting methodology, and finally pentesting with an Android device as the platform itself.
Summary
The introduction grounded Android’s importance: 56 percent smartphone market share per Gartner May 2012, free sources, a minimal 25 dollar developer license, a Linux base, and the prediction that mobile internet would overtake desktop by 2014. System architecture covered the software stack through the Dalvik VM with a JIT compiler, and the file system mapped /system as the OS image, /data as user data, and /sdcard as vfat storage, with newer Nexus devices dropping the separate partition for an MTP-mounted folder. The security model combined Unix permissions, SELinux from 4.3 in permissive mode, per-app sandboxing with unique IDs, first-approval permissions, and the hidden AppOps feature. A 14GB source download with one to ten hour builds made Android Tamer and emulator VMs the practical shortcut.
The Android Tamer section presented the toolkit’s second release: a VM, Live ISO, or installable environment focused on Android security, first launched at ClubHack 2011, based on Ubuntu 12.04 and Linux Mint 13, supported until 2017, with all tools in path, a preloaded pentesting browser, and updates through repositories only. Its tool list spanned ROM modding, rooting, development, pentesting, reverse engineering and malware analysis, wireless capture, forensics, and practice labs, with vendor flashing utilities for Sony, Samsung, and Motorola devices.
Application architecture went deep on Dalvik: Dan Bornstein’s register-based design built for memory and performance constraints, dex bytecode packing multiple classes per file with shared constant pools, and the Zygote process forking VM instances for each app at boot. Component coverage included Activities, Intents, Services, the manifest structure, and the SDK/NDK tool set down to a hello world exercise.
The pentesting module began with the mobile security issue list: sniffing across SMS, email, audio, video, location, and browsing history (Secret SMS Replicator as example); unauthorized telephony through premium SMS and USSD purchases (FakePlayer as example); unsafe data in transit countered by HTTPS with the sslstrip caveat; hardcoded database connection strings and API keys; side-channel leakage; client-side business logic disclosure; logic and time bombs; UI impersonation; rooting weaknesses; snappable OTA updates; backend SQL injection; tap jacking; and JavaScript attacks expanding with HTML5. The workflow: static analysis by unzipping the APK, converting dex to jar, decompiling with JD-GUI, and extracting resources with APKtool; network interception through a proxy with certificate import, which forces a device pin; IPTables based per-app interception using each app’s individual user ID; 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 closing module turned Android itself into the testing platform: DroidSheep, Dsploit, zAnti and similar tools, an SL4A environment with Python and Perl, and custom scripts for brute forcing, task automation, and WordPress username enumeration.
Key Themes
- Why Android matters: majority market share, free sources, a 25 dollar developer license, and mobile internet growth made it the platform security people could not ignore.
- Architecture as foundation: the Linux kernel merged in 3.4, the Dalvik VM, and the /system, /data, and /sdcard partition layout underpin every analysis technique in the deck.
- A layered security model: Unix permissions, SELinux in permissive mode from 4.3, per-app sandboxing with unique IDs, and a first-approval permission model, with AppOps as a hidden tuning knob.
- Android Tamer as the toolkit: one environment covering ROM modding, rooting, development, pentesting, reverse engineering, malware analysis, wireless capture, and forensics, updated through repositories.
- Dalvik internals: the register-based VM, the dex format with shared constant pools, and the Zygote fork model explain how apps actually run.
- A mobile threat catalog: sniffing, telephony abuse, insecure transit and storage, hardcoded secrets, side channels, logic bombs, UI impersonation, backend SQLi, tap jacking, and JavaScript attacks.
- A repeatable pentest workflow: decompile and inspect statically, intercept traffic with proxy and certificate imports, test the device filesystem, scan the backend, and lean on frameworks like Drozer.
- Android as the attacker’s platform: DroidSheep, Dsploit, zAnti and SL4A scripting turn the phone into the testing device itself.
Notable Points
- The Linux kernel used by Android was merged back to mainstream in version 3.4.
- Android Tamer’s second release is based on Ubuntu 12.04 and Linux Mint 13, supported until 2017, and was first launched in December 2011 at ClubHack 2011; its home moved to androidtamer.com.
- Tamer tooling includes rooting kits (ZergRush for GingerBread, adb restore for ICS/JB, Z4root, Gingerbreak, Superoneclick, superandRoot) and vendor flashing utilities (Flashtool for Sony Xperia, Heimdall for Samsung Galaxy, SBP_flash for Motorola).
- The Android source download was 14GB and counting, and a full build took one to ten hours depending on processor cores.
- The emulator host is reachable at 10.0.2.2.
- SSL interception requires exporting the proxy certificate, pushing it via adb push to /sdcard/, and installing it from settings, which forces setting a device pin; apps are proxified by default on Android 4.0 and 4.1 series unlike emulators up to 2.3.3.
- IPTables based interception works because Android runs each app with an individual user ID, so rules can target per-user traffic.
- Device level tests inspect /data/data/<app_package_name>, /sdcard content, and file system diffs before and after install, usage, or removal; backend scanning uses nmap, w3af, and nikto.
- Pentesting frameworks named: Mercury/Drozer, AFE (Android Framework for Exploitation), and the Smartphone Pentest Framework.
- On-device pentesting tools named: DroidSheep, Dsploit, Interceptor, Network Discovery, Shark, Network Tools, and zAnti, with SL4A plus Py4a and Pl4a for scripting.
Notable Quotes
“Ever Heard of sslstrip ?”
“Clickjacking for mobile is Tap jacking.”
“Javascript is the new playground.”
“All released android versions are vulnerable.”
“So tradition SQLi still works the deal is to find the backend.”
“APK == JAR == TAR”
“ANDROIDTAMER alone should be sufficient”


















































































