mohanex / stix-tools

Utility tool to auto-magically process IoCs from a raw format to STIX

Repository from Github https://github.commohanex/stix-toolsRepository from Github https://github.commohanex/stix-tools

Overview

Utility tool to auto-magically process IoC from a raw format to STIX.
The input file is a file containing a newline-separated list of indicators.

The following indicator types are currently supported:

  • IP Address
  • Domain
  • URL
  • SHA256
  • MD5
  • SHA1

Requirements

The code has been tested with Python >= v3.4.

The required dependencies can be easily installed using pip tool:
pip install -r requirements.txt

Usage

The basic usage of the tool just requires an input file containing the raw indicators and the path where the STIX file will be created.

Create a STIX 1 file starting from the example file contained in this repository:
python3 stix_create.py -i example/indicators.txt -o /tmp/example.xml

Create a STIX 2 file starting from the example file contained in this repository:
python3 stix_create_v2.py -i example/indicators.txt -t threat -d description -o /tmp/example.json

More parameters can be set using the command-line, use the -h for more information.

About

Utility tool to auto-magically process IoCs from a raw format to STIX

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 100.0%