Giter VIP home page Giter VIP logo

days-project2's Introduction

Team Name: DAYS

Team Members: Shubhi Jain, Sharmin Pathan, Yash Shrivastava, Dharamendra Kumar

Malware Classification

Classification Strategy: Random Forest classifier

Technologies Used:

  • Python 2.7
  • Apache Spark 2.0
  • Resilient Distributed Datasets (RDDs)
  • Dataframes
  • Django API
  • PyParsing API

Preprocessing of Byte File:

  • The hash files on S3 storage were read from "https://s3.amazonaws.com/eds-uga-csci8360/data/project2/metadata/"
  • The next step was to read the label file
  • Create a pair resulting from hash file and label file
  • Read the contents of all files specified in the training set
  • Cleaning of the .bytes files with the following parser (i) removal of pointers (ii) removal of special characters (??)
  • Added content to corresponding hash file and label file
  • Cleaned data is saved into a parquet file.
  • The parquet file is accessed everytime the data is to be read.

Preprocessing of Opcodes from .asm files:

  • Two librabries, namely Django and pyparsing have been used for the preporcessing.
  • Django: Django is a python library to facilitate rapid development and pragmatic design. It has been used for the removal of special symbols from the opcodes.
  • pyparsing: It's a python library for constructing and executing simple grammar. This has been used for opcode extraction.

Flow:

  • N-grams are generated from the preprocessed byte file and opcodes.
  • Convert the N-grams of the byte file and opcodes to vectors of token counts.
  • These vectors are brought together by the Vector Assembler.
  • The data is then fed to Random Forest Classifier.
  • The prediction is computed.

Tuning the accuracy:

  • 1,2,3,4 grams of byte file and opcodes were generated in order to test which provides a better accuracy.
  • Tuning of the parameters of Random Forest classifier, namely maxDepth, no. of trees, maxBin.

Challenges Faced:

  • Memory issues in cluster (Out-of-memory issue)
  • Reading parquet file in cluster
  • Tuning of Random Forest Classifier in order to increase accuracy

days-project2's People

Contributors

sharminpathan avatar shubhi2108 avatar

Watchers

 avatar  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.