diff --git a/404.html b/404.html index f82c463e..75e620ed 100644 --- a/404.html +++ b/404.html @@ -290,6 +290,27 @@ + + + + + + +
  • + + + + + Action Modules + + + + +
  • + + + + @@ -446,7 +467,7 @@

    404 - Not found

    Set any other required settings for your module

    In this same menu set any other plugin settings that are required for testing.

    -

    Documentation

    -

    In order to provide documentation about some modules that require specific input / output / configuration, the doc directory contains detailed information about the general purpose, requirements, features, input and output of each of these modules:

    - -

    In addition to the module documentation please add your module to docs/index.md.

    -

    There are also complementary slides for the creation of MISP modules.

    +

    Install misp-module on an offline instance.

    +

    First, you need to grab all necessary packages for example like this :

    +

    Use pip wheel to create an archive +

    mkdir misp-modules-offline
    +pip3 wheel -r REQUIREMENTS shodan --wheel-dir=./misp-modules-offline
    +tar -cjvf misp-module-bundeled.tar.bz2 ./misp-modules-offline/*
    +
    +On offline machine : +
    mkdir misp-modules-bundle
    +tar xvf misp-module-bundeled.tar.bz2 -C misp-modules-bundle
    +cd misp-modules-bundle
    +ls -1|while read line; do sudo pip3 install --force-reinstall --ignore-installed --upgrade --no-index --no-deps ${line};done
    +
    +Next you can follow standard install procedure.

    +

    How to contribute your own module?

    +

    Fork the project, add your module, test it and make a pull-request. Modules can be also private as you can add a module in your own MISP installation.

    Tips for developers creating modules

    Download a pre-built virtual image from the MISP training materials.

    @@ -1014,18 +1093,32 @@

    Tips for developers creating modul sudo git checkout MyModBranch

    Remove the contents of the build directory and re-install misp-modules.

    -
    sudo rm -fr build/*
    -sudo pip3 install --upgrade .
    +
    sudo rm -fr build/*
    +sudo -u www-data /var/www/MISP/venv/bin/pip install --upgrade .
     

    SSH in with a different terminal and run misp-modules with debugging enabled.

    -
    sudo killall misp-modules
    -misp-modules -d
    +
    # In case misp-modules is not a service do:
    +# sudo killall misp-modules
    +sudo systemctl disable --now misp-modules
    +sudo -u www-data /var/www/MISP/venv/bin/misp-modules -d
     

    In your original terminal you can now run your tests manually and see any errors that arrive

    cd tests/
     curl -s http://127.0.0.1:6666/query -H "Content-Type: application/json" --data @MY_TEST_FILE.json -X POST
     cd ../
     
    +

    Documentation

    +

    In order to provide documentation about some modules that require specific input / output / configuration, the index.md file within the docs directory 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
    • +
    +

    Licenses

    +

    For further Information see also the license file.

    @@ -1055,7 +1148,7 @@

    Tips for developers creating modul

    How to use an MISP modules Docker container

    Docker build

    docker build -t misp-modules \
    @@ -768,8 +796,8 @@ 

    Docker-composeInstall misp-module on an of