Mantis OpenIOC Importer

A module implementing import of OpenIOC indicator XML files for the Mantis Cyber Threat Intelligence Mgmt. Framework.


The full documentation is at


Please refer to the quickstart information of MANTIS, available at

Once you are set up with MANTIS, you can use the Django to import OpenIOC indicators into your system as follows:

$ python mantis_openioc_import <xml-file>  <xml-file> ... [--settings=<path_to_your_django_settings_module]

Here is the output of --help for mantis_openioc_import:

Usage: mantis_openioc_import [options] xml-file xml-file ... (you can use wildcards)

Imports OpenIOC XML indicator files of specified paths into DINGO

  -v VERBOSITY, --verbosity=VERBOSITY
                        Verbosity level; 0=minimal output, 1=normal output, 2=verbose output, 3=very verbose output
  --settings=SETTINGS   The Python path to a settings module, e.g. "myproject.settings.main".
                        If this isn't provided, the DJANGO_SETTINGS_MODULE environment variable will be used.
                        A directory to add to the Python path, e.g. "/home/djangoprojects/myproject".
  --traceback           Print traceback on exception
  -m MARKING_JSON, --marking_json=MARKING_JSON
                        File with json representation of information of marking to be associated with imports.
                        Key-value pairs used to fill in placeholders in marking as described in marking file.
  -n IDENTIFIER_NS_URI, --id_namespace_uri=IDENTIFIER_NS_URI
                        URI of namespace used to qualify the identifiers of the created information objects.

  --version             show program's version number and exit
  -h, --help            show this help message and exit


The basic layout for this Django app with out-of-the-box configuration of for easy build, submission to PyPi, etc., and Sphinx documentation tree was generated with Audrey Roy’s excellent Cookiecutter and Daniel Greenfield’s cookiecutter-djangopackage template.