Skip to content

Report duplicate rule names when validating collections - #621

Merged
thomaspatzke merged 1 commit into
SigmaHQ:mainfrom
bingdongni:feat/validate-rule-names
Nov 22, 2026
Merged

thomaspatzke merged 1 commit into
SigmaHQ:mainfrom
bingdongni:feat/validate-rule-names

Conversation

@bingdongni

Copy link
Copy Markdown
Contributor

Correlation rules can reference another rule by name. If two rules define the same name, the collection's name lookup keeps only the last entry. Distinct titles and UUIDs still pass their existing uniqueness checks.

Add duplicate_name to the validator registry. It reports one issue per repeated name with all rules that define it, including correlation rules. Rules without a name are skipped. The regression test selects the validator through the normal configuration path and checks a collection containing both detection and correlation rules.

The Sigma rule specification requires names used for references to be unique.

Linux CPU tests · Windows CPU comparison

@thomaspatzke
thomaspatzke merged commit 279b55d into SigmaHQ:main Nov 22, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants