<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> <hotfixes>yes</hotfixes> </wodle>
<provider name="nvd"> <enabled>yes</enabled> <update_from_year>2010</update_from_year> <update_interval>1h</update_interval> </provider> </vulnerability-detector>
Hello Suat Toksöz,
The configuration of `vulnerability-detector` should be as follows:
ossec.log:
<vulnerability-detector>
<enabled>yes</enabled>
<interval>5m</interval>
<ignore_time>6h</ignore_time>
<run_on_start>yes</run_on_start>
<provider name="nvd">
<enabled>yes</enabled>
<update_from_year>2010</update_from_year>
<update_interval>1h</update_interval>
</provider>
</vulnerability detector>
Remember that the ignore_time tag is 6 hours by default, and you won’t see the alerts again until this time has passed. To check that it works properly, decrease its time.
On the other hand, the download of the windows NVD might take too long, be sure to see the following message in the ossec.logfile:
2020/03/19 11:34:43 wazuh-modulesd:vulnerability-detector: INFO: (5494): The update of the National Vulnerability Database feed finished successfully.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/d48783af-c5bc-4521-95bf-793a9eec694d%40googlegroups.com.
Yes, the configuration I provided is for the manager: /var/ossec/etc/ossec.conf
Yes, the configuration I provided is for the manager:
/var/ossec/etc/ossec.conf
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/218bcf43-903f-4418-9649-6ac1a523416a%40googlegroups.com.
Hi Suat,
Your settings are correct.
The Vulnerability detector only warns if your system is vulnerable. Could your system be up to date and not vulnerable?
To check that you are scanning correctly, follow the next steps:
Activate the debug mode. Edit the file /var/ossec/etc/internal_options.conf and change the line:
wazuh_modules.debug=0
by
wazuh_modules.debug=2
Restart the manager: /var/ossec/bin/ossec-control restart
Check the packages on your system in the ossec.log file:
tail -f /var/ossec/logs/ossec.log
2019/09/25 14:44:57 wazuh-modulesd:vulnerability-detector [5541] wm_vuln_detector_nvd.c:2624 at wm_vuldet_check_hotfix(): DEBUG: (5533): Agent 1 is vulnerable to CVE-2017-0076 because does not have the '4012212' patch installed.
Checking if the agent is or not vulnerable with the packages it has installed.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/160532b9-ec68-443e-805a-d5779eccaa0b%40googlegroups.com.
Hi Suat.
This error happens when the agent has the tag <packages>no</packages> in the syscollector block.
Check the configuration of the agent is correct and remember to restart it to apply it.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/ec9c181f-be88-4b47-b207-f98555609fe3%40googlegroups.com.
Hello Suat,
I’m going to check your case more in depth.
Could you tell me what version of Wazuh you use as a manager and agent?
One question: Do you have any configuration in the agent.conffile ?
Best regards
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/efea401b-9103-4ebc-85e2-4db74e86cd15%40googlegroups.com.
Hi Suat,
I just tried the same version and it works fine.
Let’s make some checks
agent.conf file ?sqlite3 /var/ossec/queue/db/006.db "Select * from sys_programs"sqlite3 /var/ossec/queue/db/006.db "Select * from sys_hotfixes"One of the cases for this not to work is that, in the manager’s /var/ossec/etc/shared/default/agent.conf file, you have the option <hotfixes>no</hotfixes>
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/17130cca-2faa-43da-a52f-5849373f1727%40googlegroups.com.
Sorry Suat, the query:
sqlite3 /var/ossec/queue/db/006.db "Select * from sys_programs"
and
sqlite3 /var/ossec/queue/db/006.db "Select * from sys_hotfixes"
You must change the 006.db for the windows agent ID you have.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/ae62fdee-7671-402e-a0ff-36deff3d7cbc%40googlegroups.com.
Hello Suat,
You’re not looking at the Windows agent database. Agent 000 is the manager.
If you don’t know which is the windows agent, execute the following command in the manager:
/var/ossec/bin/agent_control -l
That it returns a list of the agents’ names and their IDs. Search in the list the windows agent and try again with its corresponding ID.
A greeting
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/eed8d433-eaf7-498e-b1fc-6ff020070f6a%40googlegroups.com.
Does the database exist in the directory /var/ossec/queu/db ?
What data does it contain?
Does the database exist in the directory
/var/ossec/queu/db?What data does it contain?
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e9a131df-b97d-49f7-80d1-8f2cfd941d64%40googlegroups.com.
To check the data in the database, the manager must be stopped.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/3de4cc92-1432-4513-b553-ee6b5b933648%40googlegroups.com.
Hello Suat:
To check the content of the database, follow the steps below:
sudo su
/var/ossec/bin/ossec-control stop
sqlite3 /var/ossec/queue/db/010.db "Select * from sys_programs" >> outputPrograms.txt
sqlite3 /var/ossec/queue/db/010.db "Select * from sys_hotfixes" >> outputHotfixes.txt
/var/ossec/bin/ossec-control start
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/30606ab1-a5fa-42f3-8fe7-f168496dbbba%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/55bc0ca7-2107-4c7f-8cee-c819b3a11d49%40googlegroups.com.
Sorry, the debug mode in the previous message I wrote agent, and it’s manager.
In which file ossec.log did you get that error ? in the agent or in the manager ?
Sorry, the debug mode in the previous message I wrote
agent, and it’smanager.In which file
ossec.logdid you get that error ? in theagentor in themanager?
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/4bb64014-c320-4dde-a5ce-380de54f9595%40googlegroups.com.
Hi,
Put the debug to 2 in the manager (internal_options.conf) and check if there is an error with syscollector.This module is in charge of collecting the agent information to save it in the database (that right now you have empty).
Hi,
Put the debug to 2 in the manager (
internal_options.conf) and check if there is an error withsyscollector.This module is in charge of collecting the agent information to save it in the database (that right now you have empty).
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/619bb3b1-6787-41f1-8673-2dfa76501205%40googlegroups.com.
You seem to have a problem with communication between the agent and the manager.
That agent is connected to the manager? Run the following query on the manager:
/var/ossec/bin/agent_control -l
And check for the ID that your agent is listed as Active
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/e6b479ab-64a9-402e-ba22-129fd3284c37%40googlegroups.com.
Hello Suat Toksöz,
The configuration of `vulnerability-detector` should be as follows:
ossec.log:<vulnerability-detector> <enabled>yes</enabled> <interval>5m</interval> <ignore_time>6h</ignore_time> <run_on_start>yes</run_on_start> <provider name="nvd"> <enabled>yes</enabled> <update_from_year>2010</update_from_year> <update_interval>1h</update_interval> </provider> </vulnerability detector>Remember that the
ignore_timetag is 6 hours by default, and you won’t see the alerts again until this time has passed. To check that it works properly, decrease its time.
On the other hand, the download of the windows NVD might take too long, be sure to see the following message in theossec.logfile:2020/03/19 11:34:43 wazuh-modulesd:vulnerability-detector: INFO: (5494): The update of the National Vulnerability Database feed finished successfully.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/c78cfb80-5f16-4bb9-8938-74700efd26e5%40googlegroups.com.
Hello Suat,
I’m still working on his case. There’s a similar issue to yours:
https://github.com/wazuh/wazuh/issues/4353
We’re going to do some checking:
rm /var/ossec/que/db/ID.db
(where ID is your Windows agent ID number)./var/ossec/bin/ossec-control restart
tail -f /var/ossec/logs/ossec.log | grep "syscollector"
sqlite3 /var/ossec/queue/db/ID.db "Select * from sys_programs"
(where ID is the ID number of your Windows agent)--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/add0c6a3-812c-4d91-9d4e-e525fdbbddd8%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/66105a2b-3ef2-4160-98b7-3f81e5bd2f1d%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "Wazuh mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wazuh+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wazuh/f5bc0293-0a35-4d49-80bd-e4423d9d8f4e%40googlegroups.com.