Coder Social home page Coder Social logo

qingchen1984 / anti-malwareid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rakeshcorp/anti-malwareid

0.0 2.0 0.0 124 KB

Detect Malware with Sandbox/VM evasion and Anti-debugging skills with some heur

License: Creative Commons Zero v1.0 Universal

Python 100.00%

anti-malwareid's Introduction

---------------------
Anti-MalwareID
---------------------
This program will detect unknown malware sample with heuristics based on API imports acting as a virtual sandbox and
defining the probable behaviour of a malware exe. There are limitations as this will work only on unpacked and normal
malware files as API imports will be not be retrieved statically from import table for executables which are
packed, unless they are unpacked.

The heuristics are:

  1. Import APIs for prevalent malware
  2. Import APIs for Anti-Sandbox/Anti-VM tricks
  3. Import APIs for Anti-Debugging tricks

Signatures:
Sample signature file is included, this will provide json based db where youcan define signatures with
attributes like syscall number, behaviour description, threat type and a probable score.

Score: Score is weight attached to a particular API, and there will be max, min and avg score calculated for all API matches.

Limitation:
The APIs included in signatures will form the deciding factor as some APIs might exist in whitelisted files too and not
based solely on API, but on the combination or order of APIs which are generally involed in malware will help in
efficient detection.

Setup:
Dependencies:
Python module: pefile
Python module: hashlib

Usage: python malwareid.py pe_file

Output:
python malwareid.py ThreatExpert.exe
[+] Loaded 3 signatures from signatures.json
[+] Filename: ThreatExpert.exe (MD5: 8ede75ae8410623bb3cdcf8d699b490c, SHA256: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855)
[+] ThreatExpert.exe has 29 imports. Checking against 3 signatures.
[[+]] Found NtDelayExecution: "Delay execution of program using Sleep" (Score: 4)
[[+]] Found IsDebuggerPresent: "Anti-Debugging technique- Check presence of debugger" (Score: 4)

[+] Found 2 matches (MIN: 4, MAX: 4, AVG: 4.00)

anti-malwareid's People

Contributors

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