Modules for expansion services, import and export in MISP
Go to file
Alexandre Dulaunoy fc609dd987 Add a version per default 2016-02-24 00:53:15 +01:00
bin Add type per module 2016-02-24 00:52:38 +01:00
modules/expansion Add a version per default 2016-02-24 00:53:15 +01:00
tests curl is now silent 2016-02-17 18:33:33 +01:00
var default var directory added 2016-02-18 09:25:51 +01:00 Format updated following Andras updates 2016-02-24 00:23:26 +01:00
REQUIREMENTS Python pip REQUIREMENTS file added 2016-02-18 09:21:36 +01:00

MISP modules

MISP modules are autonomous modules that can be used for expansion and other services in MISP.

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.

MISP modules support is included in MISP starting from version 2.4.X.

Existing MISP modules

  • DNS - a simple module to resolve MISP attributes like hostname and domain to expand IP addresses attributes.

How to add your own MISP modules?

Create your module in modules/expansion/. The module should have at minimum two functions:

  • introspection function that returns an array of the supported attributes by your expansion module.
  • handler function which accepts a JSON document to expand the values and return a dictionary of the expanded values.

Testing your modules?

MISP uses the modules function to discover the available MISP modules and their supported MISP attributes:

% curl -s | jq .
    "name": "dns",
    "mispattributes": [

The MISP module service returns the available modules in a JSON array containing each module name along with their supported input attributes.

Based on this information, a query can be built in a JSON format and saved as body.json:

  "results": [
      "types": [
      "values": [

Then you can POST this JSON format query towards the MISP object server:

curl -s -H "Content-Type: application/json" --data @body.json -X POST