CyanogenMod developers remove code that logged device screen-lock patterns

An unwanted line of code in the CyanogenMod Android firmware posed security risks by logging device screen-lock patterns

The development team of CyanogenMod, a popular community-built Android firmware, discovered and removed a line of code that posed potential security risks because it logged and stored device screen-lock patterns in a file.

The unwanted line of code was added back in August in CyanogenMod version 10, which is based on Android 4.1 (Jelly Bean), as part of a new feature that allowed the size of the lock screen's dot grid to be configurable -- for example from the default 3x3 size to 6x6.

"The line of code has been introduced by a respectable member of the Cyanogen community and I don't suspect it has been added with malicious intent," Bogdan Botezatu, a senior e-threat analyst at antivirus vendor Bitdefender, said Tuesday via email. "Most probably, it is a snippet of code used during debugging and forgotten when committing the code."

However, the presence of the code does pose some security risks, Botezatu said. For example, if a locked device is lost or stolen and that device is rooted, which is the case for many CyanogenMod devices, the log file containing its unlock swipe pattern can easily be read by connecting the device to a computer and using the Android Debug Bridge (ADB) command line tool.

A jealous spouse could also use this simple method to learn the screen unlock pattern for their partner's phone and later snoop on their phone call history, emails, private social networking chats, etcetera, Botezatu said. "GPS tracking or keylogging applications can also be installed while the phone is unlocked."

This case is the best example of how a simple line of forgotten code can cause a chain reaction that results in the theft of personal information or invasion of privacy, Botezatu said.

The problematic line of code was spotted and removed by CyanogenMod developer Gabriel Castro on Sunday. "I'm really surprised nobody caught this," he wrote in his patch comments.

Users of CyanogenMod 10 who are concerned about this bug affecting their privacy or security should upgrade to the latest nightly build available for their device model.

According to statistics, the official builds of CyanogenMod are installed on 1,137,335 devices and unofficial builds on 1,366,560 devices. The nightly builds of CyanogenMod 10 are currently the most popular versions of CyanogenMod and account for over 240,000 official installs.

Join the newsletter!

Error: Please check your email address.
Rocket to Success - Your 10 Tips for Smarter ERP System Selection

Tags Android OSsecuritymobile securityExploits / vulnerabilitiesdata protectionprivacybitdefender

Keep up with the latest tech news, reviews and previews by subscribing to the Good Gear Guide newsletter.

Lucian Constantin

IDG News Service
Show Comments

Cool Tech

Breitling Superocean Heritage Chronographe 44

Learn more >

SanDisk MicroSDXC™ for Nintendo® Switch™

Learn more >

Toys for Boys

Family Friendly

Panasonic 4K UHD Blu-Ray Player and Full HD Recorder with Netflix - UBT1GL-K

Learn more >

Stocking Stuffer

Razer DeathAdder Expert Ergonomic Gaming Mouse

Learn more >

Christmas Gift Guide

Click for more ›

Most Popular Reviews

Latest Articles

Resources

PCW Evaluation Team

Walid Mikhael

Brother QL-820NWB Professional Label Printer

It’s easy to set up, it’s compact and quiet when printing and to top if off, the print quality is excellent. This is hands down the best printer I’ve used for printing labels.

Ben Ramsden

Sharp PN-40TC1 Huddle Board

Brainstorming, innovation, problem solving, and negotiation have all become much more productive and valuable if people can easily collaborate in real time with minimal friction.

Sarah Ieroianni

Brother QL-820NWB Professional Label Printer

The print quality also does not disappoint, it’s clear, bold, doesn’t smudge and the text is perfectly sized.

Ratchada Dunn

Sharp PN-40TC1 Huddle Board

The Huddle Board’s built in program; Sharp Touch Viewing software allows us to easily manipulate and edit our documents (jpegs and PDFs) all at the same time on the dashboard.

George Khoury

Sharp PN-40TC1 Huddle Board

The biggest perks for me would be that it comes with easy to use and comprehensive programs that make the collaboration process a whole lot more intuitive and organic

David Coyle

Brother PocketJet PJ-773 A4 Portable Thermal Printer

I rate the printer as a 5 out of 5 stars as it has been able to fit seamlessly into my busy and mobile lifestyle.

Featured Content

Product Launch Showcase

Latest Jobs

Don’t have an account? Sign up here

Don't have an account? Sign up now

Forgot password?