A collection of simple Python scripts to export IPs, Domains and URLs from a MISP Instance, in either TXT, STIX1 or STIX2 format
- Clone repo
git clone https://github.com/Stanley9990/MISP-Export.git - Install dependencies
pip3 install -r requirements.txtorpip install -r requirements.txt - Populate
config.ini - Run script
python3 <Script>.py
By default, the program will search for IOCs from the past 1d this is harcoded into each script, but I intend to pass it through as a config param.
- By default, the files are output to
/exportExport_TXT.pywill exportdomains.txt,urls.txtandips.txtExport_STIX1.pywill exportSTIX1.stixExport_STIX2.pywill exportSTIX2.stix
For now the way to add attribute types is to edit the corresponding X_common_names list within the scripts
- Warning errors will be shown when connection to MISP is established. This is because
verifycertis set toFalseinconfig.ini - The printed lines in the source of the test script are difficult to read because I have used inline colour codes. Am I going to change this? Probably not.