Skip to content

feat: add 6 new sigmahq validators - #78

Closed
frack113 wants to merge 14 commits into
SigmaHQ:mainfrom
frack113:add-missing-validators
Closed

feat: add 6 new sigmahq validators#78
frack113 wants to merge 14 commits into
SigmaHQ:mainfrom
frack113:add-missing-validators

Conversation

@frack113

@frack113 frack113 commented Aug 14, 2026

Copy link
Copy Markdown
Member

Summary

Add 6 new validators to cover additional SigmaHQ rule conventions:

New Validators

Validator Description
sigmahq_trademark Titles must not contain trademarked terms (e.g. Microsoft, Windows, PowerShell)
sigmahq_source_eventlog EventLog products must specify a source/eventlog
sigmahq_license metadata.license must be a known SPDX identifier
sigmahq_event_id_process_creation EventID 1/4688 requires process_creation category
sigmahq_selection_single_value Single-item lists must be on one line
sigmahq_selection_alphabetical_order Multi-item lists must be sorted alphabetically

Tests

  • 299 tests passing
  • 2407 real SigmaHQ Windows rules validated
  • README updated with complete validator list

Checklist

  • Tests added
  • Tests passing
  • Ruff formatting applied
  • CI green

Checks if rule titles contain trademarked terms ('MITRE ATT&CK', 'ATT&CK')
that should not be used.
Checks if a detection contains 'source: eventlog' which is redundant.
Uses recursive detection tree traversal to handle nested SigmaDetection.
Checks if a rule has a malformed 'license' field (must be a string).
Skips correlation rules consistent with other sigmahq validators.
Checks if a rule uses EventID 1 or 4688 with Provider_Name
(Microsoft-Windows-Security-Auditing, Microsoft-Windows-Sysmon)
instead of the process_creation logsource category.
Uses recursive detection tree traversal and case-insensitive field matching.
Checks if any selection has a list with only 1 element.
Uses recursive detection tree traversal to handle nested SigmaDetection.
21 tests covering:
- SigmahqTrademarkValidator (4 tests)
- SigmahqSourceEventlogValidator (4 tests)
- SigmahqLicenseValidator (4 tests)
- SigmahqEventIdProcessCreationValidator (5 tests)
- SigmahqSelectionSingleValueValidator (4 tests)
@frack113 frack113 changed the title feat: add 5 new sigmahq validators feat: add 6 new sigmahq validators Aug 14, 2026
@frack113
frack113 marked this pull request as draft August 14, 2026 11:32
@frack113

Copy link
Copy Markdown
Member Author

Too mamy FP

@frack113 frack113 closed this Aug 14, 2026
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.

1 participant