chahan / threatexpert-to-maec

Generate MAEC XML from ThreatExpert XML output

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

****************************************************

      ThreatExpert XML -> MAEC XML Converter Script

 Copyright (c) 2014 - The MITRE Corporation

****************************************************

BY USING THE THREATEXPERT TO MAEC SCRIPT, YOU SIGNIFY YOUR ACCEPTANCE OF THE TERMS AND 
CONDITIONS OF USE.  IF YOU DO NOT AGREE TO THESE TERMS, DO NOT USE THE SCRIPT.

For more information, please refer to the terms.txt file.

#################################################################
#Generates MAEC Package Output from a ThreatExpert XML file     #
#Compatible with MAEC Schema v4.1 & CybOX 2.1                   #
#                                                               #
#v0.95 - BETA                                                   #
#Updated 02/13/2014                                             #
#                                                               #
#################################################################
# MAEC - http://maec.mitre.org                                  #
# ThreatExpert - http://www.threatexpert.com                    #
#################################################################
--------------------------------------------------------------------------------
--Included Files----------------------------------------------------------------

README: this file.
threatexpert_to_maec.py: the ThreatExpert XML to MAEC XML Python converter script.
threatexpert.py: the ThreatExpert Python bindings, which the script imports.
threatexpert_parser.py: the ThreatExpert to MAEC parser class, which does most
of the work.
terms.txt: the terms of use for this script.
--------------------------------------------------------------------------------
--Dependencies------------------------------------------------------------------

There are three dependencies for this script:
1) The Python lxml library  >= 3.2.x, http://lxml.de/
2) The python-maec library  >= v4.1.0.0: https://pypi.python.org/pypi/maec
3) The python-cybox library >= v2.1.0.0: https://pypi.python.org/pypi/cybox
--------------------------------------------------------------------------------
--Usage Notes-------------------------------------------------------------------

There are three main command line parameters for this script:

-i: the path to the input ThreatExpert XML file

-o: the path to the output MAEC XML file

There is an additional, optional parameter that may be specified before the main parameters:

-v: print verbose error output (tracebacks)

To use the script, run the following command:

python threatexpert_to_maec.py -i <threatexpert_xml_file> -o <maec_xml_file>

--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

About

Generate MAEC XML from ThreatExpert XML output


Languages

Language:Python 100.0%