A ClubHack 2011 presentation introducing Android Tamer, a virtual machine environment designed as a one-stop toolkit for Android security operations. The project is described as a “Swiss Army knife for Android security”, a BackTrack-like VM that consolidates the dozens of tools security professionals previously had to download and configure individually. The talk covers the Android market context, the security challenges driving the project, the VM’s architecture and bundled toolset, and a prescient prediction about the future of Android malware.
Summary
The presentation opens by establishing why Android security matters in 2011: Android held more than 40% of the phone market by conservative estimates (possibly 80% or more), corporate integration was growing, and an Android device is essentially a computer running an operating system with software on top. The presentation draws a direct parallel to the PC malware lifecycle, arguing that the progression from simple Trojans to viruses, rootkits and obfuscated executables will repeat in the mobile domain. Malware was already appearing on both Android and iPhone, with one sample demonstrated at MalCon only days before the talk.
The core problem Android Tamer addresses is fragmentation of the security toolkit. The standard approach of the time required downloading the SDK, NDK, proxy tools and decompilers, then configuring everything by hand. While OWASP worked on mobile security standards on one side, the project built the complete toolchain into a single virtual machine, described as BackTrack for Android: all the tools needed for any kind of Android interaction on one VM.
Android Tamer is built on Ubuntu 10.04 LTS with all non-essential software removed, designed as a complementary OS that coexists with the user’s primary system. A deliberate design decision limits foreign repositories to just two PPAs (Firefox and a menu PPA) to avoid the upgrade failures that plague systems with many third-party sources. A personal repository distributes tool updates, so a newly released decompiler version reaches users through a single update command rather than manual downloading and reconfiguration.
The toolset spans several security disciplines. For application testing, the VM includes OWASP ZAP with the transparent socket proxy T-Proxy, which solves the tricky problem of intercepting non-browser application traffic, and an emulator pre-configured with ZAP’s root CA certificate so proxy-based testing works immediately. For malware analysis, DroidBox traces file system changes and behaviour automatically, while APKInspector, Androguard and four different decompilers (Dex2jar, JD-GUI, JAD and SMALI/Baksmali) offer multiple analysis approaches. ROM analysis receives significant attention: the talk discusses the XDA Developers custom ROM ecosystem and raises Carrier IQ as a concrete reason ROM analysis matters, bundling DSIXDA Android Kitchen, YAFFS2 tools and Split Boot Image for separating kernel and initial RAM disk. Development tooling completes the picture with Eclipse, the NDK, CodeSourcery G++ Lite and the newly released ARM DS5 Community Edition.
The talk closes with a striking prediction: malware code will move inside NDK binaries, C programs doing their work in the background behind a single Java call, making detection significantly harder than the Java-based malware of 2011.
Key Themes
- Consolidated tooling: the fundamental value is eliminating the time and error involved in manually assembling an Android security toolkit, following the same philosophy BackTrack brought to general penetration testing.
- Pre-configured integration: beyond bundling tools, the VM pre-configures certificates, proxy settings, paths and bookmarks to remove setup friction.
- Repeating history: the PC malware lifecycle is repeating in mobile, making proactive security tooling essential rather than reactive.
- ROM security concerns: custom ROMs from the XDA ecosystem and manufacturer firmware such as Carrier IQ represent an underappreciated attack surface needing dedicated analysis tools.
- Future malware direction: NDK-based malware using native C binaries would be significantly harder to detect than Java-based threats, a prediction that proved accurate.
Notable Points
- At the time of the talk Android held over 40% of the phone market by conservative estimates, with some estimates placing it above 80%.
- T-Proxy, a transparent socket proxy, was the key innovation for intercepting application-level traffic that browser proxy settings could not redirect.
- The personal repository approach enabled automatic tool updates through a single system update command, solving the maintenance problem of manually assembled environments.
- Only two foreign PPAs were permitted (Firefox and a menu PPA), a deliberate decision to avoid upgrade failures caused by many third-party sources.
- The emulator shipped pre-configured with ZAP’s root CA certificate so proxy-based testing worked out of the box.
- SMALI/Baksmali provided an alternative decompilation approach using a different format, useful when standard decompilers produced incomplete results.
- The Carrier IQ scandal, where US service providers tracked keystrokes and data traffic to remote servers, was presented as concrete motivation for ROM analysis.
- Android Tamer was compared against the recently launched Android Reverse Engineering Toolkit, with smaller size, broader scope and deeper integration as the differentiators.
- Future plans included adding Agnitio for source code review and a dedicated forensics section, with community contributions welcome.
Notable Quotes
“Whatever we do, we have one very simple thing which is we don’t have a tool set right now.”
1:34
“It is sort of BackTrack for Android where you have all those tools which you need for any kind of Android interaction on a single VM.”
6:07
“If you look at the whole PC malicious life cycle, we had the simple Trojans as in TSRs, then we came up ahead with various versions of viruses, root kits and everything. Same scenario is going to get repeated over and over with the mobile market.”
3:19
“You can redirect browser traffic but application traffic redirection is a tricky part, so that’s where T-Proxy comes into picture.”
9:44
“It’s recently discovered that a large number of service providers in US have been using Carrier IQ which not only tracks your basic information like how many calls you’re making, it also keep tracking your keystrokes and whatever data traffic is going on. So all that was getting transferred to some remote server.”
14:51
“You just have to click on update my system and it’ll automatically get updated.”
9:17
“I can foresee that there will be a malware landscape where the malware code resides inside an NDK binary which is a C binary doing all the tasks in the background with just one Java call calling in that particular function.”
19:37