Coder Social home page Coder Social logo

activecm / rita Goto Github PK

View Code? Open in Web Editor NEW
118.0 3.0 13.0 176.33 MB

Real Intelligence Threat Analytics (RITA) is a framework for detecting command and control communication through network traffic analysis.

Home Page: https://www.activecountermeasures.com/free-tools/rita/

License: GNU General Public License v3.0

Dockerfile 0.21% Makefile 0.03% Go 91.61% Shell 6.29% Python 1.86%
beacons blue-team c2 command-and-control cyber-security network-traffic-analysis threat-hunting zeek log-analysis anomaly-detection incident-response network-monitoring threat-intelligence intrusion-detection security-tools c2-detection

rita's Introduction

RITA (Real Intelligence Threat Analytics)

RITA Logo

If you get value out of RITA and would like to go a step further with hunting automation, futuristic visualizations, and data enrichment, then take a look at AC-Hunter.

Sponsored by Active Countermeasures.


RITA is an open source framework for network traffic analysis.

The framework ingests Zeek Logs in TSV or JSON format, and currently supports the following major features:

  • Beaconing Detection: Search for signs of beaconing behavior in and out of your network
  • Long Connection Detection: Easily see connections that have communicated for long periods of time
  • DNS Tunneling Detection: Search for signs of DNS based covert channels
  • Threat Intel Feed Checking: Query threat intel feeds to search for suspicious domains and hosts

Quick Start

Please see our recommended System Requirements.

  1. Download the RITA Installer for the desired version.

  2. Uncompress the installer tarfile.

    tar -xf rita-<version>-installer.tar.gz
    
  3. Run the install script.

    ./rita-<version>-installer/install_rita.sh <hosts to install on>
    

    To install RITA on the local system, pass localhost to the installer. To install RITA on one or more remote systems, pass a comma separated list of IPs or user@ip or FQDNs to the installer. For example:

    ./rita-<version>-installer/install_rita.sh "[email protected],8.8.8.8,mydomain.com"
    

Supported Platforms

  • ✅: Official Support
  • ⚠️: Unofficial Support
  • ❌: Unsupported
OS Versions Platform Status
CentOS 9 Stream amd64
Rocky 9 amd64
Ubuntu 24.04 amd64
Windows

Installing Zeek

If you do not already have Zeek installed, it can be installed from docker-zeek.

sudo wget -O /usr/local/bin/zeek https://raw.githubusercontent.com/activecm/docker-zeek/master/zeek

sudo chmod +x /usr/local/bin/zeek

zeek start

Importing

Import data into RITA using the import command:

rita import --database=mydatabase --logs=~/mylogs

database is what you would like to name the dataset

logs is the path to the Zeek logs you wish to import

For datasets that should accumulate data over time, with the logs containing network info that is current (less than 24 hours old), use the --rolling flag during creation and each subsequent import into the dataset. The most common use case for this is importing logs from the a Zeek sensor on a cron job each hour.

Note: For datasets that contain over 24 hours of logs, but are over 24 hours old, simply import the top-level directory of the set of logs without the --rolling flag. Importing these logs with the --rolling flag may result in incorrect results.

To destroy and recreate a dataset, use the --rebuild flag.

Configuration

See Configuration for details on adjusting scoring.

Searching

RITA follows a GitHub-style search syntax. Each field follows the <field>:<value> format, with each search criteria separated by a space. For example:

src:192.168.88.2 dst:165.227.88.15 beacon:>=90 sort:duration-desc

Supported Search Fields

Column Field Operators Data Type
Severity severity critical|high|medium|low
Source src IP address
Destination dst IP address, FQDN
Beacon Score beacon >, >=, <, <= whole number
Duration duration >, >=, <, <= string, ex:(2h45m)
Subdomains subdomains >, >=, <, <= whole number
Threat Intel threat_intel true|false

Supported Sort Fields

The sort syntax is sort:<column>-<sort direction>, with the sort direction being asc for ascending or desc for descending.

Supported Columns:

  • severity
  • beacon
  • duration
  • subdomains

CSV Output

To output the results to CSV instead of viewing them within the terminal UI, pass the --stdout or -o flag to the view command:

The flag must be before the name of the dataset.

rita view --stdout mydataset

Terminal UI Color Support

The terminal UI (TUI) supports colorful output by default. It does not need to be enabled.

Check the value of the "$TERM" variable, this should be xterm-256color. If it is not, please set this variable in your OS's version of a ~/.bash_profile, ~/.profile, etc.

Depending on the color theme of your terminal, the TUI will adjust to either a light mode or a dark mode.

If you're really fancy and like pretty colors, consider using the Catpuccin theme!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.