Performing Threat Intelligence Sharing with MISP
Overview
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.
When to Use
- When conducting security assessments that involve performing threat intelligence sharing with misp
- When following incident response procedures for related security events
- When performing scheduled security testing or auditing activities
- When validating security controls through hands-on testing
Prerequisites
- MISP instance (v2.4+) with API access enabled
- Python 3.9+ with
pymisp (pip install pymisp)
- MISP API key (Settings > Auth Keys)
- Understanding of MISP data model (Events, Attributes, Objects, Tags, Galaxies)
- Knowledge of TLP marking and sharing protocols
Steps
- Install PyMISP:
pip install pymisp
- Initialize
ExpandedPyMISP(url, key, ssl=True) connection
- Create a
MISPEvent with info, distribution level, threat level, and analysis status
- Add attributes via
event.add_attribute(type, value) for IPs, domains, hashes
- Apply TLP tags and MITRE ATT&CK technique tags
- Publish the event with
misp.publish(event)
- Search existing events with
misp.search(controller='events', value=..., type_attribute=...)
- Enable and configure threat feeds for automatic IOC ingestion
- Export events in STIX 2.1 format for cross-platform sharing
- Validate sharing group configuration and sync server settings
Expected Output
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.
1---
2name: performing-threat-intelligence-sharing-with-misp
3description: Use PyMISP to create, enrich, and share threat intelligence events on
4 a MISP platform, including IOC management, feed integration, STIX export, and community
5 sharing workflows.
6domain: cybersecurity
7subdomain: threat-intelligence
8tags:
9- misp
10- pymisp
11- threat-intelligence
12- ioc-sharing
13- stix
14- taxii
15- threat-feeds
16- information-sharing
17version: '1.0'
18author: mahipal
19license: Apache-2.0
20nist_csf:
21- ID.RA-01
22- ID.RA-05
23- DE.CM-01
24- DE.AE-02
25mitre_attack:
26- T1591
27- T1592
28- T1593
29- T1589
30source: https://github.com/mukul975/Anthropic-Cybersecurity-Skills
31source_commit: 04450304b12645cb2b974ab96d28c0664758a88d
32metadata:
33 source: https://skillmd.com/skills/yanacuti1121/performing-threat-intelligence-sharing-with-misp
34---
35
36# Performing Threat Intelligence Sharing with MISP
37
38## Overview
39
40MISP (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.
41
42
43## When to Use
44
45- When conducting security assessments that involve performing threat intelligence sharing with misp
46- When following incident response procedures for related security events
47- When performing scheduled security testing or auditing activities
48- When validating security controls through hands-on testing
49
50## Prerequisites
51
52- MISP instance (v2.4+) with API access enabled
53- Python 3.9+ with `pymisp` (`pip install pymisp`)
54- MISP API key (Settings > Auth Keys)
55- Understanding of MISP data model (Events, Attributes, Objects, Tags, Galaxies)
56- Knowledge of TLP marking and sharing protocols
57
58## Steps
59
601. Install PyMISP: `pip install pymisp`
612. Initialize `ExpandedPyMISP(url, key, ssl=True)` connection
623. Create a `MISPEvent` with info, distribution level, threat level, and analysis status
634. Add attributes via `event.add_attribute(type, value)` for IPs, domains, hashes
645. Apply TLP tags and MITRE ATT&CK technique tags
656. Publish the event with `misp.publish(event)`
667. Search existing events with `misp.search(controller='events', value=..., type_attribute=...)`
678. Enable and configure threat feeds for automatic IOC ingestion
689. Export events in STIX 2.1 format for cross-platform sharing
6910. Validate sharing group configuration and sync server settings
70
71## Expected Output
72
73A 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.