Replies: 1 comment 1 reply
-
|
This issue was discussed a couple of times and its tricky to solve. See SigmaHQ/sigma#3116 and SigmaHQ/sigma#1820 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Context
I am currently working on converting Sigma rules into multiple EDR technologies, such as CrowdStrike, Cortex XDR, and Microsoft Defender.
I have encountered an issue with the way Sigma handles registry rules: it only uses two properties:
In most EDRs, these are separated into three distinct properties to clearly differentiate between the registry path and the key name.
Problem
This design in Sigma causes problems when converting queries for EDR backends, as it produces incorrect and unusable queries.
Example from the Sigma repository:
https://github.com/SigmaHQ/sigma/blob/master/rules/windows/registry/registry_set/registry_set_dbgmanageddebugger_persistence.yml
Here, the path:
and the key name:
are merged together, which results in an incorrect query in an EDR (example with Cortex XDR):
action_registry_key_name contains "\Microsoft\.NETFramework\DbgManagedDebugger"This is incorrect.
In Cortex XDR, registry data is separated as follows:
action_registry_key_name→\Microsoft\.NETFramework\action_registry_value_name→DbgManagedDebuggeraction_registry_data→ key value, e.g."cmd.exe /c ipconfig"Same logic for other EDRs:
CrowdStrike
RegObjectName→\Microsoft\.NETFramework\RegValueName→DbgManagedDebuggerRegStringValue→ key valueMicrosoft Defender
RegistryKey→\Microsoft\.NETFramework\RegistryValueName→DbgManagedDebuggerRegistryValueData→ key valueCause
The limitation comes from Sigma merging the path and the key name into a single property, while EDRs treat them as two separate fields.
Proposal
Sigma rules should explicitly separate registry information into three properties:
I understand that this would deviate from the Sysmon-based field definitions that Sigma historically follows.
However, the current approach severely limits Sigma’s applicability in real-world production scenarios on EDR platforms.
Beta Was this translation helpful? Give feedback.
All reactions