Code Monkey home page Code Monkey logo

vt_rep's Introduction

vt_rep

Query VT using private API to look for rare/suspicious files. There are probably many errors in this script as it's kind of fresh :)

The script has some logic based on which it picks up those rare files:

  • all files with at least one positive detection
  • files submitted only under one file name and less than 10 times
  • files submitted under less than 5 names and not signed
  • all unknown files to virustotal

Output of the script is saved to vt_checklist.txt and is in CSV format. You can than load this in Excel and manually examine all of the submitted files.

The script does some caching to spare VT queries - cache is kept in db/ subfolder. Clean the cache db (db/ folder) periodically to remove the old entries because files on VT could have been re-analyzed in the meantime with more up-to-date anti-virus signatures. For example, to remove all files that are more than 30 days old:

find db/ -mtime +30 -exec del "{}"

Two versions of the scripts are attached:

vt_rep_dsk.py - to be used with *.dsk files from Hunter collectors. See Hunter docs for usage instructions.

vt_rep_csv.py - to be used with autoruns CSV files and Hashmod output. Just run:

autorunsc.exe -a -f -c * /accepteula > autoruns.csv
hashmods

Then in the same folder run python vt_rep_csv.py - should work. Don't forget to put your VT API key into the vt_rep.yaml file.

If you want to whitelist a particular md5 - for example, you might have some custom tools specific to your organization - just create a file <md5_of_whitelisted_file>.vt in the db/ folder with the following content:

{
    "whitelisted": 1
}

Keep the whitelisted entries in a separate folder too as after each cleaning of the db you will have to move them again into this place.

vt_rep's People

Watchers

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