MISP (Malware Information Sharing Platform) is an open-source threat intelligence platform designed for collecting, storing, distributing, and sharing cybersecurity indicators and threat information. PyMISP is the official Python library for interacting with MISP instances via the REST API, enabling programmatic event creation, attribute management, tag assignment, galaxy cluster attachment, and feed synchronization. This skill covers using PyMISP to create events with structured IOCs (IP addresses, domains, file hashes, URLs), enrich events with MITRE ATT&CK tags, manage sharing groups and distribution levels, search for existing intelligence, and export in STIX 2.1 format for interoperability with other platforms.
pymisp (pip install pymisp)pip install pymisp
ExpandedPyMISP(url, key, ssl=True) connectionMISPEvent with info, distribution level, threat level, and analysis statusevent.add_attribute(type, value) for IPs, domains, hashesmisp.publish(event)
misp.search(controller='events', value=..., type_attribute=...)
A JSON report summarizing events created, attributes added, tags applied, feed sync status, and any correlation hits against existing intelligence, with event IDs and distribution metadata.