Go to file
Steve Clement 28ec00324f chg: [output] quenched more verbose commands
fix: [apt] a typo crept in, making viper build fail
2018-07-19 14:33:12 +02:00
preseeds Return the value of the sha1 and sha512 checksums of the generated VM, thanks to a post-processor. Various improvemts to the bootstrap script. 2017-08-29 09:28:19 +02:00
scripts chg: [output] quenched more verbose commands 2018-07-19 14:33:12 +02:00
.gitignore Workers and modules working properly. 2017-08-29 11:45:39 +02:00
LICENSE - Added License 2018-02-01 12:22:26 +01:00
README.md chg: [doc] Updated enable functionalities 2018-07-15 23:42:09 +02:00
archive.sh chg: [fix] fixed archive.sh set -x (because still alpha) 2018-07-18 21:10:38 +02:00
deploy.sh - Added +x to deploy again… #regress 2018-06-27 09:45:50 +02:00
misp.json - Added mail2misp and viper. SSL Certs and viper-web forwards. 2018-06-14 16:28:34 +02:00
upload.sh added upload script 2017-08-25 14:58:43 +02:00

README.md

Build Automated Machine Images for MISP

Build a virtual machine for MISP based on Ubuntu 17.10 server (for VirtualBox or VMWare).

Requirements

  • VirtualBox
  • Packer from the Packer website
  • tree -> sudo apt install tree (on deployment side)

Usage

In the file scripts/bootstrap.sh, set the value of MISP_BASEURL according to the IP address you will associate to your VM (for example: http://172.16.100.100).

Launch the generation with the VirtualBox builder:

$ packer build -only=virtualbox-iso misp.json

A VirtualBox image will be generated and stored in the folder output-virtualbox-iso.

Default credentials are displayed (Web interface, SSH and MariaDB) at the end of the process. You can directly import the image in VirtualBox.

The sha1 and sha512 checksums of the generated VM will be stored in the files packer_virtualbox-iso_virtualbox-iso_sha1.checksum and packer_virtualbox-iso_virtualbox-iso_sha512.checksum respectively.

In case you encounter a problem with the MISP_BASEURL, you can still change it when the VM is running. For example the IP address of your VM is 172.16.100.123 you can set MISP_BASEURL from your host with the command:

$ ssh misp@172.16.100.123 sudo -u www-data /var/www/MISP/app/Console/cake Baseurl http://172.16.100.123

If you want to build an image for VMWare you will need to install it and to use the VMWare builder with the command:

$ packer build -only=vmware-iso misp.json

You can also launch all builders in parallel.

Modules activated by default in the VM

Automatic export to GitHub

$ GITHUB_AUTH_TOKEN=<your-github-auth-token>
$ TAG=$(curl https://api.github.com/repos/MISP/MISP/releases/latest | jq  -r '.tag_name')
$ ./upload.sh github_api_token=$GITHUB_AUTH_TOKEN owner=MISP repo=MISP tag=$TAG filename=./output-virtualbox-iso/MISP_demo.ova

Upload latest release

curl -s https://api.github.com/repos/MISP/MISP/tags |jq -r '.[0] | .name'

You can add these lines in the post-processors section of the file misp.json if you want to automate the process.