Purpose: RSigma is a detection engineering toolkit for the Sigma detection standard, implemented in Rust, covering rule authoring, validation, evaluation, conversion, and streaming execution.
Main capabilities: Parse Sigma YAML into a strongly typed AST, compile into optimized matchers, and evaluate events in real time; supports stateless detection and stateful correlation (sliding/tumbling/session windows, group-by, chaining, suppression). The built-in linter provides 90 checks based on the Sigma v2.1.0 specification, four severity levels, suppression, and automatic fixes for 14 security rules; the LSP server provides diagnostics, completions, hover documentation, and quick fixes in editors. Supports rule conversion to backend-native queries (native PostgreSQL/TimescaleDB, LynxDB, Fibratus, and delegation to 30+ pySigma backends via sigma-cli). The streaming daemon supports hot reload, Prometheus metrics, stdin/HTTP/NATS/OTLP/Unix socket inputs, and multiple asynchronous sinks. It also provides rule drafting, rule tuning, corpus backtesting, ATT&CK coverage export, risk alerting, alert pipelines, Webhook alerting, field catalogs, and other capabilities.
How to use: Precompiled binaries for Linux/macOS/Windows can be downloaded from GitHub Releases, or installed from crates.io, or built from source; multi-architecture Docker images are provided. The MCP server can be exposed via stdio to AI agents such as Cursor and Claude Code, invoking structured tools such as parse_rule, lint_rules, validate_rules, evaluate_events, convert_rules, and list_fields.
Use cases: Detection rule development and CI gates, pre-SIEM rule validation, forensics, real-time log detection and correlation, threat intelligence injection, and detection coverage assessment.
Limitations: The materials do not provide specific pricing or fee information; some capabilities (such as array matching) are marked as experimental and must be enabled via sigma-version: 3; the capture ring is not persisted.