Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update VD POC #7215

Merged
merged 7 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/images/poc/vulnerabilities-inventory.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed source/images/poc/vulnerabilities-ubuntu-alerts.png
Binary file not shown.
Binary file not shown.
44 changes: 36 additions & 8 deletions source/proof-of-concept-guide/poc-vulnerability-detection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ Infrastructure
+---------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| Endpoint | Description |
+===============+============================================================================================================================================+
| Ubuntu 22.04 | The vulnerability detection module checks for vulnerabilities in the operating system and installed applications in this Linux endpoint. |
+---------------+--------------------------------------------------------------------------------------------------------------------------------------------+
| Windows 11 | The vulnerability detection module checks for vulnerabilities in the operating system and installed applications in this Windows endpoint. |
| Debian 12 | The vulnerability detection module checks for vulnerabilities in the operating system and installed applications in this Linux endpoint. |
+---------------+--------------------------------------------------------------------------------------------------------------------------------------------+

Configuration
Expand Down Expand Up @@ -51,12 +49,42 @@ The Vulnerability Detection module is enabled by default. You can perform the fo

$ sudo systemctl restart wazuh-manager


Test the configuration
----------------------

.. note::
GabrielEValenzuela marked this conversation as resolved.
Show resolved Hide resolved

The time it takes to detect vulnerabilities depends on the :ref:`interval <syscollector_interval>` value for Syscollector configured in the ``ossec.conf`` file. To reduce the waiting times in this test, check :doc:`System inventory capability configuration </user-manual/capabilities/system-inventory/configuration>`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

#. Install a vulnerable version of Vim such as ``2:9.0.1378-2`` or earlier in the Debian endpoint. Wait for syscollector to run a new scan.

#. Remove the Vim package to fix the vulnerability. Wait for syscollector to run a new scan.

Visualize the alerts
--------------------

You can visualize the alert data in the Wazuh dashboard. To do this, go to the Vulnerability Detection module, select Events, and click on any vulnerability to expand the document.
You can visualize the detected vulnerabilities in the Wazuh dashboard. To see a list of active vulnerabilities, go to **Vulnerability Detection** and select **Inventory**. Add a filter in the search bar to query all active vulnerabilities for the Vim package.

- ``package.name:vim``

.. thumbnail:: /images/poc/vulnerabilities-inventory.png
:title: All active vulnerabilities on Debian. Vulnerable vim package example
:align: center
:width: 80%

To see vulnerability alerts for the last system inventory scan, switch to **Events**. Add filters in the search bar to query vulnerability alerts for Vim.

- Active vulnerability alerts – ``data.vulnerability.package.name: vim AND data.vulnerability.status:Active``

.. thumbnail:: /images/poc/vulnerabilities-events-new-vuln.png
:title: Detected vulnerabilities on Debian. Vulnerable vim package example
:align: center
:width: 80%

- Solved vulnerability alerts – ``data.vulnerability.package.name: vim AND data.vulnerability.status:Solved``

.. thumbnail:: /images/poc/vulnerabilities-ubuntu-alerts.png
:title: Detected vulnerabilities on Ubuntu alerts
:align: center
:width: 80%
.. thumbnail:: /images/poc/vulnerabilities-events-solve-vuln.png
:title: Solved vulnerabilities on Debian. Vulnerable vim package example
:align: center
:width: 80%
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ Disable the Syscollector wodle.
| **Allowed values** | yes, no |
+--------------------+-----------------------------+

.. _syscollector_interval:

interval
^^^^^^^^

Expand Down
Loading