Hello @
Tirtharaj
I hope you are fine.
1. Global queries to the SysCollector module are still not supporter in Wazuh. However, you can try the Experimental module of the Wazuh API and do:
GET
/experimental/syscollector/packages
For more information, please check the Wazuh API manual:
2. The rule 60612 will trigger every time the Windows events 11707 or 1033 are generated in Windows. If your application installation generated another event, you can create a custom rule overwritting this one like this:
# vi /var/ossec/etc/rules/win_packages_custom.xml
<group name="win_packages_custom",>
<rule id="60612" level="3" overwrite="yes">
<if_sid>60609</if_sid>
<field name="win.system.eventID">^11707$|^1033$</field>
<options>no_full_log</options>
<description>Application installed $(win.eventdata.data).</description>
</rule>
</group>
Please, don't forget to restart wazuh-manager when you create a new rule:
# systemctl restart wazuh-manager
For more info about creating custom rules, please read:
3. In order to check the existence of a particular package in the system, you can create a custom rule like this:
# vi /var/ossec/etc/rules/win_packages_custom.xml
<group name="win_packages_custom",>
<rule id="110000" level="6">
<if_sid>221</if_sid>
<field name="data.program.name">torrent</field>
<options>no_full_log</options>
<description>Application present $(data.program.name).</description>
</rule>
</group>
For more information about triggering alerts with "Syscollector":
Note: This option is not available in Wazuh 4.2.x and 4.3.x versions
I hope this helps.
Thanks