[UPDATE #1 - July 8, 2015] We would like to clarify that at the time of our analysis, the app was not present on the Google Store. We found references to this fake app being hosted on the Google Play store during our research where it showed that the App has been removed from the Google Play store already as seen below:
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-_q8DdyyLcGQ/VZ4oBFVUbrI/AAAAAAAAAto/_DmnEhMEpI8/s400/FakeBatteryPro_GoogleStoreReference.png) |
Link to Google Play Store for the fake app |
.....
[UPDATE #2 - July 9, 2015] Google Android security team confirmed that the fake application was uploaded to the Google Play Developer Console by the miscreants.
Google Play Developer Console enables developers to easily publish and distribute their applications directly to users of Android-compatible phones
However, as per Google's Android team the fake app
did not make it to the official Google Play Store as Google's security system flagged the fake app during scanning.
.....
Malware authors tend to follow one of the following two methods for malware development:
- Create a malware app from scratch.
- Compromise a legit app by embedding malicious modules into it.
With Android being open source and an Android app being easily reversible, most of the malware developers tend to stick with the second option.
Spoofed Functionality and Ads:
We came across a malicious app recently that followed this path. This time the spoofed app was a copy of a legit app named
BatteryBot Pro. The spoofed app had the package name of '
com.polaris.BatteryIndicatorPro' and was removed from the Play Store as soon as Google became aware of it's malicious intent.
We also saw a spoofed version of BatteryBot Pro available for free during our research. The actual price of BatteryBotPro on official Play Store is Rs.179.99. The legit BatteryBotPro app demanded for minimal permissions as shown below:
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-YP1uAQsEY7o/VY-RSQrG4EI/AAAAAAAAACk/1qwO11-WREY/s400/BB-Actual-Permission.png) |
Legit app permissions |
In contrast, the fake app was requesting many more permissions, raising a red flag as can be seen in the screenshot below:
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-iKg_5ATd-Bw/VY-cogW8woI/AAAAAAAAADI/ajN2TJxaREU/s640/BB-fake-app-perm.png) |
Permission requested by Malware |
The screenshot below shows a comparison between the actual app and the fake app. The legit app functionality was modified and embedded at a different location within the fake app:
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-kuA2WvWpTcE/VZom3xI7aAI/AAAAAAAAAIc/22j6G3JIME8/s640/BB-fake-VS-actual.png) |
legit app vs fake app |
Upon installation of the malicious app, it demanded administrative access, which clearly portrays the motive of malware developer to obtain full control access of the victim's device.
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-cVkCV23Lbro/VZEi1z1sIJI/AAAAAAAAADw/kBTQlDEPU6c/s320/Screenshot_2015-06-28-13-42-39.png) |
Request for Administrator access |
Once the permission is granted, the fake app will provide the same functionality to the victim found in the original version of BatteryBot Pro but performs malicious activity in the background.
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-Uar4Iqr_Cvs/VZElCw8bMlI/AAAAAAAAAD0/fNC2xMWamDU/s640/BB-splash-activity.png) |
opening BatteryPro screen |
ClickFraud and AdFraud activity
Though the app seems to be working normally, at the back-end it tried to load various ad libraries, ultimately delivering a click fraud campaign.
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-mTKkW98rwTc/VZUXPEQPDOI/AAAAAAAAAE8/8iKzYmlO1rg/s640/BB-requests-at-start-1.png) |
Requests sent in back-end |
Some of these URLs were hard coded in the app and some were sent by the remote server.
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-bBkGUTLrxs0/VZUvHKvBOLI/AAAAAAAAAFU/QaXQ7kEBWtQ/s640/BB-hardcoded-URL.png) |
Hard-coded URLs in database |
The malware tries to collect the following information from the victim device:
-Memory available in device
-IMEI
-Phone Operator
-Location
-Langauge
-Phone Model
-Sim Card availability
The following screenshot shows the data being collected.
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-A7wPAbXk7b8/VZU1adYugSI/AAAAAAAAAFk/OjyKEi6rJLo/s640/BB-ecget-requests.png) |
Parameters sent to server |
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-TxVcaJJJNAA/VZVGJ7Cu8II/AAAAAAAAAGM/houzFtNhDQs/s640/BB-kp01.com.png) |
Parameters sent to server |
On the basis of various parameters and conditions in the server request, the malware starts receiving a list of ads to be displayed, along with the URLs from where to fetch the ad.s
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-fD2zVK7EK50/VZVNcfXhcnI/AAAAAAAAAGc/X8b-LYCL98E/s640/BB-ads-in-responses.png) |
Response from server containing ad URL |
The malicious app then downloads and installs additional malicious APKs without the user's consent:
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-yV4BpUUyE7M/VZZhKnHNf_I/AAAAAAAAAIA/e62ijhMswJw/s320/Screenshot_2015-06-28-14-05-26.png) |
Downloaded Apps by malware |
Apart from the implicit downloads, the malware also displays pop-up ads to the user:
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-bN7a3rFWlPc/VZYT4hiOleI/AAAAAAAAAG8/UWk6J8V4Uvw/s400/BB-ad.png) |
Pop up Ads |
This malware was not only built with the purpose of displaying ads, it was also designed with more evil intentions.
Sending SMS messages:
The main Activity Screen is identical to original app but when the user clicks on "View Battery Use", the malware sends a few requests to its Command & Control server to retrieve short codes. These short codes were premium rate SMS numbers where a message was sent. This will result in financial loss to the affected user.
Requests sent to server can be seen below:
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-jDOvz2U6zOk/VZYgu3hzWwI/AAAAAAAAAHM/LZTQXl0R2Tk/s640/BB-sms-request-1.png) |
Device info sent in request |
Though the content was encoded, we did not have to work hard to determine what was sent as the malware developer forgot to remove the logs. The server responds with short codes that are used for sending messages. The following screenshot shows a premium SMS response received from the server.
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-iTrjVuJlJvo/VZYjz-kdr8I/AAAAAAAAAHY/gpif-3-fG88/s640/BB-bsharkapi-SMS-logs.png) |
Logs showing server response |
Uninstall FAILED:
Apart from displaying ads and sending SMS message, the malware is also very persistent. Being run with administrator privileges, the user cannot delete the app after installation.
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/-TOOWnES4SK4/VZorfT7qWaI/AAAAAAAAAIo/XrSRXZH5_Yg/s400/BB-uninstall-fail-new.png) |
Uninstall not possible |
"Persistence" Effect:
While in some of the scenarios we were able to manually delete the app, the malware authors have taken care of ensure persistence. The malware silently installs an app with a package name of
com.nb.superuser, which runs as a different thread and resides on the device even if the app is forcefully deleted.
This acts as a service and sends requests to hard-coded URLs found in the app.
The screenshot below shows the hard coded URLs.
![Image](/cdn-cgi/image/format=auto/sites/default/files/images/blogs/--01Krjeb5jI/VZosoXbmWSI/AAAAAAAAAIw/fWCCAXPtklE/s400/BB-push-ads.png) |
Hard-coded URLs |
The service started by this app continually sends requests to aforementioned URLs, some of which will deliver new APKs.
Conclusion:
The Malware we saw in this blog was designed with multiple evil intentions including ClickFraud, AdFraud, Premium rate SMS fraud and the download & installation of additional malicious APKs.
A few traces of command execution were also seen in the app but were not fully implemented. Perhaps the developer is working on an upgraded version of the malware with proper "command-execution" functionality.
The ThreatLabZ team will continue monitoring new mobile malware threats and ensure protection for Zscaler customers.