About Rsigma
Rsigma is an MCP server published by timescale in the Files category: a complete Sigma detection engineering toolkit: parser, linter, formatter, evaluator, correlation engine, conversion framework, streaming daemon, MCP and LSP servers :crab:. Conduid read 24 tools from its source: author_ads, convert_rules, create_silence, evaluate_events, fix_rules, format_rules and 18 more. No package is published for it, so it installs from a source checkout.
The repository has 200 stars and 26 forks, is licensed MIT, and its last commit was on 2 Dec 2026. The latest release is v0.27.0 (12 Nov 2026): TL;DR RSigma v0.27.0 adds rsigma rule fmt, a Sigma formatter that keeps comments, adds canonicalizing pipelines for ECS Linux, Splunk CIM, OCSF, and CrowdStrike Falcon,… It follows v0.26.0 (2 Nov 2026), and the 5 most recent releases go back to v0.23.0 (30 Sep 2026). It passes all 4 static checks Conduid ran on the repository. Its topics include backend, converter, correlation, detection, fibratus and linter.
Install
git clone https://github.com/timescale/rsigmaTools (24)
author_adsReport each detection rule's ADS (Alerting and Detection Strategy) sections, the required sections it is missing under the active config, and a scaffolded `rsigma.ads.*` template to complete. Accepts inline `yaml` or a file `path`.convert_rulesConvert Sigma rules to backend-native queries. `target` is one of postgres/lynxdb/fibratus (native); when the server runs with --allow-sigma-cli, any other target is delegated to an installed sigma-cli, reaching the full pySigma backend set. Provide exactly one of inline `yaml`, a file/directory `path`, or a named `ruleset` from the server's configuration; optional `pipelines`, `format`, backend `options`, and `skip_unsupported`.create_silenceCreate a silence on the configured rsigma daemon (POST /api/v1/silences). matchers are required. Supply exactly one of ends_at (RFC 3339) or duration (humantime, converted at call time); unbounded silences are refused. The daemon also requires an = matcher on rule, match.<field>, or correlation.group_key.<field>, and caps the window at its max_silence_duration (default 720h). An optional id is pre-checked against the silence list so a retried create is a no-op.evaluate_eventsEvaluate JSON events against Sigma rules and return matches. Detection-only rules use the stateless engine; collections with correlations use the stateful correlation engine. Provide exactly one of inline `yaml`, a file/directory `path`, a named `ruleset`, or several `rulesets` from the server's configuration; events via an inline `events` JSON array or an NDJSON `events_path`. Optional `pipelines` and `match_detail` (off/summary/full). Results fired at the end of input, such as an absence correlation that reached its deadline, carry `event_index: null`.fix_rulesApply safe auto-fixes (lowercase keys, status/level typos, duplicate removal, ...) to Sigma YAML, preserving comments and formatting. Returns the fixed YAML and applied/failed/skipped-unsafe counts. Unsafe fixes are never auto-applied. With `write: true` (only valid with a file `path`, and only when the server runs with --rules-dir) the change is persisted to disk. Optional `lint_rules` restricts which lint rules are fixed.format_rulesRewrite Sigma YAML into the canonical layout: four-space indentation, block collections, canonical key order, and normalized scalar quoting. Comments keep their text and their attachment, and anchors, aliases, tags, and directives are preserved. A semantic guard reparses the result and refuses the rewrite unless YAML values, parsed rules, correlations, filters, parser diagnostics, comment attachment, anchors, aliases, tags, directives, and action values all match. Returns the formatted YAML and whether it changed. Non-Sigma documents are reported as skipped. With `write: true` (only valid with a file `path`, and only when the server runs with --rules-dir) the change is persisted to disk.get_incidentFetch one open incident from the configured rsigma daemon (GET /api/v1/incidents/{id}). Unknown ids return a 404 content error; a daemon without grouping returns 503.get_incident_bundleFetch the evidence bundle for one open incident from the configured rsigma daemon (GET /api/v1/incidents/{id}/bundle). Joins the incident to its rules' documentation and overlapping risk entities. format is json (default) or markdown.get_rule_qualityFetch the per-rule quality view from the configured rsigma daemon (GET /api/v1/dispositions). Passes through window_seconds, numerator, and min_sample. Optional rule_id filters client-side. A 503 content error means dispositions are disabled on the daemon.lint_rulesLint Sigma rules against the specification, returning findings with lint rule id, severity, message, line, and whether an auto-fix is available. Accepts inline `yaml`, a file `path`, or a directory `path`.list_backendsList available conversion backends (targets) with their output formats and correlation methods. When the server runs with --allow-sigma-cli, installed sigma-cli targets are appended with engine "sigma-cli".list_builtin_pipelinesList the builtin processing pipelines with their priority and shape.list_fieldsList the event fields referenced by Sigma rules, with provenance (which rules and source kinds reference each field). Optional `pipelines` are applied first so the field names match what the engine evaluates. Provide exactly one of inline `yaml`, a file/directory `path`, or a named `ruleset` from the server's configuration.list_incidentsList open incidents from the configured rsigma daemon (GET /api/v1/incidents). Optional min_level (informational/low/medium/high/critical) and limit trim the list client-side. Returns the incidents array plus count.list_risk_entitiesList open risk entities from the configured rsigma daemon (GET /api/v1/risk). Empty when no risk accumulator is configured; the response then includes a note so that is not mistaken for a clean estate.list_silencesList operator silences from the configured rsigma daemon (GET /api/v1/silences). Each entry includes origin (static/api) and derived state (pending/active/expired).parse_conditionParse a Sigma condition expression (e.g. `selection and not 1 of filter_*`) into a parse-tree as JSON, or return a structured parse error.parse_ruleParse Sigma YAML (rules, correlations, filters; multi-document supported) into a structured AST as JSON, or return structured parse errors. Accepts inline `yaml` or a file `path`.post_dispositionRecord an analyst disposition on the configured rsigma daemon (POST /api/v1/dispositions). verdict is required. Supply fingerprint (detection scope) or incident_id (incident scope) so a retry is counted as a duplicate rather than a second verdict. Returns the ingest summary (accepted/duplicate/rejected).resolve_pipelineResolve a processing pipeline (a builtin name like `ecs_windows` or a YAML file path) and report its name, priority, transformations, and dynamic sources. With `resolve_sources`, dynamic file/command/HTTP sources are resolved and their data keys reported.reverse_convertReverse-convert a SIEM query into a draft Sigma rule (YAML). `dialect` selects the source query language (`lucene` today, the Lucene / Elasticsearch query_string subset: field:value with wildcards, quoted phrases, /regex/, [a TO b] ranges, comparison shorthand, field:(a OR b) groups, _exists_, keyword terms, and AND/OR/NOT with grouping). A query carries no metadata, so pass title/id/level/status and at least one of logsource_product/category/service, which a Sigma rule requires; the result is a reviewable skeleton. Boosting, fuzzy/proximity, and non-numeric ranges are reported as errors.test_exemplarsReplay embedded rsigma.exemplars on Sigma detection and correlation rules and return pass/fail results. Provide exactly one of inline `yaml`, a `path` confined to `--rules-dir`, or a named `ruleset` from the server's configuration. Optional `pipelines` are builtin names or confined YAML files. Shape, identity, and reference problems are configuration errors; a failed assertion is a finding, not a load error.tune_rulesPropose a spec-native Sigma filter rule from false-positive and true-positive JSON event arrays. Rules come from inline `yaml` or a `path` confined to `--rules-dir`; select the target with `rule` when needed. Optional `pipelines` transform the target before tuning. The result includes filter YAML, field rationale, clusters, coverage, and closed before/after verification. No proposal may suppress a true positive.validate_rulesValidate that Sigma rules parse and compile cleanly: parse, build the detection engine, and check correlation references. Optional `pipelines`, `resolve_sources` (resolve dynamic sources), and `fail_level` (`error` by default; `warning` also fails on parse warnings such as an invalid `status`). Provide exactly one of inline `yaml`, a file/directory `path`, or a named `ruleset` from the server's configuration.Security checks
- ✓README presentThe repository's README runs to about 2.7K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
2 checks have not been run yet.
Releases
README
The repository's README runs to about 2.7K words, fetched 13 days ago. The original in the repository is authoritative.
Read full README