Cocon Security Issues In Android Custom Roms
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 2011, the talk “Security Issues in Android (Custom ROMs)” examined the misconfigurations commonly baked into aftermarket Android firmware. The deck explains what custom ROMs are and where they come from, argues why they deserve security review, dissects seven risky practices found in them, demos a proof-of-concept data theft tool, and closes with protection advice for developers and users.
Summary
The session began by defining the subject: an Android ROM is the OS firmware layer of the phone, generally the /system partition and sometimes /data, containing the kernel, Dalvik, libraries, framework, and vendor-provided applications. Devices carry two kinds of firmware. Stock ROMs come pre-installed from manufacturers; custom ROMs are aftermarket versions not supported by the manufacturer, with CyanogenMod, MIUI (Chinese by origin and mimicking iPhone looks), and OMFGB given as examples. Custom ROMs promise the best of all worlds, from mixing hardware and UI preferences to updates after carriers abandon a device, bleeding-edge versions, pre-rooted images, and targeted builds for speed, gaming, performance, or battery. They are downloaded from cyanogenmod.com, miui.org, XDA Developers forums and many more underground forums, and the ROM cookers behind them are in it for fun, profit, or the “they can” attitude.
The case for security review came next: designing malware and exploits for Android was the next big thing, employees were pressuring organizations to integrate Android into corporate infrastructure, and aftermarket distributions like CyanogenMod were considered viable corporate alternatives with serious work underway to implement them in corporate environments. The deck’s question was whether anyone had tried peeking under the hood. Seven practices came under scrutiny. USB debugging enabled gives ADB file push and pull, system partition remounting, software installation without prompts, and fastboot with a different kernel. ADB shell root mode is a special setting that makes ADB run as root, activated at boot time through boot.img, ramdisk.cpio.gz, and build.prop, with the reminder to think about the other end of a charging dock. ADB over WiFi exposes the same shell on the wireless network at boot time or run time via service.adb.tcp.port, and combined with ro.secure it hands over the device, though the deck notes this was hypothetical at the time with no known usage found. System permissions matter because /system should be read-only, yet cookers were observed keeping 777 settings on it, opening the door for rootkits, trojans, and malware. Installation from unknown sources gets switched on by aftermarket forum practice, bypassing the Android Market restriction. SU access marks a rooted device, and the only known protection against unauthorized execution is Superuser.apk. Custom recovery images provide unrestricted root access by default, and getting into recovery is as simple as rebooting and holding backspace or volume down.
The demonstration followed: a proof-of-concept data theft tool targeting these weaknesses, deliberately not developed to a large extent to avoid the script kiddie approach. Protection advice split by audience. Developers were told to avoid settings not required for a normal user and to recommend closing the unknown source setting. Users were told to take a closer look at the development process, ask questions, and run the “Are You Insecure” tool, which was then demoed.
Key Themes
- Custom ROM anatomy: the ROM is the phone’s OS firmware layer, and aftermarket builds from CyanogenMod, MIUI, OMFGB and underground forums ship their own settings decisions alongside the features users want.
- Why review them: Android malware and exploit work was rising while corporate adoption of CyanogenMod-style ROMs was being planned with little security evaluation underneath.
- Debug surfaces: enabled USB debugging and ADB root mode allow silent installs, partition remounts, and fastboot with a swapped kernel, reachable from a charging dock.
- Wireless exposure: ADB over WiFi combined with root mode effectively hands the device to an attacker on the same network.
- Filesystem permissiveness: 777 permissions on the read-only /system partition enable persistent rootkits, trojans and malware.
- Root-by-default paths: unknown source installation, weakly protected SU access behind Superuser.apk, and custom recovery images with unrestricted root access widen the attack surface.
- Defense posture: developers should ship only needed settings and recommend closing unknown sources; users should examine the development process, ask questions, and run audit tooling.
Notable Points
- The deck names CyanogenMod, MIUI, and OMFGB as example custom ROMs, with sources including cyanogenmod.com, miui.org, forum.xda-developers.com, android.modaco.com, and modmymobile.com.
- ADB root mode is activated at boot time through the chain boot.img, ramdisk.cpio.gz, build.prop.
- ADB over WiFi is enabled via the service.adb.tcp.port property, at boot time or run time.
- Many ROM cookers were observed keeping 777 permissions on /system, which should be read-only.
- Custom ROM forums encourage enabling Unknown Sources, bypassing Android Market restrictions.
- Superuser.apk was cited as the only known protection against unauthorized SU execution.
- Custom recovery software provides unrestricted root access by default, entered by rebooting and pressing backspace or volume down until recovery starts.
- A proof-of-concept data theft tool was demonstrated, intentionally not developed to a large extent to avoid script kiddie misuse.
- The “Are You Insecure” security audit tool was demonstrated for users checking their own devices.
- Motivations attributed to ROM cookers: fun, profit, and the “they can” attitude.
Notable Quotes
“Did anyone tried peeking under the hood.”
“Do you pay attention to the other end of charging Dock. :)”
“Combine with our beloved ro.secure, you literally handover your device shouting : ”PLEASE OWN ME”.”
“Its observed at lots of places where Cooker’s keep 777 settings for /system”
“Remember ROOTKITS, TROJAN, MALWARE”
“With greater Power comes greater responsibility.”
“Recovery softwares provide un restricted root access by default.”






















