Git Product home page Git Product logo

maec-to-oval's Introduction

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

      MAEC XML -> OVAL XML Converter Script

 Copyright (c) 2012 - 2014 The MITRE Corporation

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

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

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

#################################################################
#MAEC XML --> OVAL XML Generation Script                        #
#Generates OVAL 5.7 definitions/tests/objects from MAEC XML     #
#                                                               #
#Compatible with content produced using MAEC v4.1/CybOX 2.1     # 
#v0.94 BETA - extracts files and registry keys                  #
#2/24/2014                                                      #
#                                                               #
#################################################################
# MAEC - http://maec.mitre.org #                                #
# CybOX - http://cybox.mitre.org  #                             #
# OVAL - http://oval.mitre.org  #                               #
#################################################################

--------------------------------------------------------------------------------
--Installation Notes------------------------------------------------------------

This software depends on the python-cybox and python-maec libraries:

python-cybox >= 2.1.x.x and <= 2.2.x.x: https://pypi.python.org/pypi/cybox
python-maec >= 4.1.x.x and <= 4.2.x.x:  https://pypi.python.org/pypi/maec

This script was created using Python 2.7.x, and so may not be compatible with 3.0.x.

--------------------------------------------------------------------------------
--Methodology-------------------------------------------------------------------
This script is still a POC, and supports the extraction of registry keys and files
from the Actions in a MAEC Package or Bundle XML document that are defined as 
creating or modifying said object. E.g. the Object from the following Action 
would be converted:

<maec:Action action_status="Success" id="maec-anubis_to_maec-act-1">
    <cybox:Name>create file</cybox:Name>
    <cybox:Associated_Objects>
        <cybox:Associated_Object type="File" id="maec-anubis_to_maec-obj-2">
            <cybox:Defined_Object xsi:type="FileObj:FileObjectType">
                <FileObj:File_Name datatype="String">ntos.exe</FileObj:File_Name>
                <FileObj:File_Path datatype="String">C:\WINDOWS\system32\</FileObj:File_Path>
            </cybox:Defined_Object>
        </cybox:Associated_Object>
    </cybox:Associated_Objects>
</maec:Action>

This is all done in the Windows context and thus uses the corresponding OVAL 
constructs.

--------------------------------------------------------------------------------
--Included Files----------------------------------------------------------------
README: this file.
maec_to_oval.py: the MAEC XML to OVAL XML Python driver.
cybox_to_oval_processor.py: the main MAEC XML to OVAL XML converter class.
maec_oval_mappings.py: the CybOX to OVAL mappings class.
oval57.py: the OVAL 5.7 Python bindings used by the script.
LICENSE.txt: the terms of usage for this script.

--------------------------------------------------------------------------------
--Usage Notes-------------------------------------------------------------------

There are two main command line parameters for this script:

-i: the path to the input MAEC XML file

-o: the path to the output OVAL XML file

To use the script, run the following command:

python maec_to_oval.py -i <maec_xml_file> -o <oval_xml_file>

The following optional parameters are supported:

-s: Print converted and skipped MAEC Actions

-v: Verbose error printing (traceback)

For example:

python maec_to_oval.py -v -i <maec_xml_file> -o <oval_xml_file>

For the latest version of the script, please check the MAEC GitHub Repository
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------

maec-to-oval's People

Contributors

gtback avatar ikiril01 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.