MISP/INSTALL/INSTALL.txt

118 lines
3.4 KiB
Plaintext
Raw Normal View History

2012-12-05 09:09:41 +01:00
TODOs v0.2.3 to v2.0.0
2011-11-26 10:45:31 +01:00
-----
DB Update
- UpdateShell with in/out
2011-12-11 16:59:35 +01:00
Auth
- Prevent bruteforce auth attempts
2011-12-11 16:59:35 +01:00
Acl
- clean-up to first cut.
- saveAcl, from GroupsController to AppController and inherit to *Controllers.
auditing/logging system
- logins
- add source IP (headers,...);
- failed logins.
2011-11-26 10:45:31 +01:00
2011-12-11 16:59:35 +01:00
Security
- force cookie reset after login
2011-11-26 10:45:31 +01:00
INSTALLATION INSTRUCTIONS
-------------------------
Install the following libraries:
apt-get install zip
apt-get install php-pear
pear install Crypt_GPG # need version >1.3.0
2012-06-08 17:03:27 +02:00
pear install Net_GeoIP
# ideally make sure geoip database is updated using crontab
#wget 'http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz'
#gunzip GeoIP.dat.gz
TODO rewrite instructions using git clones and git submodules
2012-06-08 17:03:27 +02:00
# Download CakePHP from github
cd /opt/
git pull https://github.com/cakephp/cakephp.git
chmod -R 755 /opt/cakephp
2012-06-08 17:03:27 +02:00
# Download CyDefSIG using git in the /var/www/ directory.
cd /var/www/
2012-06-08 17:03:27 +02:00
git clone git@code.lab.modiss.be:cydefsig.git
2012-06-08 17:03:27 +02:00
# Check if the permissions are set correctly using the following commands as root:
chown -R <user>:www-data /var/www/cydefsig
chmod -R 750 /var/www/cydefsig
chmod -R g+s /var/www/cydefsig
cd /var/www/cydefsig/app/
2011-11-26 10:45:31 +01:00
chmod -R g+w tmp
chmod -R g+w files
2011-11-26 10:45:31 +01:00
# Import the empty MySQL database from /var/www/cydefsig/app/MYSQL.sql using phpmyadmin or mysql>.
2012-06-08 17:03:27 +02:00
# Now configure your apache server with the DocumentRoot /var/www/cydefsig/app/webroot/
2012-06-08 17:03:27 +02:00
# Configure the fields in the files:
2012-03-27 09:31:41 +02:00
database.php : login, port, password, database
bootstrap.php: CyDefSIG.*, GnuPG.*
core.php : debug,
2012-06-08 17:03:27 +02:00
webroot/index.php : CAKE_CORE_INCLUDE_PATH (optional for multi-cydefsig installations)
2012-03-27 09:31:41 +02:00
2012-06-08 17:03:27 +02:00
# Generate a GPG encryption key.
mkdir /var/www/cydefsig/.gnupg
chown www-data:www-data /var/www/cydefsig/.gnupg
chmod 700 /var/www/cydefsig/.gnupg
sudo -u www-data gpg --homedir /var/www/cydefsig/.gnupg --gen-key
2012-06-08 17:03:27 +02:00
# And export the public key to the webroot
sudo -u www-data gpg --homedir .gnupg --export --armor no-reply > app/webroot/gpg.asc
# Create the Role Based Access Control (RBAC) tables and content:
cd /var/www/cydefsig/app
./Console/cake schema create DbAcl
./Console/cake acl create aco root controllers
./Console/cake AclExtras.AclExtras aco_sync
./Console/cake populate0_2_3
2012-06-08 17:03:27 +02:00
2012-03-27 09:31:41 +02:00
Now log in using the webinterface:
2012-03-15 15:10:24 +01:00
The default user/pass = admin@admin.test/admin
2012-03-27 09:31:41 +02:00
2012-01-18 15:30:36 +01:00
Don't forget to change the email, password and authentication key after installation.
2011-12-11 16:59:35 +01:00
2012-03-27 09:31:41 +02:00
UPDATE INSTRUCTIONS
-------------------
To be sure, dump your database before updating.
CyDefSIG from 0.2.2 to 0.2.3 needs a database migration and population.
This is done executing /var/www/cydefsig/app/Console/shell/migrate-0.2.2-0.2.3.sh
and answer (y)es to all the questions asked
and afterward run http://<host>:<port>/events/migratemisp11to2/<your org>
with <your org> being MIL.BE or NCIRC where appropriate.
Import the regexp data in /var/www/cydefsig/app/MYSQL.regexp.sql using phpmyadmin or mysql>.
2011-12-11 16:59:35 +01:00
Recommended patches
-------------------
By default CakePHP exposes his name and version in email headers. Apply a patch to remove this behavior.
Multiple instances on a single server
-------------------------------------
If you want to install multiple instances on a single server, extract the CakePHP sources
in a central location like /opt/cakephp.
Then edit /var/www/cydefsig/app/webroot/index.php and change :
define('CAKE_CORE_INCLUDE_PATH', '/opt/cakephp/lib');