2 min read

An Android Malware Analysis: DroidKungFu

Liviu ARSENE

November 16, 2012

An Android Malware Analysis: DroidKungFu

Android malware is something we`ve seen spreading and evolving for the past couple of years as smartphones became an essential part of our lives.

Few users are aware of how Android malware works. Few understand their complexity or the amount of data they can pillage from handsets. As such, we decided to come up with a short series of articles to take apart some of the most common and potentially dangerous Android malware strands that wreak havoc on smartphones.

One of its most interesting features is that it roots Android devices by using encrypted root exploits, such as Rage Against The Cage, gaining the ability to collect data, install/uninstall apps, and pretty much having unlimited access to a users` device.

After a system bot, DroidKungFu starts collecting the IMEI number, Android OS version, and phone model, only to dump with a HTTP POST to an attacker controlled server.

An Android Malware Analysis: DroidKungFu

The example above illustrates the POST format and the URL link that`s collecting the data. Some samples of DroidKungFu have been known to contact up to three C&C (command and control) servers. Around the same time, attackers switched from a classic Java implementation to native code, to make detection and analysis a lot more difficult.

An Android Malware Analysis: DroidKungFu

Moving on to the actual exploit, DroidKungFu uses an AES-encrypted “ratc” file (short for “Rage Against The Cage”), that`s decrypted at runtime and used to exploit the adb resource exhaustion bug. In doing so, it pulls a privilege escalation stunt and enables it to successfully root any Android 2.1 or Android 2.2 device.

An Android Malware Analysis: DroidKungFu

Furthermore, DroidKungFu also comes with a built-in ability to install additional packages or even remove some existing ones. The payload is named “legacy” and impersonates the Google Search app, while setting up a backdoor that connects to a C&C server to await further instructions.

An Android Malware Analysis: DroidKungFu

The “legacy” payload turns the phone into a bot by allowing an attacker to gain remote control over your device while nabbing valuable information from the compromised phone.

As a cautionary reminder, not all apps downloaded from third-party marketplaces are safe, because malware writers often use high profile games and tools to disseminate malicious code. Although the analyzed DroidKungFu sample is pretty old, it does illustrate how Android malware evolved and points to an even more aggressive behavior in the future.

Users are advised to always use a mobile antivirus solution, download apps from trusted sources, and make sure they read app permissions carefully before installing anything.

tags


Author



Right now

Top posts

Watch Out for These Ongoing Bank of America Phishing Campaigns Targeting Customers in the US

Watch Out for These Ongoing Bank of America Phishing Campaigns Targeting Customers in the US

July 16, 2021

3 min read
How to protect yourself against cyberstalking

How to protect yourself against cyberstalking

July 06, 2021

2 min read
The Top Five Security Risks Smartphone Users Face Today

The Top Five Security Risks Smartphone Users Face Today

July 02, 2021

4 min read
Phishing Alert: Scammers Use Fake SharePoint and DocuSign Messages to Steal Users’ Login Credentials

Phishing Alert: Scammers Use Fake SharePoint and DocuSign Messages to Steal Users’ Login Credentials

July 02, 2021

3 min read
Your Doxxing Dossier Will Keep Growing Thicker Until You See the Danger

Your Doxxing Dossier Will Keep Growing Thicker Until You See the Danger

June 30, 2021

2 min read
Mobile security threats: reality or myth?

Mobile security threats: reality or myth?

June 13, 2021

3 min read

FOLLOW US ON

SOCIAL MEDIA


You might also like

Fraud Family cybercrime ring under the spotlight as arrests made in the Netherlands Fraud Family cybercrime ring under the spotlight as arrests made in the Netherlands
Graham CLULEY

July 23, 2021

3 min read
Homoglyph domains used in BEC scams shut down by Microsoft Homoglyph domains used in BEC scams shut down by Microsoft
Graham CLULEY

July 22, 2021

3 min read
China Sets Up New Worrying Vulnerability Disclosure Rules China Sets Up New Worrying Vulnerability Disclosure Rules
Silviu STAHIE

July 20, 2021

1 min read