docker-misp icon indicating copy to clipboard operation
docker-misp copied to clipboard

Updating MISP JSON structues on init

Open garrit-schroeder opened this issue 4 years ago • 6 comments

On MISP INIT update the JSON structures.

root@misp:/var/www/MISP# ./app/Console/cake Admin updateJSON

Welcome to CakePHP v2.10.22 Console
---------------------------------------------------------------
App : app
Path: /var/www/MISP/app/
---------------------------------------------------------------
Updating all JSON structures.
Galaxies updated.
Noticelists updated.
Warninglists updated.
Taxonomies updated.
ObjectTemplates updated.
All JSON structures updated. Thank you and have a very safe and productive day.

garrit-schroeder avatar Dec 29 '20 12:12 garrit-schroeder

Maybe here:

https://github.com/coolacid/docker-misp/blob/066f5c8dfac8b64698ae567e2ff13a5787b0e256/server/files/entrypoint_nginx.sh#L51

garrit-schroeder avatar Dec 29 '20 12:12 garrit-schroeder

Is this something that should be added? Mind linking the MISP docs on this function so I can figure out the best place?

coolacid avatar Jan 11 '21 15:01 coolacid

I think this should be added. This will update the galaxies, notice & warninglists, taxonomies and object templates on command. This is already done with the cronjob (I think?) But this should be done on MISP init as well. I found this in the automation tab in MISP.

garrit-schroeder avatar Jan 12 '21 09:01 garrit-schroeder

Sounds good, do you want to PR it?

coolacid avatar Jan 22 '21 14:01 coolacid

I am working on it. One MISP Issue is currently preventing me from developing.

https://github.com/MISP/MISP/issues/6921

garrit-schroeder avatar Jan 28 '21 11:01 garrit-schroeder

I have created a pull request for that. actually a couple. :) Let me know what you think.

garrit-schroeder avatar Jan 28 '21 18:01 garrit-schroeder