October 4, 2016 By Douglas Bonderud 2 min read

Generally speaking, lockscreen ransomware ranks on the not-so-sophisticated end of the malware spectrum. As noted by Information Age, this type of ransomware can be a mere “nuisance” when confined to a single PC or laptop. When it comes to mobile devices, however, lockscreen attacks can be devastating since users are effectively stonewalled, kept away from contacts, photographs and other digital assets that have become a key part of the bring-your-own-device (BYOD) revolution.

While some variants of lockscreen malware have been relatively easy to reverse engineer, HackRead described a newly updated version of Android.Lockscreen that ups the annoyance factor by making it almost impossible to recover original passcodes. Here’s a look at the new lock on the block.

Lucrative Locks

According to Softpedia, the original version of Android.Lockscreen wasn’t especially complex. Once a device was infected, the malware created a custom PIN code to lock the user out. An on-screen message advised the device owner to call “technical support.” The victim was then compelled to pay for the privilege of having his or her password reset.

Infection vectors were typical — infected third-party apps and malicious links — but the resolution was also straightforward, since the malware source code included the new PIN. This made it possible to extract the code, hand it over to users and avoid paying cybercriminals anything.

Soon enough, however, malware-makers realized their mistake and set about creating a new and improved version of this lockscreen ransomware. The result: pseudorandom number generation and a big headache for Android users.

Pseudorandom PINs

Using the Math.Random() function, attackers were able to design a piece of malware that skipped hard-coded PINs in favor of randomly generated six- or eight-digit numbers to replace existing user passcodes. They’re called pseudorandom because they’re limited in size and therefore occupy a finite set. Still, it’s enough to make the device virtually unlockable since every smartphone or tablet infection generates its own random code.

It doesn’t stop there: The new lockscreen ransomware also uses device admin privileges to modify the user’s existing PIN. It displays a system error screen on every visible user interface, prompting the user to contact the attackers for the new passcode. So far, attempts to deconstruct this attack have been unsuccessful, leaving owners to either wait for a fix or pony up the cash.

Avoiding Lockscreen Ransomware

Thankfully, there are ways to avoid the new lockscreen ransomware. First, get Nougat. The newest Android release prevents calls for PIN or passcode changes from any other apps if the PIN was previously set by the user. While lockscreen larcenists will likely find a way around this protection eventually, for the moment it is a foolproof way to solve the problem.

For users who can’t get Nougat or don’t want the new iteration, staying safe means sticking to reputable app stores, avoiding shady links and, most importantly, paying attention to the permissions requested by a new install. Any app carrying this malware needs permission to lock the screen, change device settings and overlay messages above other applications — a sure sign something isn’t above board.

Lockscreen malware isn’t new and it isn’t always a surefire payday for cybercriminals. The combination of vulnerable mobile devices and pseudorandom number generation, however, makes this ransomware one to watch. For the moment, locked Androids mean lost data and big ransom revenues.

More from

What we can learn from the best collegiate cyber defenders

3 min read - This year marked the 19th season of the National Collegiate Cyber Defense Competition (NCCDC). For those unfamiliar, CCDC is a competition that puts student teams in charge of managing IT for a fictitious company as the network is undergoing a fundamental transformation. This year the challenge involved a common scenario: a merger. Ten finalist teams were tasked with managing IT infrastructure during this migrational period and, as an added bonus, the networks were simultaneously attacked by a group of red…

A spotlight on Akira ransomware from X-Force Incident Response and Threat Intelligence

7 min read - This article was made possible thanks to contributions from Aaron Gdanski.IBM X-Force Incident Response and Threat Intelligence teams have investigated several Akira ransomware attacks since this threat actor group emerged in March 2023. This blog will share X-Force’s unique perspective on Akira gained while observing the threat actors behind this ransomware, including commands used to deploy the ransomware, active exploitation of CVE-2023-20269 and analysis of the ransomware binary.The Akira ransomware group has gained notoriety in the current cybersecurity landscape, underscored…

New proposed federal data privacy law suggests big changes

3 min read - After years of work and unsuccessful attempts at legislation, a draft of a federal data privacy law was recently released. The United States House Committee on Energy and Commerce released the American Privacy Rights Act on April 7, 2024. Several issues stood in the way of passing legislation in the past, such as whether states could issue tougher rules and if individuals could sue companies for privacy violations. With the American Privacy Rights Act of 2024, the U.S. government established…

Topic updates

Get email updates and stay ahead of the latest threats to the security landscape, thought leadership and research.
Subscribe today