Thank you, this works well, but I have a new problem.
This is really noisy. I've set it up in these rules, but there's no effect. It's still noisy on the dashboard.
<group name="local,windows,sysmon,">
<!-- Variant A: field path win.eventdata.* -->
<rule id="100952" level="0">
<if_matched_sid>92052</if_matched_sid>
<field name="win.eventdata.image" type="pcre2">(?i)\\cmd\.exe$</field>
<field name="win.eventdata.parentImage" type="pcre2">(?i)\\forfiles\.exe$</field>
<!-- parentCommandLine di event ada: ForFiles /p \"D:\\Work\\AUTO_PRINT\" ... -->
<field name="win.eventdata.parentCommandLine" type="pcre2">
(?i)forfiles\s+.*?/p\s+\\?"D:\\\\Work\\\\AUTO_PRINT\\?"\s+.*?/d\s+-30\s+.*?cmd\s+/c\s+del\s+/q
</field>
<field name="win.eventdata.user" type="pcre2">(?i)^MEGAINS\\svr\.app$</field>
<description>Suppress AUTO_PRINT cleanup via forfiles->cmd del (
svr.app)</description>
</rule>
<!-- Variant B: field path data.win.eventdata.* -->
<rule id="100953" level="0">
<if_matched_sid>92052</if_matched_sid>
<field name="data.win.eventdata.image" type="pcre2">(?i)\\cmd\.exe$</field>
<field name="data.win.eventdata.parentImage" type="pcre2">(?i)\\forfiles\.exe$</field>
<field name="data.win.eventdata.parentCommandLine" type="pcre2">
(?i)forfiles\s+.*?/p\s+\\?"D:\\\\Work\\\\AUTO_PRINT\\?"\s+.*?/d\s+-30\s+.*?cmd\s+/c\s+del\s+/q
</field>
<field name="data.win.eventdata.user" type="pcre2">(?i)^MEGAINS\\svr\.app$</field>
<description>Suppress AUTO_PRINT cleanup via forfiles->cmd del (
svr.app) (data.*)</description>
</rule>
<rule id="111789" level="0">
<if_matched_sid>92052</if_matched_sid>
<field name="
agent.id">004</field>
<description>
IGNORE: Sysmon EID1 cmd.exe abnormal parent (rule 92052) on SVR-APPIIS-PRD
</description>
</rule>
</group>
<group name="windows,sysmon,ignore,">
<rule id="111788" level="0">
<if_matched_sid>92052</if_matched_sid>
<field name="
agent.id">004</field>
<field name="win.system.message" type="pcre2">
(?is)ParentImage:\s+C:\\\\Windows\\\\System32\\\\forfiles\.exe.*ParentCommandLine:.*D:\\\\Work\\\\AUTO_PRINT.*ForFiles.*?/d\s+-30.*?cmd\s+/c\s+del\s+/q\s+@file
</field>
<description>IGNORE: match via sysmon message (fallback) for AUTO_PRINT housekeeping</description>
</rule>
<rule id="111742" level="0">
<if_matched_sid>92052</if_matched_sid>
<!-- hanya agent ini -->
<field name="
agent.id">004</field>
<!-- process & parent -->
<field name="win.eventdata.image" type="pcre2">(?i)\\cmd\.exe$</field>
<field name="win.eventdata.parentImage" type="pcre2">(?i)\\forfiles\.exe$</field>
<!-- parentCommandLine: toleran spasi & variasi quoting -->
<field name="win.eventdata.parentCommandLine" type="pcre2">
(?i)ForFiles\s+/p\s+.*D:\\\\Work\\\\AUTO_PRINT.*\s+/s\s+/d\s+-30\s+/c\s+.*cmd\s+/c\s+del\s+/q\s+@file.*
</field>
<!-- user service -->
<field name="win.eventdata.user" type="pcre2">(?i)^MEGAINS\\\\svr\.app$</field>
<description>IGNORE: forfiles housekeeping AUTO_PRINT spawning cmd.exe delete (SVR-APPIIS-PRD)</description>
</rule>
</group>