Giter VIP home page Giter VIP logo

clamp's Introduction

Clamp

Introduction

Clamp is a utility program for detecting malicious Windows executable files (.exe or .dll). It makes use of VirusTotal's API as well as a local machine learning model for analyzing the files and producing the final result.

Working

There are three important python scripts as part of Clamp.

The analyzer.py acts as the master controller. It is run by the user and contains code capable of invoking various functions residing in the other three scripts. It calls scanner.py for generating the hash sum of the input file. This hash is then fed to the VirusTotal API using the same file.

If a match is found, scanner.py is called to produce the diagnosis and display it.

If no match is found for the hash, pe.py is called for extracting PE headers from the input file and feed them to the ML model. Then, the final result is displayed.


Installation

  • Clone this repository using
  • git clone https://github.com/InvincibleJuggernaut/Clamp.git
    
  • Enter the downloaded directory using
  • cd Clamp
    
  • Run the script using
  • python3 analyzer.py
    

Note: This repository doesn't contain the trained machine learning model due to size constraints. Therefore, this program would only work if the file input by the user is recognized by VirusTotal. Incase the file is relatively new and has never been scanned with VirusTotal before, the program wouldn't move forward since it requires the ML model for the diagnosis.

Demo

Remarks

Modern anti-virus and anti-malware solutions use a combination of mutliple methodologies in order to provide accurate diagnosis. Clamp is quite simply a basic implementation for detecting malware. It can't be used to replace the commercial grade anti-virus engines since it makes use of techniques that are rudimentary as well as not enough to account for all possible threats.

The present-day threats are ever-evolving and there is simply no perfect solution. It's a cat and mouse game with anti-virus vendors having to play catch-up with the malicious actors.

License

MIT License

clamp's People

Contributors

dependabot[bot] avatar invinciblejuggernaut avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

vaginessa

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.