Whitelist using CDB lists

504 views
Skip to first unread message

Mgc Labs

unread,
Jan 14, 2022, 4:17:49 PM1/14/22
to Wazuh mailing list
Hi, 

I have tried searching the documentation for whitelisting and CDB lists and come up a bit short.

I've managed to whitelist my IP from active responses, which is what I'm looking for, however I want to be able to constantly update our Staff CDB list (have this working already) and whitelist those IPs from all active responses. It would be nice to also be able to whitelist that list from rules in general, or enrich the rules with the description from the IP cdb list.

Thanks!

Nicolas Oscar Lastra

unread,
Jan 26, 2022, 9:41:05 AM1/26/22
to Wazuh mailing list

Hi @Mgc Labs

Thank you for trusting and choosing Wazuh!


“...however I want to be able to constantly update our Staff CDB list…”

I take it you were able to solve this? this file requires these constantly updated.


“...It would be nice to also be able to whitelist that list from rules in general…”

For this you must analyze in which specific rules you want to search in the CDB list.

And apply modifications to each of those rules, using overwrite.

To read more about how to modify rules (overwrite). You can expand in the next section of the documentation.
https://documentation.wazuh.com/current/learning-wazuh/replace-stock-rule.html

To get an idea of ​​the rules and see which ones to modify. This is the link of the ruleset of the latest version of Wazuh.

https://github.com/wazuh/wazuh/tree/4.3/ruleset/rules


“...enrich the rules with the description from the IP cdb list.”

The description can be enriched but only with the IP that matches in the CDB list. Because that IP comes as information within the event data.

But it is not possible to add an IP to the description that comes from the CDB list, but has not fallen into the event.


For example, you could do something similar to the following:

<rule ...>

  <list field="srcip" lookup="not_address_match_key">etc/lists/list-IP</list>

  <description>$(srcip) was not found in the CDB list</description>

</rule>

Best regards,

Nikos.

Mgc Labs

unread,
Feb 24, 2022, 9:30:21 AM2/24/22
to Wazuh mailing list

I was able to constantly update the CDB list correct.

That helps a lot, I thought that might be the way to go about it but I wanted to make sure I was on the right track.

Thanks for your time!
Reply all
Reply to author
Forward
0 new messages