parse_rule
Parse Sigma YAML rules, correlations, and filters into structured AST JSON or return parse errors. Accepts inline YAML or file path.
Instructions
Parse 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a Sigma YAML file (or directory, where the tool supports it). Mutually exclusive with `yaml`. Resolved against `--rules-dir` when relative. | |
| yaml | No | Inline Sigma YAML (single or multi-document). Mutually exclusive with `path`. |