Hello team,
I have created two rules that works fine at the moment:
<rule id="102101" level="10">
<if_matched_sid>101101</if_matched_sid>
<field name="win.eventdata.originalFileName">^msdt.exe$</field>
<description>Sysmon - Event 1: Process $(win.eventdata.description) - msdt.exe Detected</description>
<group>sysmon_event1,suspicious_follina</group>
<options>no_full_log</options>
<group>sysmon_event1,</group>
</rule>
<rule id="121101" level="12">
<if_sid>102101</if_sid>
<field name="win.eventdata.parentImage">winword.exe$|excel.exe$|powerpnt.exe$</field>
<description>Sysmon - Event 1: Process $(data.win.eventdata.description) - Office MSDT Parent detected </description>
<group>sysmon_event1,suspicious_follina</group>
</rule>
My question is how can I include in rule number 121101 something like the following <field> to check also for these fields in commandLine, because two <field> tags in the same rule is not working:
<field name="win.eventdata.commandLine">^sdiagnhost.exe$|^csc.exe$|^IT_RebrowseForFile$|^IT_BrowseForFile$</field>
This is data.win.eventdata.commandLine value:
\"C:\\Windows\\system32\\msdt.exe\" ms-msdt:/id PCWDiagnostic /skip
force /param \"IT_RebrowseForFile=? IT_LaunchMethod=ContextMenu
IT_BrowseForFile=$(Invoke-Expression($(Invoke-Expression('[System.Text.Encoding]'+[char]58+[char]58+'UTF8.GetString([System.Convert]'+[char]58+[char]58+'FromBase64String('+[char]34+'Y2FsYw=='+[char]34+'))'))))i/../../../../../../../../../../../../../../Windows/System32/mpsigstub.exe\"
Thank you for your help!