前端框架选型是企业提升开发效率与用户体验的关键因素
914
2022-10-26
Androwarn 另一个静态代码分析器的恶意Android应用程序
Androwarn
Yet another static code analyzer for malicious Android applications
Description
Androwarn is a tool whose main aim is to detect and warn the user about potential malicious behaviours developped by an Android application.
The detection is performed with the static analysis of the application's Dalvik bytecode, represented as Smali, with the androguard library.
This analysis leads to the generation of a report, according to a technical detail level chosen from the user.
Features
Structural and data flow analysis of the bytecode targeting different malicious behaviours categoriesTelephony identifiers exfiltration: IMEI, IMSI, MCC, MNC, LAC, CID, operator's name...Device settings exfiltration: software version, usage statistics, system settings, logs...Geolocation information leakage: GPS/WiFi geolocation...Connection interfaces information exfiltration: WiFi credentials, Bluetooth MAC adress...Telephony services abuse: premium SMS sending, phone call composition...Audio/video flow interception: call recording, video capture...Remote connection establishment: socket open call, Bluetooth pairing, APN settings edit...PIM data leakage: contacts, calendar, SMS, mails, clipboard...External memory operations: file access on SD card...PIM data modification: add/delete contacts, calendar events...Arbitrary code execution: native code using JNI, UNIX command, privilege escalation...Denial of Service: event notification deactivation, file deletion, process killing, virtual keyboard disable, terminal shutdown/reboot... Report generation according to several detail levelsEssential (-v 1) for newbiesAdvanced (-v 2)Expert (-v 3) Report generation according to several formatsPlaintext txtFormatted html from a Bootstrap templatejsON
Usage
Options
usage: androwarn [-h] -i INPUT [-o OUTPUT] [-v {1,2,3}] [-r {txt,html,json}] [-d] [-L {debug,info,warn,error,critical,DEBUG,INFO,WARN,ERROR,CRITICAL}] [-w]version: 1.4optional arguments: -h, --help show this help message and exit -i INPUT, --input INPUT APK file to analyze -o OUTPUT, --output OUTPUT Output report file (default "./
Common usage
$ python androwarn.py -i my_application_to_be_analyzed.apk -r html -v 3
By default, the report is generated in the current folder. An HTML report is now contained in a standalone file, CSS/JS resources are inlined.
Sample application
A sample application has been built, concentrating several malicious behaviours.
The APK is available in the _SampleApplication/bin/ folder and the HTML report is available in the _SampleReports folder.
Dependencies and installation
Python 3 or Python 2.7 + androguard + jinja2 + play_scraper + argparseThe easiest way to setup everything: pip install androwarn and then directly use $ androwarnOr git clone that repository and pip install -r requirements.txt
Changelog
version 1.6 - 2019/05/30: Python 3 support and few fixesversion 1.5 - 2019/01/05: few fixesversion 1.4 - 2019/01/04: code cleanup and use of the latest androguard versionversion 1.3 - 2018/12/30: few fixesversion 1.2 - 2018/12/30: few fixesversion 1.1 - 2018/12/29: fixing few bugs, removing Chilkat dependencies and pip packagingversion 1.0 - from 2012 to 2013
Contributing
You're welcome, any help is appreciated :)
Contact
Thomas Debize < tdebize at mail d0t com >Join #androwarn on Freenode
Copyright and license
Androwarn is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Androwarn is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with Androwarn. If not, see http://gnu.org/licenses/.
Greetings
Stéphane Coulondre, for supervising my Final Year projectAnthony Desnos, for his amazing Androguard project and his help through my Final Year project
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~