MISP modules

MISP modules are autonomous modules that can be used to extend MISP for new services such as expansion, import, export and workflow action.
MISP modules can be also installed and used without MISP as a standalone tool accessible via a convenient web interface or using a cli tool.
The modules are written in Python 3 following a simple API interface. The objective is to ease the extensions of MISP functionalities without modifying core components. The API is available via a simple REST API which is independent from MISP installation or configuration and can be used with other tools. The API is also documented automatically via an OpenAPI end-point or a swagger file.
For more information: Extending MISP with Python modules slides from MISP training.
Installation
Installation instructions can be found in the installation documentation.
For optional server-local defaults for module API keys, URLs, and other settings,
see Local module configuration defaults.
Enable them with --module-config /etc/misp-modules/modules.json; API-supplied
values take precedence and existing operation is unchanged without this option.
To optionally restrict PAP:RED expansion, start with --restrict-pap-red.
See PAP:RED restrictions for source declarations
and the tag and hover context clients must supply. The default behavior is unchanged.
How to add your own MISP modules?
Developing a MISP module yourself is fairly easy. Start with a template or existing module and continue from there.
More information can be found in the contribute section of the documentation.
To make a custom module appear in MISP, follow the
installation, discovery and enablement checklist.
Documentation
In order to provide documentation about some modules that require specific input / output / configuration, the documentation contains detailed information about the general purpose, requirements, features, input and ouput of each of these modules:
- *description - quick description of the general purpose of the module, as the one given by the moduleinfo
- requirements - special libraries needed to make the module work
- features - description of the way to use the module, with the required MISP features to make the module give the intended result
- references - link(s) giving additional information about the format concerned in the module
- input - description of the format of data used in input
- output - description of the format given as the result of the module execution
OpenAPI and API explorer
When the service is running you can discover the available endpoints in a machine-readable way via /openapi.json.
An interactive Swagger UI that consumes the same specification is available at /openapi.
The specification is generated during service startup, so restart misp-modules after adding or removing modules to refresh what those endpoints expose.
Module statistics
GET /statistics returns per-module and aggregate query counts, successes, errors
(module errors, exceptions and timeouts), in-flight requests, success/error rates,
response times, cumulative latency histograms, body byte counts and last-use timestamps.
It includes loaded modules that have never been queried, including custom modules.
curl http://localhost:6666/statistics
Statistics are held in memory per server process and reset on restart. See
statistics details for metric semantics.
The endpoint is also described in /openapi.json and the /openapi explorer.
Optional result caching
Use --cache-config /etc/misp-modules/cache.json to enable bounded, in-memory
result caching for individually selected expansion modules. Each module has its
own lifetime, entry limit and response byte limit. Identical concurrent queries
share one execution, and /statistics reports cache hits and avoided executions.
Caching is disabled by default and adds no dependencies or external services.
See result caching for configuration and limits.
Extended HTTP debugging
Run misp-modules --debug-extended to enable normal debug logging plus full outbound
HTTP request and response logging for modules and SDKs using requests. Logs include
methods, URLs, headers, and untruncated bodies, with an exchange ID and module name.
Streamed bodies are logged as they are transferred, without reading ahead.
This option logs credentials and sensitive payloads without redaction; enable it only
while troubleshooting. See the installation documentation
for coverage and streaming details.
Licenses
For further Information see the license file.
Existing MISP modules
Expansion Modules
- Abuse IPDB - AbuseIPDB MISP expansion module
- ANYRUN Sandbox Submit - A module designed to submit URLs or files to the ANY.RUN Sandbox for analysis and return the unique analysis link and ID.
- OSINT DigitalSide - On demand query API for OSINT.digitalside.it project.
- APIVoid - Query APIVoid v2 for DNS records, SSL certificates and email verification.
- AssemblyLine Query - A module to query the AssemblyLine API with a submission ID to get the submission report and parse it.
- AssemblyLine Submit - A module to submit samples and URLs to AssemblyLine for advanced analysis, and return the link of the submission.
- APIFreaks - An expansion module for https://apifreaks.com/ that will provide WHOIS, DOMAIN and DNS information.
- Backscatter.io - Backscatter.io module to bring mass-scanning observations into MISP.
- binGraph - Generate entropy and byte histogram PNG images from attachments and malware samples.
- BTC Scam Check - An expansion hover module to query a special dns blacklist to check if a bitcoin address has been abused.
- BTC Steroids - An expansion hover module to get a blockchain balance from a BTC address in MISP.
- CCCS YARA Metadata Validator - Validate YARA rule metadata against the CCCS YARA specification.
- Censys Enrich - An expansion module to enrich attributes in MISP by quering the censys.io API
- CIRCL Passive DNS - Module to access CIRCL Passive DNS.
- CIRCL Passive SSL - Modules to access CIRCL Passive SSL.
- Cisco PSIRT - Retrieve Cisco PSIRT security advisories by CVE, Cisco advisory ID or Cisco bug ID.
- Cisco Umbrella Investigate - Enrich a domain with Cisco Umbrella Investigate categorization and risk scores.
- ClaamAV - Submit file to ClamAV
- Cluster25 Expand - Module to query Cluster25 CTI.
- Markdown to PDF converter - Render the markdown (under GFM) into PDF. Requires pandoc (https://pandoc.org/), wkhtmltopdf (https://wkhtmltopdf.org/) and mermaid dependencies.
- Cortex XDR IOC Lookup - Look up exact hash, domain and IP IOC rules in a Cortex XDR tenant.
- Cortex XSOAR Indicator Lookup - Look up a MISP observable in Cortex XSOAR 8's indicator store with reputation and expiration metadata.
- Country Code - Module to expand country codes.
- CPE Lookup - An expansion module to query the CVE search API with a cpe code to get its related vulnerabilities.
- CrowdSec CTI - Module to access CrowdSec CTI API.
- CrowdStrike Falcon - Query CrowdStrike Falcon Intelligence indicators on demand.
- Cuckoo Submit - Submit files and URLs to Cuckoo Sandbox
- CVE Lookup - An expansion hover module to expand information about CVE id.
- CVE Advanced Lookup - An expansion module to query the CIRCL CVE search API for more information about a vulnerability (CVE).
- Cytomic Orion Lookup - An expansion module to enrich attributes in MISP by quering the Cytomic Orion API
- DBL Spamhaus Lookup - Checks Spamhaus DBL for a domain name.
- DNS Record Enumeration - Query DNS data types including SOA and TXT, preserve complete resource records, and extract linked domain, IP, email and URL pivots. JSON documentation.
- DNS Resolver - Simple DNS expansion service to resolve IP address from MISP attributes
- DOCX Enrich - Module to extract freetext from a .docx document.