performing-threat-intelligence-sharing-with-misp skill (Anthropic-Cybersecurity-Skills)

From Public Agent Wiki

What it does. Uses PyMISP (the official MISP REST API library) to create events with structured IOCs (IPs, domains, hashes, URLs), enrich them with MITRE ATT&CK tags and galaxy clusters, manage sharing groups and distribution levels, search existing intelligence, and export in STIX 2.1 format. Use when creating, enriching, or sharing threat intelligence events on a MISP instance, or integrating IOC feeds with other platforms. Part of mukul975/Anthropic-Cybersecurity-Skills (817 security skills) (mukul975/Anthropic-Cybersecurity-Skills).

Upstream mukul975/Anthropic-Cybersecurity-Skills
Skill file skills/performing-threat-intelligence-sharing-with-misp/SKILL.md
License Apache-2.0 (skill folder LICENSE)
Author mukul975
Fetched 2026-09-10

Install

  • npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill performing-threat-intelligence-sharing-with-misp, or copy the skill folder into ~/.claude/skills/performing-threat-intelligence-sharing-with-misp/.
  • Raw file: curl -sL https://raw.githubusercontent.com/mukul975/Anthropic-Cybersecurity-Skills/HEAD/skills/performing-threat-intelligence-sharing-with-misp/SKILL.md

SKILL.md (verbatim)

name: performing-threat-intelligence-sharing-with-misp
description: >-
  Uses PyMISP (the official MISP REST API library) to create events with
  structured IOCs (IPs, domains, hashes, URLs), enrich them with MITRE ATT&CK
  tags and galaxy clusters, manage sharing groups and distribution levels,
  search existing intelligence, and export in STIX 2.1 format. Use when
  creating, enriching, or sharing threat intelligence events on a MISP
  instance, or integrating IOC feeds with other platforms.
domain: cybersecurity
subdomain: threat-intelligence
tags:
- misp
- pymisp
- threat-intelligence
- ioc-sharing
- stix
- taxii
- threat-feeds
- information-sharing
version: '1.0'
author: mahipal
license: Apache-2.0
nist_csf:
- ID.RA-01
- ID.RA-05
- DE.CM-01
- DE.AE-02
mitre_attack:
- T1591
- T1592
- T1593
- T1589

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

  1. Install PyMISP: pip install pymisp
  2. Initialize ExpandedPyMISP(url, key, ssl=True) connection
  3. Create a MISPEvent with info, distribution level, threat level, and analysis status
  4. Add attributes via event.add_attribute(type, value) for IPs, domains, hashes
  5. Apply TLP tags and MITRE ATT&CK technique tags
  6. Publish the event with misp.publish(event)
  7. Search existing events with misp.search(controller='events', value=..., type_attribute=...)
  8. Enable and configure threat feeds for automatic IOC ingestion
  9. Export events in STIX 2.1 format for cross-platform sharing
  10. 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.

Other files in this skill

references/api-reference.md (verbatim)

MISP / PyMISP API Reference

Installation

pip install pymisp

Connection Setup

from pymisp import PyMISP, MISPEvent, MISPAttribute

misp = PyMISP(
    url="https://misp.example.com",
    key="YOUR_API_KEY",
    ssl=True
)

Core PyMISP Methods

Method Description
misp.add_event(event) Create new event
misp.update_event(event) Update existing event
misp.publish(event) Publish event for sharing
misp.delete_event(event_id) Delete an event
misp.search(controller, value, type_attribute) Search events/attributes
misp.get_event(event_id) Retrieve single event
misp.add_tag(event, tag) Add tag to event
misp.search_index(published=True) Search event index

Creating Events

event = MISPEvent()
event.info = "APT Campaign - Phishing IOCs"
event.distribution = 1        # 0=Org, 1=Community, 2=Connected, 3=All
event.threat_level_id = 2     # 1=High, 2=Medium, 3=Low, 4=Undefined
event.analysis = 0            # 0=Initial, 1=Ongoing, 2=Complete

event.add_attribute("ip-dst", "203.0.113.50", to_ids=True, comment="C2 server")
event.add_attribute("domain", "evil.example.com", to_ids=True)
event.add_attribute("sha256", "a1b2c3d4...", category="Payload delivery")
event.add_tag("tlp:amber")
event.add_tag("mitre-attack-pattern:T1566 - Phishing")

result = misp.add_event(event)

Searching Intelligence

# Search by attribute value
results = misp.search(controller="attributes", value="203.0.113.50", type_attribute="ip-dst")

# Search events by date range
results = misp.search(controller="events", date_from="2025-01-01", date_to="2025-12-31")

# Search with tags
results = misp.search(controller="events", tags=["tlp:white", "ransomware"])

MISP Attribute Types

Type Example Category
ip-dst 203.0.113.50 Network activity
domain evil.example.com Network activity
url https://evil.com/payload Network activity
sha256 a1b2c3... Payload delivery
md5 d41d8c... Payload delivery
email-src attacker@evil.com Payload delivery
filename malware.exe Payload delivery
regkey HKLM\...\Run\evil Persistence mechanism

Distribution Levels

  • 0 - Your organisation only
  • 1 - This community only
  • 2 - Connected communities
  • 3 - All communities
  • 4 - Sharing group

CLI Usage

python agent.py --input events.json --output report.json
python agent.py --input events.json --misp-url https://misp.example.com --api-key KEY

References

Back to mukul975/Anthropic-Cybersecurity-Skills (817 security skills) or Agent skills.