Giter Site home page Giter Site logo

vt-to-maec's Introduction

vt-to-maec

VirusTotal fetcher and VirusTotal report --> MAEC XML Converter Utility v0.11 BETA - Updated 09/08/2014

Copyright (c) 2015 The MITRE Corporation BY USING THE VIRUSTOTAL TO MAEC SCRIPT AND MODULE, YOU SIGNIFY YOUR ACCEPTANCE OF THE TERMS AND CONDITIONS OF USE. IF YOU DO NOT AGREE TO THESE TERMS, DO NOT USE THE SCRIPT. See terms.txt for terms of use.

IMPORTANT: Before use, you must edit this script to contain your VirusTotal API key (in the API_KEY variable in vt_to_maec).

MAEC - http://maec.mitre.org VirusTotal - https://www.virustotal.com

Given a list of MD5 hashes and/or file paths, this script fetches the VirusTotal reports for each file and outputs MAEC data about each file. Compatible with MAEC Schema v4.1 & CybOX 2.1

Requirements

  • python-maec >= v4.1.0.9
  • python-cybox >= v2.1.0.8
  • Before you can run the vt_to_maec.py script for the first time, you must get a VirusTotal API key from https://www.virustotal.com and use it as the API_KEY variable at the top of the script.

Usage

python vt_to_maec.py <input binary file path or MD5> [--md5] [--verbose]

  • --md5, --hash: specifies that the input is an MD5 hash rather

than a binary file path. - --deduplicate, -dd: deduplicate objects in MAEC output - --dereference, -dr: dereference the MAEC output - --normalize, -n: normalize the MAEC output

Standalone Module

The virus_total_to_maec package exposes several helper functions:

  • generate_package_from_binary_filepath - given an filepath, return a python-maec Pacakge object
  • generate_package_from_md5 - given an MD5 string, return a python-maec Pacakge object
  • generate_package_from_report_string - given a VirusTotal JSON report, return a python-maec Pacakge object
  • set_proxies - optionally called to supply proxy information to the package; supplied as a dictionary like { "http": "http://example.com:80", ... }
  • set_api_key - called to supply an API key string to the module

vt-to-maec's People

Contributors

apsillers avatar ikiril01 avatar

Watchers

 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.