validate_rules
Validate that Sigma rules parse and compile cleanly: parse, build the detection engine, and check correlation references.
Instructions
Validate 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). Accepts inline yaml or a file/directory path.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a Sigma file or directory. Mutually exclusive with `yaml`. | |
| yaml | No | Inline Sigma YAML. Mutually exclusive with `path`. | |
| pipelines | No | Processing pipelines (builtin names like `ecs_windows` or file paths). | |
| fail_level | No | Lowest parse diagnostic severity that makes `ok` false: `error` (default) or `warning`. | |
| resolve_sources | No | Resolve dynamic pipeline sources (file/command/HTTP) during validation. |