Hi guys:
I'm collecting sysmon logs with the Wazuh agent and the sysmon config file that I'm using already fills in a filed (ruleName) with the Mitre ATT&CK ID.
So, for example, one event from sysmon could include a field like the following:
win.eventdata.ruleName = T1027
I'd like to assign the MITRE ATT&CK ID used by Wazuh to that already assigned ID, and for that I'm creating rules like:
<rule id="xxxx" level="y">
<if_group>sysmon_event1</if_group>
<field name="win.eventdata.ruleName">T1027</field>
<description>T1027 - Obfuscated Files or Information</description>
<mitre>
<id>$(win.eventdata.ruleName)</id>
</mitre>
<options>no_full_log</options>
</rule>
The problem is that the ID assigned is not the value of the field win.eventdata.ruleName, but "$(win.eventdata.ruleName)" instead.
Am I referencing the value wrongly? What would be the right way of achieving this mapping?
Thanks!
Juan.