Follow instruction page and compile yara with androguard module. You need to download yara-3.7.0, module doesnt work on 3.8 https://github.com/Koodous/androguard-yara
Androguard module works with reports. Normally koodous provides analysis report that you can download, But if your sample didn't analyzed on koodous you need to create report. Using androguard's python library I generate a report file. Not all components included but included components are important ones. Like permission, apk_name etc.. If you can add more components to report that missing, feel free to pr.
Needed components:
- url ,
There is 2 python script;
- create_report.py
- scan.py
create_report.py
will create apk reports that will be used with yara. You can give folder name that all your apks are staying or file name.
create_report.py apk
Script will create reports folder and put reports there.
scan.py takes 3 parameter: report folder, apk folder and yara rule. In yara rules you can use androguard module. You can also use other yara modules if you want to.
scan.py reports apk dropper.yar
Since androguard module didn't work on my yara python version I used os.system, if you can run it with yarapython library feel free to pr.