fix_rules
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.
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, and only when the server runs with --rules-dir) 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, and only when the server has a rules root (`--rules-dir`). | |
| lint_rules | No | Restrict fixes to these lint rule ids (e.g. `non_lowercase_key`). Empty means apply every available safe fix. |