You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/contribute.md
+41-20Lines changed: 41 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
## How to add your own MISP modules?
2
2
3
-
Create your module in [misp_modules/modules/expansion/](https://github.com/MISP/misp-modules/tree/master/misp_modules/modules/expansion/), [misp_modules/modules/export_mod/](https://github.com/MISP/misp-modules/tree/master/misp_modules/modules/export_mod/), or [misp_modules/modules/import_mod/](https://github.com/MISP/misp-modules/tree/master/misp_modules/modules/import_mod/). The module should have at minimum three functions:
3
+
Create your module in [misp_modules/modules/expansion/](https://github.com/MISP/misp-modules/tree/main/misp_modules/modules/expansion/), [misp_modules/modules/export_mod/](https://github.com/MISP/misp-modules/tree/main/misp_modules/modules/export_mod/), or [misp_modules/modules/import_mod/](https://github.com/MISP/misp-modules/tree/main/misp_modules/modules/import_mod/). The module should have at minimum three functions:
4
4
5
5
***introspection** function that returns a dict of the supported attributes (input and output) by your expansion module.
6
6
***handler** function which accepts a JSON document to expand the values and return a dictionary of the expanded values.
@@ -309,22 +309,27 @@ Recommended Plugin.Import_ocr_enabled true Enable or disable the ocr
309
309
310
310
In this same menu set any other plugin settings that are required for testing.
311
311
312
+
## Install misp-module on an offline instance.
313
+
First, you need to grab all necessary packages for example like this :
tar -cjvf misp-module-bundeled.tar.bz2 ./misp-modules-offline/*
320
+
~~~
321
+
On offline machine :
322
+
~~~
323
+
mkdir misp-modules-bundle
324
+
tar xvf misp-module-bundeled.tar.bz2 -C misp-modules-bundle
325
+
cd misp-modules-bundle
326
+
ls -1|while read line; do sudo pip3 install --force-reinstall --ignore-installed --upgrade --no-index --no-deps ${line};done
327
+
~~~
328
+
Next you can follow standard install procedure.
313
329
314
-
## Documentation
315
-
316
-
In order to provide documentation about some modules that require specific input / output / configuration, the [doc](https://github.com/MISP/misp-modules/tree/master/doc) directory contains detailed information about the general purpose, requirements, features, input and output of each of these modules:
317
-
318
-
-***description** - quick description of the general purpose of the module, as the one given by the moduleinfo
319
-
-**requirements** - special libraries needed to make the module work
320
-
-**features** - description of the way to use the module, with the required MISP features to make the module give the intended result
321
-
-**references** - link(s) giving additional information about the format concerned in the module
322
-
-**input** - description of the format of data used in input
323
-
-**output** - description of the format given as the result of the module execution
324
-
325
-
In addition to the module documentation please add your module to [docs/index.md](https://github.com/MISP/misp-modules/tree/master/docs/index.md).
330
+
## How to contribute your own module?
326
331
327
-
There are also [complementary slides](https://www.misp-project.org/misp-training/3.1-misp-modules.pdf) for the creation of MISP modules.
332
+
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.
328
333
329
334
330
335
## Tips for developers creating modules
@@ -334,7 +339,7 @@ Download a pre-built virtual image from the [MISP training materials](https://ww
334
339
- Create a Host-Only adapter in VirtualBox
335
340
- Set your Misp OVA to that Host-Only adapter
336
341
- Start the virtual machine
337
-
- Get the IP address of the virutal machine
342
+
- Get the IP address of the virtual machine
338
343
- SSH into the machine (Login info on training page)
curl -s http://127.0.0.1:6666/query -H "Content-Type: application/json" --data @MY_TEST_FILE.json -X POST
373
380
cd ../
374
381
~~~
382
+
383
+
## Documentation
384
+
385
+
In order to provide documentation about some modules that require specific input / output / configuration, the [index.md](docs/index.md) file within the [docs](docs) directory contains detailed information about the general purpose, requirements, features, input and ouput of each of these modules:
386
+
387
+
-***description** - quick description of the general purpose of the module, as the one given by the moduleinfo
388
+
-**requirements** - special libraries needed to make the module work
389
+
-**features** - description of the way to use the module, with the required MISP features to make the module give the intended result
390
+
-**references** - link(s) giving additional information about the format concerned in the module
391
+
-**input** - description of the format of data used in input
392
+
-**output** - description of the format given as the result of the module execution
393
+
394
+
## Licenses
395
+
For further Information see also the [license file](license/).
0 commit comments