MISP Import Module not displayed in "Populate from" menu
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 377
- Forks
- 280
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 10
Description
Work environment
| Questions | Answers |
|---|---|
| Type of issue | Bug |
| OS version (server) | Ubuntu Server 16.04.1 |
| OS version (client) | Windows 7 x64 Enterprise |
| PHP version | 7.0.25 |
| MISP version / git hash | 2.4.82 |
| Browser | Chrome, FireFox |
Description
Inside an event, the "Populate from" menu is not displaying an import module. The misp-module server is running properly without any error message, the import module feature is activated from server settings, the related module config was entered in import module settings, the module is working and is sending the results only when using CURL.
Here is the steps I've accomplished so far to build the plugin and test it before writing this.
-
I downloaded a ZIP file of the MISP Modules project and deployed it in /usr/local/src/
-
I created an import module and place it at: /usr/local/src/misp-modules/misp-modules/modules/import_mod/my_module.py
-
I added "my_module" in the array of strings inside the init file of import modules /usr/local/src/misp-modules/misp-modules/modules/import_mod/init.py
-
Builted the modules from the directory /usr/local/src/misp-modules/
- sudo pip3 install --upgrade -r REQUIREMENTS
- sudo pip3 install --upgrade .
-
Changed the permission on all the import module Python file to the same level as the original MISP module files.
-
Started the MISP-modules server
- misp-modules -d
-
I activated the import module and added my module configuration in the Server settings > Plugging settings
-
Tested the module with a curl command and that worked flawlessly.
curl http://127.0.0.1:6666/query -H "Content-Type: application/json" --data @body.json -X POST | jq . -
I created an event and the "Populate from" is not showing the module...
Comment
The MISP server and the MISP module server are on the same host.
When I navigate in MISP, I can see (with the output of the misp-modules -d running) the requests made from the MISP server to the module server when I open an event webpage / when I navigate on the server settings page.
Also good to mention that the MISP server is located on a host that is not connected to the internet. All the modules were installed offline to the latest version available on Python3.
If someone have been in that situation, please let me know. I already consulted issues similar but not exactly the same. Thanks for your help.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the import module registration in misp-modules/modules/import_mod/init.py and the module server entry point launched with misp-modules -d. Reproduce the request using the documented curl command and inspect the MISP server's requests while opening an event and Server settings. Done means the registered import module is returned by the integration and appears in the event's “Populate from” menu.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100