Commit Graph

42 Commits (master)

Author SHA1 Message Date
ram71138 ae415b8600 move ARG to the places where they first used 2020-04-30 07:53:21 +03:00
Ventz Petkov d7eda5bfc8 Updated misp-modules packages and ports. Added Reverse Proxy instructions/information in README 2020-04-16 12:38:04 -04:00
Ventz Petkov 6ad4df8fa0 Fixed tar extraction typo, first mentioned here: https://github.com/MISP/docker-misp/pull/14 and then mentioned here: https://github.com/harvard-itsecurity/docker-misp/issues/50) 2020-03-24 12:59:10 -04:00
Erick Cheng e5269a7899
Update Dockerfile ssdeep download location
- For ssdeep install, use github.com instead of http://sourceforge.net.
- Update ssdeep version form 2.13 to 2.14.1
2020-01-03 10:45:49 +01:00
Ventz Petkov 939d98e452 Merge of PR by Kortho - cleaned up pip3 install - https://github.com/MISP/docker-misp/pull/11 2019-11-20 21:53:21 -05:00
Ventz Petkov c9d72cea5f Merge of PR by Kortho - includes php memory limit increase and installing libpoppler-cpp-dev, needed for misp-modules due to python pdftotext - https://github.com/MISP/docker-misp/pull/8 and https://github.com/MISP/docker-misp/pull/10 2019-11-20 21:37:06 -05:00
Ventz Petkov b1f219c5f6 Fix for misp-modules and python3 until it's fixed upstream - thanks to @angarod for finding/testing 2019-05-21 22:23:19 -04:00
Ventz Petkov 112a556905 Fix for misp-modules and python3 until it's fixed upstream - thanks to @angarod for finding/testing 2019-05-21 22:19:26 -04:00
Ventz Petkov 901c50a3a7 Updated git url for pydeep 2019-03-17 13:46:35 -04:00
Ventz Petkov 7cb7e07b00 Complete re-work of MISP modules and fix for dependencies. Lots of great improvements. Thanks again to @XizzoR for pointing out problems! 2019-03-16 21:56:03 -04:00
Ventz Petkov 68b6b5a5be Fix for problem discovered by @XizzoR, where GPG key was empty and not actually being created in latest version 2019-03-16 14:35:30 -04:00
Ventz Petkov b063e3bcd5 Fix for installing latest PyMISP - reportlab requirement as per: https://github.com/MISP/PyMISP/issues/351 2019-02-27 08:54:00 -05:00
Ventz Petkov 2cc45f3426 Fixed redis restarts within supervisord - due to being daemonized. Thanks @cellango for reporting it! Upstream update sync to: a62bca4e169c919413bba4e6ce978e30aae9183e 2019-01-15 20:49:20 -05:00
Ventz Petkov c298bfcc8b Upstream update to install process: 9d0c6fa8fe6e8345f8053929bb18cc64007974a2 - install STIX2.0 library to support STIX 2.0 export. Also re-aranged install order a bit to match upstream. Due to recent upstream changes, there are still some things that are installed in a different order, but everything installed is now here. 2018-12-12 14:52:32 -05:00
Ventz Petkov ccab1de24a Upstream update to install process: 2050c864a4d838e93e69b839763b72e4a76c979a and 11a9b93a3e8cc67a78b03d4c904d3be50522ba6f - added python MAEC, and updated git submodule pulls to be recursive 2018-10-10 08:46:53 -04:00
Ventz Petkov c3e98ab669 Upstream update to install process: f72fc1f1f8a7fc901a54821d6f036fabc7540f6a - chmod of misp log rotate 2018-09-04 14:30:03 -04:00
Ventz Petkov 1d9fd16bb1 Upstream update to install process: 07ac2a0c5653546ceaf0433ea235be3cc8d4c2b5 and e1fc7b2e50580e7f826d6cae4bb0debf43658db2 - removal of checking out latest tagged version and changing pysqm and redis to pip3, which was already in place! 2018-08-22 23:47:17 -04:00
Ventz Petkov 5d07aec827 Created auto-build image from github now that dockerhub has better auto build resources. Sadly, this means we have to delete the manual image which has over 50,000 downloads. Also, upstream update to install process: 29dc4adbdfc1412989efbaf5463e5d7d897a153b - Init Submodules 2018-07-07 21:28:29 -04:00
matt-saunders d885d9f33b
MISP recommended PHP settings
Saw this code in XME's [misp-docker](https://github.com/MISP/misp-docker/blob/master/misp-web/Dockerfile) and thought it would be a good idea to incorporate it.
2018-06-20 22:43:16 -04:00
matt-saunders af95d97b8b
Update Dockerfile 2018-06-15 00:16:12 -04:00
matt-saunders a607f025ab
Cybox library version error fix
After a clean install if you log into MISP and navigate to Administration -> Server Settings -> Diagnostics in the STIX and Cybox libraries section you will see the error CYBOX library version...Incorrect CyBox version installed, found 2.1.0.17 expecting 2.1.0.18.dev0.  I reached out the the developers of MISP and they told me to run pip3 uninstall cybox to uninstall the pip managed version.  To test it out I did I clean install and SSH'd into the container then ran the command and the error went away.  Not sure where the best place to incorporate this is, but this was were I tested it and I successfully ran a clean build with it.
2018-06-14 19:40:10 -04:00
matt-saunders fa43de5748
Update to resolve install issues
Added WORKDIR to line 34 to resolve the following errors:
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not in a git directory

Added lines 60 and 61 to resolve the following errors:
ERROR [mispevent.py:52 - <module>() ] Cannot import jsonschema
Traceback (most recent call last):
  File "/var/www/MISP/PyMISP/pymisp/mispevent.py", line 50, in <module>
    import jsonschema
ModuleNotFoundError: No module named 'jsonschema'
WARNING [__init__.py:46 - <module>() ] Unable to load pymisp properly: No module named 'requests'

Edited line 136 to resolve the following error:
/bin/sh: 1: cannot create /etc/php/7.0/mods-available/ssdeep.ini: Directory nonexistent
WARNING: Module ssdeep ini file doesn't exist under /etc/php/7.2/mods-available
WARNING: Module ssdeep ini file doesn't exist under /etc/php/7.2/mods-available
2018-06-12 23:32:49 -04:00
Ventz Petkov a301a4d6fb Upgrade to Ubuntu 18.04 LTS - following upstream as closely as possible, while solving Docker specific issues. Includes all changes from 16.04 LTS commit by Ventz - 3f50fbf7cb 2018-05-31 23:01:47 -04:00
Ventz Petkov 3f50fbf7cb Upstream update to install process: 9c134881ba836ae10919c3618fbc6541efb04a28 and 98414cf2befa0757e1d2c3aac85c6a226d366f75 and 1b72988e56b0118862fe61c1e60acab134c5073d - includes updated install and move to python3 for stix, cybox, and mixbox libraries. Install pymisp for python3. 2018-05-31 21:27:02 -04:00
Jeremy Barlow 95126eaff7 Expose available ports in Dockerfile
This commit includes an expose command in the Dockerfile for various
ports that the application uses - web server (80 and 443), mysql (3306),
and MISP ZeroMQ (50000).
2018-05-08 13:40:43 -07:00
Ventz Petkov e2300e0163
Merge pull request #15 from jbarlow-mcafee/pip2-pyzmq-redis-install
Ensure pyzmq and redis also installed with pip2 for Python 2

Thanks to @jbarlow-mcafee for discovering this and proposing a fix!
2018-04-10 16:36:40 -04:00
Jeremy Barlow 58933d4547 Set working directory for redis-server to /var/lib/redis
This commit changes the working directory used for the redis-server
process from /etc/redis, which the redis user does not have write access
to, to /var/lib/redis, which is writable by the redis user.
2018-04-10 13:28:58 -07:00
Jeremy Barlow 8ff5dc7912 Ensure pyzmq and redis also installed with pip2 for Python 2
Previously, pyzmq and redis were pip installed using the default pip,
which was for Python 3. This resulted in the pyzmq and redis packages
not being found when the MISP server spawned the mispzmq script using
the default python, which is version 2. With this commit, pyzmq and
redis would be installed for both Python 2 (via pip2) and Python 3
(via pip3), which should allow the packages to be available to scripts
which use it from different Python versions.
2018-04-10 13:22:17 -07:00
Jeremy Barlow 0bcf0d9ac3 Pass redis conf file to redis-server program in supervisord.conf
Previously, the redis-server program was started from supervisord.conf
without a configuration file specifying the data directory to use. This
resulted in redis "not able to persist to disk" errors when the mispzmq
script performed some redis commands. The error was due to the default
redis data directory, /etc/redis, not being writable by the user that
the redis process runs as, redis.

This commit passes the /etc/redis/redis.conf configuration file to the
redis-server process at startup. The configuration file already sets the
data directory to a directory that the redis user has write access to,
/var/lib/redis.
2018-04-10 13:16:41 -07:00
Ventz Petkov 91b928e31f 1.) Upstream update to install: 6df6cc79bc0dbbc0307d57767ac47c09f1a0bf1c - Added ssdeep install and php module. 2.) Updated README for Mac Docker users to clear up confusion around mount directories, thanks to Toby @datasci4security for bringing it up 3.) Added Latest Update date and Latest Upstream hash included 2018-03-07 18:48:48 -05:00
Ventz Petkov f074a49568 Upstream update to install process: a2d17e3c5eaea60f5bb5875bbadef259bbd06070 - Added additional information for installation (Python 3 for stix2, a2enmod headers) 2018-01-23 13:48:33 -05:00
Ventz Petkov 9d6576f892 Removed 'Require all granted' even though we are using Ubuntu 16.04 and Apache 2.4 from Ubuntu. It seems that the 'patched' Apache 2.4 - Version: 2.4.18-2ubuntu3 as of now, is actually loading the Apache 2.2 access control module. Per Apache's documentation, this *should* be correct: https://httpd.apache.org/docs/current/upgrading.html -- however, in order to 'fix' it for MISP, we are inserting the 2.2 directive, and removing the 2.4 directive. 2018-01-11 23:58:10 -05:00
Ventz Petkov 670959dcaf Upstream update to install process: 82da6c5639d9e5f0531705cf4337154a9072c314 - added install of stix2, which depends on python3 and pip3. This covers everything up to and including the Jan 4, 2018 commit by adulau. 2018-01-11 23:37:13 -05:00
Ventz Petkov 59f63b7d6c Fix for issue #5 which was somehow left out of commit 50d2a42bbc. Also, updated certs to reflect crt everywhere - docs and other notes 2017-09-25 09:26:37 -04:00
Ventz Petkov 40ff7c71ef Another fix to upstream update to install process: 70939ef37d84e3e011207a8d074e719d74f5fbb2 - fix to issue #2278 found here: https://github.com/MISP/MISP/issues/2278. Removed old config 2017-07-13 10:21:59 -04:00
Ventz Petkov 50d2a42bbc Upstream update to install process: 70939ef37d84e3e011207a8d074e719d74f5fbb2 - fix to issue #2278 found here: https://github.com/MISP/MISP/issues/2278 2017-07-13 10:03:01 -04:00
Ventz Petkov 6807da5bab Upstream update to install process: 1db9f8c0744ae6804c51a67cfec1d6981c2e26f9 - Install mixbox to accomodate the new STIX dependencies 2017-06-20 12:35:16 -04:00
Ventz Petkov b5c052eaac Upstream update to install process: 0bcb3376e56588c518ad97efd06d671a04802a01 and 2ccb10c198476f77f33ce34eae721c30fb99fc34 - added logrotation, however added it inline instead of in a separate config which is later copied. 2017-02-13 15:40:27 -05:00
Ventz Petkov 39b1e86237 Merged in @radder5's improvements on rng-tools, and misp-modules + README 2017-02-13 15:24:45 -05:00
Ventz Petkov 09c043f779 Added mysql chown to guarantee permissions on directories that are remote mounted and keep their own, and added rng-tools to help with entropy 'randomness' generation + a note about it and the security aspects. 2017-02-09 11:25:59 -05:00
Ventz Petkov 82adc8ae92 Upstream update to install process: 0675e993475fcfb6ba1f030fdf0d5270a8b23b5f - You need to install the package python-setuptools on Ubuntu 16.04/Mint 18 to use the setup.py for the STIX installation. 2016-10-11 16:37:35 -04:00
Ventz Petkov c27ae4ec77 Initial commit of autobuild Docker MISP container. 2016-09-27 02:49:04 -04:00