Android Security Workshop

Ground Zero Summit 2013

01 January 2013

A comprehensive Android security workshop covering platform internals, application architecture, the Android Tamer toolkit, and hands-on penetration testing techniques.

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.

Led by Anant Shrivastava at Ground Zero Summit 2013 in Delhi, the Android Security Workshop ran as a full training session under the deck title “Deep Dive Android”. The agenda moved through four blocks: an introduction to the Android platform, application architecture, pentesting Android with the Android Tamer toolkit, and pentesting with Android, where the phone itself becomes the testing platform. Hands-on work ran throughout: ADB file system and permission demos, a hello world development exercise, APK reversing, traffic interception, and live custom Python scripts.

Summary

The workshop opened by making the case for the platform: 56 percent smartphone market share per Gartner’s May 2012 figures, freely available sources, a 25 dollar developer license, an easy development setup, a Linux base, and a Microsoft Tag 2012 prediction that mobile internet would overtake desktop usage by 2014. A short history traced Android Inc. from its 2003 founding in Palo Alto, through Google’s August 2005 acquisition, to the Open Handset Consortium’s November 5, 2007 launch of the platform. The system overview then walked the stack: a Linux kernel merged back to mainstream in 3.4, middleware and libraries in C, a Java application framework, and the Dalvik virtual machine with a JIT compiler.

Foundations continued with the file system and the security model. The partitions that matter are /system as the read-only OS partition, /data for application storage, and /sdcard as vfat storage up to Android 2.3.3, with newer Nexus devices exposing a folder over MTP instead. Security stacks Unix permissions, per-application sandboxing under unique IDs, a permission model where approval happens the first time, AppOps as a hidden feature for fine tuning, and SEAndroid, with SE Linux permissive in 4.3 and enforced in 4.4. A live demo used ADB for navigation and showed permission views through ls -l and ls -lZ.

The application architecture block explained Dan Bornstein’s Dalvik as a register-based virtual machine built for memory and performance constrained hardware, the dex format that packs multiple classes per file with shared constant pools, and Zygote, the boot-time process that forks VM instances for apps from /dev/socket/zygote. Component coverage took in the AndroidManifest.xml structure, Activities, Intents, Services, and receivers, followed by an SDK and NDK tool tour and a hello world exercise, with Genymotion recommended among the alternate virtual machines.

The Android Tamer block presented the toolkit as a VM, Live ISO, or installable environment focused on Android security, first launched at ClubHack 2011 and built on Debian 7 with all tools in path and updates delivered through repositories only. Its categories spanned ROM modding and flashing, rooting kits, development tools, ZAP and Burp proxies, reverse engineering and malware analysis with Drozer (aka Mercury), Androguard, and DroidBox, plus Wireshark, Tcpdump, AF Logical OSE, and Sleuthkit.

The pentesting block first cataloged mobile security issues: data and activity sniffing with Secret SMS Replicator as the example, telephony abuse through premium SMS and USSD purchases via FakePlayer, insecure channels like HTTP and FTP with sslstrip named as the classic bypass, hardcoded secrets, side-channel leakage, logic and time bombs, UI impersonation, rooting framed as a universal weakness, update cycles that remain carrier and manufacturer dependent, backend SQL injection, tap jacking, and a JavaScript attack surface expanded by HTML5. The workflow then reversed APKs with Dex2jar, JD-GUI, and APKtool, intercepted traffic through ZAP or Burp, imported proxy certificates onto the device, applied IPTables rules per application UID plus SandroProxy, scanned /data/data and /sdcard before and after use, and hit identified backends with nmap, w3af, and nikto. Frameworks named were Mercury/Drozer, AFE, and the Smartphone Pentest Framework, and the exercises probed the App Protector app and the Defender game.

The closing block turned the device into the attack platform: DroidSheep, Dsploit, zAnti, and the rest of the on-device toolset, SL4A scripting with Py4a and Pl4a, and custom Python work including a WordPress username enumeration script and a brute forcing tool, both demonstrated before the recap.

Key Themes

Notable Points

Notable Quotes

“Permission need to be taken first time”

“Android runs each app with individal userid”

“APK == JAR == TAR”

“Ever Heard of sslstrip ?”

“All released android versions are vulnerable.”

“Clickjacking for mobile is Tap jacking.”

“With HTML5 in picture now the vectors availability has increased multifolds.”