Skip to content

kudelskisecurity/check_all_apks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check All APK's - scripts for checking your phone for malware

Check All APK's is a set of two scripts that leverage Drozer and the VirusTotal API to check whether a phone is running applications known to be malware. This is practical during security breaches, when an analyst has to identify malicious applications among hundreds of legitimate ones.

This code is part of an article published by Kudelski Security in August, 2017. The full article can be found here: https://research.kudelskisecurity.com/2017/08/08/checking-your-android-device-for-known-malware/

Requirements

Check All APK's scripts are coded in Python 2.7. It uses two packages:

In addition to the python packages, the check_all_apks.py script makes calls to the Android Debug Bridge, which can be installed as part of Android Studio or via the APT repository.

Finally, check_virustotal.py leverages the virustotal API - you will need to register for a free account to leverage this service.

Usage

Download this repository and set up its dependencies. Set your phone to Development mode and enable USB debugging. Connect your phone to your computer and test that you are able to interface with it, using adb shell for example. Next, install the drozer agent on the phone.

To dump a list of packages and MD5 hashes into a file called package_hashes.txt, run the check_all_apks.py script. Alternatively, you can use the "thorough" mode to download the APK's and create SHA256 hashes of the packages. Once you have this file, you can run the check_virustotal.py script to iteratively check all packages for hits. For more details on the installation, please consult the blog post on the Kudelski Security research blog.

Author

The Check All APK's scripts were written by Rick El-Darwish.

Intellectual property

Copyright 2017 Nagravision SA, all rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Check All APK's -- scripts for checking your phone for malware

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages