{"id":27976445,"url":"https://github.com/misp/misp-stix-converter","last_synced_at":"2025-09-09T11:24:08.578Z","repository":{"id":10923768,"uuid":"67509081","full_name":"MISP/MISP-STIX-Converter","owner":"MISP","description":"A utility repo to assist with converting between MISP and STIX formats","archived":false,"fork":false,"pushed_at":"2020-12-22T22:19:25.000Z","size":2162,"stargazers_count":69,"open_issues_count":15,"forks_count":30,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-08-27T14:01:20.021Z","etag":null,"topics":["conversion","misp","stix","threat-sharing"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MISP.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-06T13:07:31.000Z","updated_at":"2025-08-01T12:20:22.000Z","dependencies_parsed_at":"2022-09-05T03:00:59.281Z","dependency_job_id":null,"html_url":"https://github.com/MISP/MISP-STIX-Converter","commit_stats":null,"previous_names":["floatingghost/misp-stix-converter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MISP/MISP-STIX-Converter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MISP%2FMISP-STIX-Converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MISP%2FMISP-STIX-Converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MISP%2FMISP-STIX-Converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MISP%2FMISP-STIX-Converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MISP","download_url":"https://codeload.github.com/MISP/MISP-STIX-Converter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MISP%2FMISP-STIX-Converter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274290617,"owners_count":25258152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conversion","misp","stix","threat-sharing"],"created_at":"2025-05-08T01:26:49.427Z","updated_at":"2025-09-09T11:24:08.543Z","avatar_url":"https://github.com/MISP.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MISP to STIX and back again\n## Or at least that's the idea\n\n[![Coverage Status](https://coveralls.io/repos/github/MISP/MISP-STIX-Converter/badge.svg?branch=master)](https://coveralls.io/github/MISP/MISP-STIX-Converter?branch=master)\n[![Build Status](https://travis-ci.org/MISP/MISP-STIX-Converter.svg?branch=master)](https://travis-ci.org/MISP/MISP-STIX-Converter)\n[![Code Health](https://landscape.io/github/MISP/MISP-STIX-Converter/master/landscape.svg?style=flat)](https://landscape.io/github/MISP/MISP-STIX-Converter/master)\n\nThis is the open-sourced version of BAE Systems' internal\nsync script. It's a bit limited, and it isn't perfect, nor is it bug-free.\n\nBut it works™\n\n## Installation\n\nIf you don't wanna use git, \n```bash\nsudo pip3 install misp_stix_converter\n```\nshould have you covered. This relies on me actually updating PyPI every time I update the project, so I'd use the \ngit repo wherever possible.\n\n```\nsudo python3 setup.py install\n```\n\nThis should install everything it needs!\n\nUseful, huh?\n\n### The config file\n\nCopy over the example config to a live version\n\nThe default location of this config file is at `~/.misptostix`, but this can be\noverridden with the `-c FILE` flag when running the scripts.\n\n`cp /path/to/config/misp.login.example /path/to/config/misp.login`\n\nThen open it and change the variables. This is YAML format, so make sure\nyou don't do a silly and format it wrong!\n\n## Usage\n\n### For MISP to STIX: \n\nTo get all usage information:\n\n`misp-to-stix.py -h`\n\nSo to convert a MISP JSON file to stix json, use\n\n`misp-to-stix.py -f INFILE.json --format JSON -o OUTFILE.json`\n(the --format flag is used to specify output format, just for reference)\n\nAnd to pull a specific event from the MISP instance\n\n`misp-to-stix.py -i EVENT_ID...`\n\nAlternatively, if you want to pull every event of a certain tag, you can run\n\n`misp-to-stix.py -t tlp:white -o out.{}.xml`\n\nWhich will write all \"tlp:white\" tagged events to a file formatted by the event's ID, e.g out.29.xml\n\n### For STIX to MISP\n\nThis *only* works if you have a live MISP instance to connect the API\nto. \n\n`./stix-to-misp.py INFILE.json`\n\nThis will convert the file to MISP format and push it. \nQuite a few bits and bobs get converted, not all of them (I for one blame CyBoX for being\nweird and layered worse than an onion).\n\nFeel free to add more to the stix-to-misp.py file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisp%2Fmisp-stix-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmisp%2Fmisp-stix-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmisp%2Fmisp-stix-converter/lists"}