rbat
rbat is a high-performance, terminal-native binary analysis tool designed for security researchers, malware analysts, and reverse engineers. It provides a comprehensive suite of static analysis tools to identify potential threats, analyze binary structures, and evaluate risk levels across multiple executable formats.
Features
- Multi-Format Support: Native parsing for ELF, PE, and Mach-O binaries.
- Dynamic Risk Scoring: Heuristic-based risk assessment that calculates a threat level based on entropy, suspicious imports, and behavior patterns.
- Rich TUI Dashboard: An interactive terminal interface for navigating findings, metadata, and security recommendations.
- Entropy Heatmaps: Visualizes section-level entropy to detect packed code, encrypted payloads, or hidden data.
- YARA Integration: Built-in scanning for packer signatures and suspicious patterns using customized, embedded YARA rules.
- Multi-Format Reporting: Export analysis results to PDF reports (with heatmaps), CSV logs, or JSON for automated pipelines.
Installation
Add this to your Cargo.toml:
[]
= "0.2.0"
Quick Start
The following is a minimal example demonstrating how to run a programmatic static analysis on a target binary and retrieve its risk assessment score:
use Path;
use analyze_batch;
Usage Examples
Programmatic Streaming Analysis
You can consume analysis updates as they occur (e.g., to feed a progress bar or custom logger) using analyze_streaming:
use Path;
use analyze_streaming;
use AnalysisProgress;
Report Generation
Generate formatted PDF, CSV, or JSON analysis reports:
use Path;
use analyze_batch;
use ;
CLI Mode
Alternatively, run rbat as a command-line application.
Analyze a binary and display the interactive dashboard:
Generate reports and save them to a directory:
Links
License
This project is licensed under the MIT License. See the LICENSE file for details.