This guide walks through installing several components.
Installing Bro is recommended. RITA needs Bro logs as input so if you already have Bro or its logs you can skip installing Bro.
- Follow the directions at https://zeek.org/get-zeek/.
- Use the quick start guide to configure.
RITA requires Mongo for storing and processing data. The current recommended version is 3.6, but anything >= 3.2.0 and < 3.7.0 should work.
- Follow the MongoDB installation guide at https://docs.mongodb.com/manual/installation/
- Alternatively, this is a direct link to the download page
- Ensure MongoDB is running before running RITA.
You have a few options for installing RITA.
- The main install script. You can disable Bro and Mongo from being installed with the
--disable-bro
and--disable-mongo
flags. - A prebuilt binary is available for download on RITA's release page. In this case you will need to download the config file from the same release and create some directories manually, as described below in the "Configuring the system" section.
- Compile RITA manually from source. See below.
In order to compile RITA manually you will need to install both Golang and Dep.
- Install Golang using the instructions at https://golang.org/doc/install
- After the install you need to create a local Go development environment for your user. This is typically done in
$HOME/go
which is what the directions here will use.mkdir -p $HOME/go/{src,pkg,bin}
- Now you must add the
GOPATH
to your .bashrc file. You will also want to add your bin folder to the path for this user.echo 'export GOPATH="$HOME/go"' >> $HOME/.bashrc
echo 'export PATH="$PATH:$GOPATH/bin"' >> $HOME/.bashrc
source $HOME/.bashrc
- Install the depenency manager dep using these instructions
At this point you can build RITA from source code.
go get github.com/activecm/rita
orgit clone https://github.com/activecm/rita.git $GOPATH/src/github.com/activecm/rita
cd $GOPATH/src/github.com/activecm/rita
make
(Note that you will need to havemake
installed. You can use your system's package manager to install it.)
This will yield a rita
binary in the current directory. You can use make install
to install the binary to /usr/local/bin/rita
or PREFIX=/ make install
to install to a different location (/bin/rita
in this case).
RITA requires a few directories to be created for it to function correctly.
sudo mkdir /etc/rita && sudo chmod 755 /etc/rita
sudo mkdir -p /var/lib/rita/logs && sudo chmod -R 755 /var/lib/rita
Copy the config file from your local RITA source code.
sudo cp $GOPATH/src/github.com/activecm/rita/etc/rita.yaml /etc/rita/config.yaml && sudo chmod 666 /etc/rita/config.yaml
At this point, you can modify the config file as needed and test using the rita test-config
command. There will be empty quotes or 0's assigned to empty fields. RITA's readme has more information on changing the configuration.