fix_rules
Apply safe auto-fixes to Sigma YAML rules, correcting lowercase keys, typos, and duplicates while preserving formatting. Returns counts of applied, failed, and skipped-unsafe fixes.
Instructions
Apply safe auto-fixes (lowercase keys, status/level typos, duplicate removal, ...) to Sigma YAML, preserving comments and formatting. Returns the fixed YAML and applied/failed/skipped-unsafe counts. Unsafe fixes are never auto-applied. With write: true (only valid with a file path) the change is persisted to disk. Optional lint_rules restricts which lint rules are fixed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Path to a single Sigma YAML file. Mutually exclusive with `yaml`. | |
| yaml | No | Inline Sigma YAML. Mutually exclusive with `path`. | |
| write | No | Persist the fixed YAML back to disk. Only valid with a `path` input. | |
| lint_rules | No | Restrict fixes to these lint rule ids (e.g. `non_lowercase_key`). Empty means apply every available safe fix. |