Real Intelligence Threat Analytics
Table of Contents
Real Intelligence Threat Analytics
Description
Developed by Active Countermeasures, RITA is a specialized tool for threat hunters. While traditional Intrusion Detection Systems (IDS) rely on signatures of known malware, RITA looks for behaviors and statistical anomalies in network metadata.
It is particularly effective at finding "beacons"—regular, automated heartbeats sent from a compromised internal host to an attacker's external server.
Core Detection Capabilities
RITA analyzes network logs to identify several specific threat indicators:
- Beaconing Detection: Uses statistical analysis to find periodic connections. It looks for consistent "sleep" intervals between connections, which is a hallmark of C2 agents like Cobalt Strike or Metasploit.
- Long Connections: Identifies persistent TCP connections that stay open for unusually long periods, which may indicate data exfiltration or a persistent tunnel.
- DNS Tunneling: Detects anomalies in DNS queries, such as a high volume of subdomains or unusually large TXT records, often used to bypass firewalls.
- Blacklist Checking: Cross-references connection data against known malicious IP addresses and domains.
How it Works
RITA does not capture packets directly. Instead, it processes logs generated by Zeek. The typical workflow is:
- Capture: Zeek monitors network traffic and generates structured text logs.
- Ingest: RITA imports these logs into a MongoDB database.
- Analysis: RITA runs mathematical algorithms (like K-means clustering) over the data to find patterns.
- Reporting: RITA outputs a ranked list of suspicious internal hosts.
Examples
. Analyzing Zeek Logs
After capturing traffic with Zeek, you can import the logs into a RITA dataset for analysis.
# Import Zeek logs into a RITA dataset named 'client_audit' rita import /opt/zeek/logs/current/ client_audit # Run the analysis engine rita analyze client_audit
2. Hunting for Beacons
The most common use for RITA is the show-beacons command, which ranks potential C2 heartbeats by a "score" (from 0 to 1).
# Display top potential beacons discovered in the dataset rita show-beacons client_audit
Interpreting the Output: If you see a host with a score of 0.95+ connecting to an external IP every 30 seconds with a very low "jitter" (variance), you have likely found a compromised machine talking to a C2 server.
3. etecting NS Anomalies
RITA can identify if a host is making an excessive amount of unique DNS requests, a common sign of a "phone home" or tunneling attempt.
# Show hosts with suspicious DNS activity rita show-dns client_audit