Code Monkey home page Code Monkey logo

antimalware's Introduction

Android Antimalware

About

This is a set of shell scripts and a sample feature vector collection application to help automate the training and testing of dynamic machine learning malware classifiers. Arch Linux is the main testing platform.

Usage

  1. Populate TestSuite/Training and/or TestSuite/Testing with APK files with the naming format <M/B><Number>-<Name>.apk. Where
  • <M/B> represents the classification of the application (malicious or benign)
  • <Number> represents an optional, arbitrary number to help with identification and sorting of different types of applications, and
  • <Name> is the name or identifier of the application.
  • An example would be B001-FooApp.apk.
  1. Set the devices and number of emulators in TestSuite/collect-data.sh.
  2. Run collect-data.sh <Testing/Training> to start profiling applications and collecting feature vectors.
  3. Feature vectors will be saved to arff/ and the machine learning classifiers will be accordingly trained and tested with arff/weka.sh

Feature Vector Collection Application

The feature vector collection application called Antimalware and is an Eclipse project. See below for a short section on increasing Eclipse's memory if you are trying to load it in Eclipse. The collected data is stored on an sdcard on the device.

Directory Structure

.
├── Antimalware - The data collection application
│   ├── libs - The modified Weka library
│   └── src
├── arff - Collected feature vectors and classifiers
├── Results
└── TestSuite
    ├── AVDs
    ├── Device-Images
    ├── logs
    ├── Testing - Applications
    └── Training - Applications

Increasing Eclipse's Default Memory

Importing the Antimalware Android project into Eclipse is simple. However, Eclipse's memory needs to be increased to load the Weka library used. First, find eclipse.ini in your system.

$ sudo find / -name 'eclipse.ini'
/usr/share/eclipse/eclipse.ini 

Then edit it and increase the memory settings:

$ vim /usr/share/eclipse/eclipse.ini

[...]
--launcher.XXMaxPermSize
2048m
[...]
--launcher.defaultAction
[...]
-Xms1024m
-Xmx2028m
[...]

antimalware's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.