We are being flooded by DCSync Attack Alerts. Normally, notice is good but these warnings are being fired every time and only if the acting account is ADSYNC. This account is legit and is appropriately limited to the task at hand.
We want to monitor for potential DCSync Attacks but I would like to whitelist ADSYNC so that Wazuh stops firing an alert when the potential "DCSync Attack" is associated with account ADSYNC.
Otherwise_Crab2819 proposed the following:
Hi!
If you take note of the rule format, we are muting the alert level by downgrading it to 0 (if the rule ID and the event's field name match.)
<group name="DSattack\_Whitelist,">
<rule id="100113" level="0">
<if_sid>RULEID</if_sid>
<field name="acting account field">ADSYNC|ADCHECK</field>
Whitelisting for acting account field ADSYNC|ADCHECK (muted)
</rule>
</group> -----------------------
However, we can share with you the precise rule to use if you already have a sample of the log string from "Windows Event Manager," including the eventID (perhaps you can capture that using the archives.json).
For any questions, please let us know!
I attempted to utilize this template as follows:
I think I did this correctly but obviously didn't because it isn't working. On the Wazuh-Manager Node, in /var/ossec/ruleset/rules I created a ruleset called "100100-whitelist.xml". Here is the file:
<group name="Alert_Whitelist,"> <rule id="100101" level="0"> <if_sid>110001</if_sid> <field name="data.win.eventdata.subjectUserName">^adsync$</field> <description>False Positive: Possible DCSync Attack</description> </rule> <rule id="100102" level="0"> <if_sid>110003</if_sid> <description>Stop the Golden Ticket Flood</description> </rule> </group
the <if_sid> entries, above, are the respective related rules I want to whitelist.
With respect to "Possible DCSync Attack", 11001 is the associated rule ID as shown in the dashboard
With respect to "Golden Tickets", its 110003.
I restarted Wazuh-Manager.Service but I am still receiving alerts.
I am sure I am misunderstanding how Wazuh processes rules so any assistance is greatly appreciated.
Any suggestions for next steps? Thank you!