I believe you already have a working rule to capture them, but your second rules not work as expected for the logic you intended.
Please share how you added the CDB list by opening this file: nano /var/ossec/etc/lists/software-vendors
Make sure that you have given the permissions to the CDB list.
chmod 660 /var/ossec/etc/lists/software-vendors
chown wazuh:wazuh /var/ossec/etc/lists/
software-vendors.
Please let me know you have added this list in the Wazuh manager ossec.conf file ruleset tag <list>etc/lists/software-vendors</list>
For example:
If the issue is not with the above-mentioned solutions, I need sample logs from archives.json logs. So then I can replicate and share with you the proper resolution.
To capture the logs from archives.json, please follow these steps:
1. Enable log_all_json on Wazuh Manager
Update the ossec.conf file on the Wazuh manager to enable log_all_json.
2. Reproduce the Event
Trigger the event again to capture the relevant logs.
3. Extract Relevant Logs
Run the following command on the Wazuh manager:
cat /var/ossec/logs/archives/archives.json | grep -iE "<related string>"
Replace <related string> with a relevant value from the log to filter the specific entries.
4. Disable log_all_json
After capturing the logs, disable log_all_json in the ossec.conf file to prevent excessive storage usage.
Share the sample log that you have taken from archives.json with us.
Ref: https://documentation.wazuh.com/current/user-manual/manager/event-logging.html#enabling-archiving
Warning
Keeping <logall_json>yes</logall_json> on can fill up your disk fast! Once you’re done troubleshooting, set it back to no in /var/ossec/etc/ossec.conf and restart the manager:
systemctl restart wazuh-manager
Therefore, please share a sample log from archives.json log, so we can assist you further.
Let me know the update on this.