MISP/app
noud 7171b5027e correlation
if second attribute, create the reverse correlation as well.
2012-11-14 11:28:42 +01:00
..
Config RBAC 2012-11-08 14:19:50 +01:00
Console install. 2012-10-29 16:49:53 +01:00
Controller terms 2012-11-14 10:52:53 +01:00
Lib Migration to CakePHP 2.1. 2012-03-15 15:06:45 +01:00
Locale/eng/LC_MESSAGES Migration to CakePHP 2.1. 2012-03-15 15:06:45 +01:00
Model correlation 2012-11-14 11:28:42 +01:00
Plugin Audit log 2012-10-31 15:34:43 +01:00
Vendor Migration to CakePHP 2.1. 2012-03-15 15:06:45 +01:00
View RBAC 2012-11-13 14:34:37 +01:00
files Implemented file-upload of attachment or password protected 2012-03-23 20:04:22 +01:00
technical_design DataBase migrate, Audit and Access Control granulation. 2012-06-28 17:24:12 +02:00
tmp Merge branch 'master' into develop 2012-09-17 13:02:53 +02:00
webroot Change to the user manual 2012-11-09 15:32:39 +01:00
.htaccess Migration to CakePHP 2.1. 2012-03-15 15:06:45 +01:00
BUGS.txt Extra bug. 2012-08-24 14:10:20 +02:00
LICENSE Print Cascading Stylesheets and minor layout fixes 2012-03-25 15:02:15 +02:00
MYSQL.correlation.sql correlation 2012-11-13 14:13:38 +01:00
MYSQL.private.sql Private. 2012-10-18 11:40:12 +02:00
MYSQL.role.sql RBAC 2012-11-08 14:09:52 +01:00
MYSQL.servers.sql SQL 2012-10-29 16:51:14 +01:00
MYSQL.txt correlation 2012-11-13 14:13:38 +01:00
MYSQL.whitelist.sql Whitelist. 2012-08-06 10:42:46 +02:00
README.sysop.txt Audit log 2012-09-25 11:43:20 +02:00
README.txt Crypt_GPG 2012-10-23 17:27:50 +02:00
README.ubuntu.txt DataBase migrate, Audit and Access Control granulation. 2012-06-28 17:24:12 +02:00
README.vhost.txt fix document-root location (security) 2012-08-31 09:06:29 +02:00
index.php CakePHP 2012-09-25 15:41:58 +02:00

README.txt

                                                                     
TODOs v0.2.2 to v0.2.3
-----

DB Update
- UpdateShell with in/out

Auth
- Prevent bruteforce auth attempts

Acl
- inactive buttons
	- must be non-clickable.
	- JavaScript include.
	- DOM read and disable button_offXX.
- clean-up to first cut.
	- saveAcl, from GroupsController to AppController and inherit to *Controllers.

auditing/logging system
- logins
	- add source IP (headers,...);
	- failed logins.

Security
- force cookie reset after login


INSTALLATION INSTRUCTIONS
-------------------------
Install the following libraries:
apt-get install zip
apt-get install php-pear
pear install Crypt_GPG    # need version >1.3.0 
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

# Download CakePHP from github
cd /opt/
git pull https://github.com/cakephp/cakephp.git
chmod -R 755 /opt/cakephp


# Download CyDefSIG using git in the /var/www/ directory. 
cd /var/www/
git clone git@code.lab.modiss.be:cydefsig.git 


# 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/
chmod -R g+w tmp
chmod -R g+w files

# If installed Crypt_GPG and created it's homedir:
chown -R www-data:www-data /var/www/cydefsig/.gnupg
chmod -R u+rwx,go-rwxs /var/www/cydefsig/.gnupg

# Import the empty MySQL database in /var/www/cydefsig/app/MYSQL.txt using phpmyadmin or mysql>.

# Now configure your apache server with the DocumentRoot /var/www/cydefsig/app/webroot/


# Configure the fields in the files:
database.php : login, port, password, database
bootstrap.php: CyDefSIG.*, GnuPG.*
core.php : debug, 
webroot/index.php : CAKE_CORE_INCLUDE_PATH   (optional for multi-cydefsig installations)

# 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

# And export the public key to the webroot
sudo -u www-data gpg --homedir .gnupg --export --armor no-reply > app/webroot/gpg.asc



Now log in using the webinterface:
The default user/pass = admin@admin.test/admin 

Don't forget to change the email, password and authentication key after installation.



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.



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');