Code Monkey home page Code Monkey logo

static_analyzer's Introduction

Static Analyzer

Static file analyzer built around the research of Yibin Liao http://cobweb.cs.uga.edu/~liao/PE_Final_Report.pdf
Additional information from the following: http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.302.4567&rep=rep1&type=pdf
Static analyzer analyzes a pe file looking for indicators from the above noted research. Using the indicators a machine learning classifier with scikit is created in order to better identify malicious pe's.
main.py contains examples of analyzing the file, updating the ml classifier, and prediciting whether or not a file is malicious based on the classifier generated.

Usage

pi@raspberrypi:~/malware_ma $ python3 main.py test_mal.bin
Analyzing File: test_mal.bin
[11776, 8, 0, 0, 0]
Do you want to check for malware update the ml classifier?
1. Test for malware
2. Update classifier
: 1
probably malware
Do you want to add the analysis to the classifier?
Y or N: n
Not adding to classifier data

Starting to see decent results when testing files. Classifier built with 90 malicious samples and 78 clean samples.

Testing

pi@raspberrypi:~/malware_ma $ python3 classifier_prediction_testing.py
Test score: 90.00 %
prediction:
[1 1 1 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 1 0]
actual:
[1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]

static_analyzer's People

Contributors

superducktoes avatar

Watchers

James Cloos 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.