Hi,
I'm using Wazuh version 4.10.1.
Is there an API available to retrieve an agent's vulnerability details?
Are there any options to filter by severity or CVE?
I'm specifically looking for a way to list affected packages under "vulnerability-detection" in the Wazuh console for a given agent.(ref attachment)
Hi. To be able to filter by a specific field you can use the q parameter. You can see in the documentation that it uses the status example: https://documentation.wazuh.com/current/user-manual/api/reference.html#operation/api.controllers.syscollector_controller.get_packages_info
But in your case you would use the severity field. For example:
{protocol}://{host}:{port}/syscollector/{agent_id}/packages?q=severity=high
What you have to keep in mind is that there is information about the vulnerabilities that comes from the Wazuh API and other information that comes indexed like your attached screenshot.
Let me make some tests and I will be back with the exact query


HI Maximiliano,
Thanks for the details ..
I understand that we cannot directly query the affected vulnerable packages using the Wazuh API and instead need to retrieve this information using WQL.
Please refer to the attached image(Filter 1:) I have applied a filter with vulnerability.severity=high for a specific agent. The GUI displays the "Top 5 Vulnerabilities" on the left and the "Top 5 Packages" on the right. However, I need to list all affected packages(other than "Top 5 Packages" ) under this filter—not only in the GUI but to collect/export them as a file or text/json output.
Additionally, it would be helpful if we could include the affected packages along with their corresponding CVEs/CVSS for better tracking, like below. (equal to image filter2)
Package Name | Severity | CVE | CVSS |
Hi,
I am currently using Wazuh 4.10.1 and have added Windows, CentOS, and Ubuntu agents. However, I am encountering an issue with Vulnerability Detection metrics for certain Windows agents. For example, I am unable to view the Vulnerability Detection metrics for Microsoft Windows 10 Pro 10.0.19045.5487 and Microsoft Windows 11 Pro 10.0.26100.3194.
However, for the Windows agent Microsoft Windows 11 Pro 10.0.22631.4890, I am able to view the Vulnerability Detection metrics without any issues.
Please note that I have applied the same configuration for all the agents, and the Vulnerability Detection is working for some agents but not for others.
Could you please assist in resolving this issue?
Thanks

