Hello,
I need you help with configuring Vulnerability detection module on Wazuh.
Couple of weeks ago I’ve installed Wazuh (central components), currently version 4.9.2 on a Linux server with OS AlmaLinux 8.9 Midnight Oncilla. Then I’ve installed Wazuh agent on my local laptop with OS Windows 11. So I have a running Wazuh with 1 agent connected to it.
I am trying to get the Vulnerability Detection module up and running on Wazuh.
I am following the Wazuh documentation here: https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/configuring-scans.html
1.I’ve set up Vulnerability Detection settings in the Wazuh server configuration file at /var/ossec/etc/ossec.conf
<vulnerability-detection>
<enabled>yes</enabled>
<index-status>yes</index-status>
<feed-update-interval>60m</feed-update-interval>
</vulnerability-detection>
<indexer>
<enabled>yes</enabled>
<hosts>
<host>https://127.0.0.1:9200</host>
</hosts>
<ssl>
<certificate_authorities>
<ca>/etc/filebeat/certs/root-ca.pem</ca>
</certificate_authorities>
<certificate>/etc/filebeat/certs/wazuh-server.pem</certificate>
<key>/etc/filebeat/certs/wazuh-server-key.pem</key>
</ssl>
</indexer>
2. Then I’ve made the changes on my WIN11 laptop (where my Wazuh agent is installed) according to the instructions – The configuration file is located at: C:\Program Files (x86)\ossec-agent\ossec.conf.
I have set it up like this:
<vulnerability-detection>
<enabled>yes</enabled>
<index-status>yes</index-status>
<feed-update-interval>60m</feed-update-interval>
</vulnerability-detection>
<!-- System inventory -->
<wodle name="syscollector">
<disabled>no</disabled>
<interval>1h</interval>
<scan_on_start>yes</scan_on_start>
<hardware>yes</hardware>
<os>yes</os>
<network>yes</network>
<packages>yes</packages>
<ports all="no">yes</ports>
<processes>yes</processes>
<!-- Database synchronization settings -->
<synchronization>
<max_eps>10</max_eps>
</synchronization>
</wodle>
3. In the last step, you must save the Wazuh indexer username and password into the Wazuh manager keystore using the Wazuh-keystore tool.
So I’ve run following:
# echo 'admin1' | /var/ossec/bin/wazuh-keystore -f indexer -k username -v admin1
# echo 'password1' | /var/ossec/bin/wazuh-keystore -f indexer -k password -v password1
4. Finally , I’ve restarted Wazuh manager:
sudo systemctl restart wazuh-manager5. I’ve logged into Wazuh Dashboard web ui, then clicked on Vulnerability Detection module:
6. I landed on the Dashboard tab:
Nothing is displayed…
7. I clicked on Inventory tab:
Still no records displayed…
8. And finally I clicked on Events tab:
Also no results…
So it looks like Vulnerability Detection module is not working. Am I doing something wrong, should I configure it differently?
Could you please help me?
Thanks,
David Porupka
Could you tell me the manager version? Additionally, I would like to know if you can run this command to check the status of the indexer cluster: curl -XGET -k -u user:pass "https://127.0.0.1:9200/_cluster/health"
# echo 'validIndexerUser' | /var/ossec/bin/wazuh-keystore -f indexer -k username -v validIndexerUser
# echo 'validIndexerPass' | /var/ossec/bin/wazuh-keystore -f indexer -k password -v validIndexerPass
Let me know if you have any problem to do this! Best Regards!
I've used Quickstart installation method.
So I have used admin user credentials to run following command: curl -v -XGET -k -u admin:password "https://127.0.0.1:9200/_cluster/health"
# echo 'validIndexerUser' | /var/ossec/bin/wazuh-keystore -f indexer -k username -v validIndexerUser
# echo 'validIndexerPass' | /var/ossec/bin/wazuh-keystore -f indexer -k password -v validIndexerPass
So should I run these two commands to add valid Wazuh Indexer credentials to the keystore?:
# echo 'admin' | /var/ossec/bin/wazuh-keystore -f indexer -k username -v admin
# echo 'admin_password' | /var/ossec/bin/wazuh-keystore -f indexer -k password -v admin_password
Exactly, try adding the valid credentials you mentioned to the keystore and then restart the manager. After that, let's check the manager's ossec.log to see if it connected successfully!
It's great to know it worked for you! Best regards.


# echo 'admin' | /var/ossec/bin/wazuh-keystore -f indexer -k username -v admin
# echo 'admin_password' | /var/ossec/bin/wazuh-keystore -f indexer -k password -v admin_password

--
You received this message because you are subscribed to a topic in the Google Groups "Wazuh | Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/wazuh/6f045OeA2EM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to wazuh+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/wazuh/eb1ae4c2-14c2-4471-87be-316e974c54a2n%40googlegroups.com.