SuperAPIAI Directory

wrg-sigma-rules

github.com · AI security

Write, validate and convert Sigma detection rules for Splunk, Elastic, Kibana and Wazuh, backed by a rule corpus covering MITRE ATT&CK tactics.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose: For detection engineering, it helps MCP-enabled clients draft, validate, and convert Sigma rules. It does not deploy detections, collect telemetry, provide hosted services, or claim that generated rules are production-ready.

Main capabilities: draft_rule turns natural-language descriptions into Sigma YAML skeletons; validate_rule validates rules with pySigma plus best-practice linters; convert_rule compiles rules into Splunk, Elastic, OpenSearch, or Kibana queries. The corpus contains 294 rules across 16 categories, covering ransomware, threat actor activity, and vulnerabilities disclosed in AI/LLM applications and MCP servers.

Usage: It can be installed from this repository as a Claude Code plugin. Codex, Cursor, and other MCP clients use the same server. Installation steps are in docs/install.md. The repository root can validate and convert corpus rules end to end. Three Claude Code skills are provided: sigma-rule-writer, sigma-rule-reviewer, and threat-coverage-gap-analyzer.

Rule organization: Each rule is located in resources/examples/<tactic>/, organized by MITRE ATT&CK Enterprise tactic (v19 names), with an additional code_review directory. Rules are divided into template_* (adaptable canonical detection forms) and observed_* (derived from specific cited incidents). INDEX.json enumerates all rules, and the wrg-sigma://coverage/mitre-attack-matrix resource computes the technique x tactic distribution at read time.

Limitations: Conversion is based on pySigma 1.x, with targets including Splunk SPL, Elastic/Kibana Lucene, Elastic ES|QL and EQL, OpenSearch Lucene and PPL, and the wazuh target that reuses the Elasticsearch Lucene backend. Lucene-family targets cannot express Sigma correlation rules, and convert_rule reports this as a capability gap. Correlation conversion annotates semantic deviations, for example opensearch-ppl discards the time window of count correlations, and eql turns distinct count into a single-value join. None of the corpus rules are marked stable and should be treated as starting points that need to be bound to your own log sources and tuned.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools