reverse_convert
Convert a Lucene or SIEM query into a draft Sigma rule (YAML) for review, adding required metadata like title, level, and logsource.
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 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "reverse_convert"
}
}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). |