Using RITA for Threat Analysis

Published: 2018-07-29
Last Updated: 2018-07-29 15:16:08 UTC
by Guy Bruneau (Version: 1)
2 comment(s)

I installed and tested this open source framework called Real Intelligence Threat Analytics (RITA) that was recently updated against my BRO logs. It supports some interesting features such as: [2]

Beaconing Detection
DNS Tunneling Detection
Blocklist Checking
URL Length Analysis
Scanning Detection

"This open source project, born from Black Hills Information Security, is now developed, funded and supported by Active CounterMeasures". A full description of RITA's capabilities and the code is available here.

I used the automated script ( with CentOS 7 which I download from here. The installation is straight forward and it verified my setup to make sure everything is installed on my box.

After the installation, I edited the configuration file and changed the default (/etc/rita/config.yaml) and confirmed the following:

  • RitaLogPath: /var/lib/rita/logs     <- Default RITA logs location
  • ImportDirectory: /data/bro/logs/  <- Default BRO logs
  • DBRoot: "bro"                             <- I changed the default RITA to bro (or anything you like)

Next I got a Google Safe Browsing API key [4] and followed the API setup instructions here and added it to the rita config file.

  • APIKey: ""                                 <- Added my Google SafeBrowsing key

My next step is to import my Bro logs into the database with the command:

  • rita import                                 <- From default config file logs

RITA Parsing Bro logs

If you want to import a single day, use the following command:

  • rita import /data/bro/logs/2018-07-27 bro-2018-07-27

Show what is available now:

  • rita show-databases

Now we can analyze a day of Bro traffic as follow:

  • rita analyze bro-2018-07-27

RITA Analysis of logs

Last step, lets create a web report that can be easily viewed with a browser:

  • rita html-report bro-2018-07-27

[guy@rocknsm ~]# rita html-report bro-2018-07-27
[-] Writing: /home/guy/bro-2018-07-271/bro-2018-07-27
[-] Wrote outputs, check /home/guy/bro-2018-07-27 for files


If at some point you want to delete a day of data, use the following command in your home directory:

  • rita delete-database bro-2018-07-27

If you are interested to see this tool in action, check out John Strand's YouTube video here.


Guy Bruneau IPSS Inc.
Twitter: GuyBruneau
gbruneau at isc dot sans dot edu

2 comment(s)


Such a shame that RITA only supports tsv formatted logfiles. My BRO setup and the majority only logs as JSON.

Allowing additional input formats would be great.

A part from that I really liked the article. Thanks for sharing.
There is already a feature request for this in RITA:

Diary Archives