reverse_convert
Convert a Lucene/SIEM query into a draft Sigma rule (YAML) skeleton. Provide metadata like title, id, level, and logsource to build a reviewable rule.
Instructions
Reverse-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 logsource_product/category/service; the result is a reviewable skeleton. Boosting, fuzzy/proximity, and non-numeric ranges are reported as errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Rule id (UUID). | |
| level | No | Rule level: informational, low, medium, high, or critical. | |
| query | Yes | The query to convert. | |
| title | No | Rule title (recommended; a query has no title of its own). | |
| status | No | Rule status: stable, test, experimental, deprecated, or unsupported. | |
| dialect | No | Source query dialect. Defaults to `lucene` (the only dialect today). | |
| logsource_product | No | Logsource product (e.g. windows). | |
| logsource_service | No | Logsource service (e.g. sysmon). | |
| logsource_category | No | Logsource category (e.g. process_creation). |