Skip to content

Commit

Permalink
feat(#3723): Adds AlmaLinux to test_scan_results vd tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mateocervilla committed Aug 1, 2023
1 parent 76a0fcc commit 51623d4
Show file tree
Hide file tree
Showing 14 changed files with 188 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
elements:
- enabled:
value: 'no'
- provider:
attributes:
- name: 'almalinux'
elements:
- enabled:
value: 'no'
- provider:
attributes:
- name: 'nvd'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -272,3 +272,31 @@
value: 'yes'
- path:
value: CUSTOM_NVD_JSON_FEED


# ALMALINUX configuration
- sections:
- section: vulnerability-detector
elements:
- enabled:
value: 'yes'
- run_on_start:
value: 'yes'
- provider:
attributes:
- name: 'almalinux'
elements:
- enabled:
value: 'yes'
- os:
attributes:
- path: CUSTOM_ALMA_OVAL_FEED
value: '8'
- provider:
attributes:
- name: 'nvd'
elements:
- enabled:
value: 'yes'
- path:
value: CUSTOM_NVD_JSON_FEED
Original file line number Diff line number Diff line change
Expand Up @@ -271,3 +271,31 @@
value: 'yes'
- path:
value: CUSTOM_NVD_JSON_FEED


# ALMALINUX configuration
- sections:
- section: vulnerability-detector
elements:
- enabled:
value: 'yes'
- run_on_start:
value: 'yes'
- provider:
attributes:
- name: 'almalinux'
elements:
- enabled:
value: 'yes'
- os:
attributes:
- path: CUSTOM_ALMA_OVAL_FEED
value: '8'
- provider:
attributes:
- name: 'nvd'
elements:
- enabled:
value: 'yes'
- path:
value: CUSTOM_NVD_JSON_FEED
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
elements:
- enabled:
value: 'no'
- provider:
attributes:
- name: almalinux
elements:
- enabled:
value: 'no'
- provider:
attributes:
- name: nvd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,3 +178,63 @@
elements:
- disabled:
value: 'no'


# ALMALINUX configuration
- sections:
- section: vulnerability-detector
elements:
- enabled:
value: 'yes'
- interval:
value: '5s'
- min_full_scan_interval:
value: '5s'
- run_on_start:
value: 'yes'
- provider:
attributes:
- name: 'almalinux'
elements:
- enabled:
value: 'yes'
- os:
attributes:
- path: CUSTOM_ALMA_OVAL_FEED
value: '8'
- provider:
attributes:
- name: 'nvd'
elements:
- enabled:
value: 'yes'
- path:
value: CUSTOM_NVD_JSON_FEED
- update_interval:
value: '10s'
- section: sca
elements:
- enabled:
value: 'no'

- section: rootcheck
elements:
- disabled:
value: 'yes'

- section: syscheck
elements:
- disabled:
value: 'yes'

- section: wodle
attributes:
- name: 'syscollector'
elements:
- disabled:
value: 'yes'

- section: auth
elements:
- disabled:
value: 'no'
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,10 @@
NVD_JSON_PATH: CUSTOM_NVD_JSON_PATH
metadata:
system: SLES15

- name: 'ALMALINUX'
description: 'Scan ALMALINUX vulnerabilities using only the NVD feed'
configuration_parameters:
NVD_JSON_PATH: CUSTOM_NVD_JSON_PATH
metadata:
system: AlmaLinux-8
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,15 @@
nvd_feed: 'custom_nvd_feed.json'
oval_feed_tag: CUSTOM_SUSE_OVAL_FEED
nvd_feed_tag: CUSTOM_NVD_JSON_FEED

- name: 'ALMALINUX'
description: 'Scan ALMALINUX vulnerabilities using provider and NVD feed'
configuration_parameters: null
metadata:
provider_name: 'almalinux'
system: 'AlmaLinux-8'
json_feed: null
oval_feed: 'custom_alsa8_oval_feed.xml'
nvd_feed: 'custom_nvd_feed.json'
oval_feed_tag: CUSTOM_ALMA_OVAL_FEED
nvd_feed_tag: CUSTOM_NVD_JSON_FEED
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,15 @@
nvd_feed: 'custom_nvd_alternative_feed.json'
oval_feed_tag: CUSTOM_SUSE_OVAL_FEED
nvd_feed_tag: CUSTOM_NVD_JSON_FEED

- name: 'ALMALINUX'
description: 'Scan ALMALINUX vulnerabilities using provider and NVD feed'
configuration_parameters: null
metadata:
provider_name: 'almalinux'
system: 'AlmaLinux-8'
json_feed: null
oval_feed: 'custom_alsa8_oval_feed.xml'
nvd_feed: 'custom_nvd_alternative_feed.json'
oval_feed_tag: CUSTOM_ALMA_OVAL_FEED
nvd_feed_tag: CUSTOM_NVD_JSON_FEED
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,22 @@
test_package_1_name: 'custom-package-1'
test_package_0_cve: 'CVE-000'
test_package_1_cve: 'CVE-001'

- name: 'Alert vulnerability removal - ALMALINUX'
description: 'Alert when a package is removed from the database'
configuration_parameters: null
metadata:
provider_name: 'almalinux'
system: 'AlmaLinux-8'
json_feed: null
oval_feed: 'custom_alsa8_oval_feed.xml'
nvd_feed: 'custom_nvd_feed.json'
oval_feed_tag: CUSTOM_ALMA_OVAL_FEED
nvd_feed_tag: CUSTOM_NVD_JSON_FEED
test_package_vendor: 'WazuhIntegrationTests'
test_package_version: '1.0.0'
test_package_version_not_vulnerable: '2.1.0'
test_package_0_name: 'custom-package-0'
test_package_1_name: 'custom-package-1'
test_package_0_cve: 'CVE-000'
test_package_1_cve: 'CVE-001'
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
brief: Wazuh is able to detect vulnerabilities in the applications installed in agents using the Vulnerability Detector
module. This software audit is performed through the integration of vulnerability feeds indexed by Redhat,
Canonical, Debian, Amazon Linux and NVD Database.
Canonical, Debian, Amazon Linux, Alma Linux and NVD Database.
components:
- vulnerability_detector
Expand Down Expand Up @@ -43,6 +43,7 @@
- SUSE Enterprise Server 11
- SUSE Enterprise Server 12
- SUSE Enterprise Server 15
- Alma Linux 8
references:
- https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/index.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
brief: Wazuh is able to detect vulnerabilities in the applications installed in agents using the Vulnerability Detector
module. This software audit is performed through the integration of vulnerability feeds indexed by Redhat,
Canonical, Debian, Amazon Linux and NVD Database.
Canonical, Debian, Amazon Linux, Alma Linux and NVD Database.
components:
- vulnerability_detector
Expand Down Expand Up @@ -43,6 +43,7 @@
- Suse Enterprise Linux Desktop 15
- Suse Enterprise Linux Desktop 12
- Suse Enterprise Linux Desktop 11
- Alma Linux 8
references:
- https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/index.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
brief: Wazuh is able to detect vulnerabilities in the applications installed in agents using the Vulnerability Detector
module. This software audit is performed through the integration of vulnerability feeds indexed by Redhat,
Canonical, Debian, Amazon Linux and NVD Database.
Canonical, Debian, Amazon Linux, Alma Linux and NVD Database.
components:
- vulnerability_detector
Expand Down Expand Up @@ -43,6 +43,7 @@
- Suse Enterprise Linux Desktop 15
- Suse Enterprise Linux Desktop 12
- Suse Enterprise Linux Desktop 11
- Alma Linux 8
references:
- https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/index.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
brief: Wazuh is able to detect vulnerabilities in the applications installed in agents using the Vulnerability Detector
module. This software audit is performed through the integration of vulnerability feeds indexed by Redhat,
Canonical, Debian, Amazon Linux and NVD Database.
Canonical, Debian, Amazon Linux, Alma Linux and NVD Database.
components:
- vulnerability_detector
Expand Down Expand Up @@ -43,6 +43,7 @@
- SUSE Enterprise Server 11
- SUSE Enterprise Server 12
- SUSE Enterprise Server 15
- Alma Linux
references:
- https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/index.html
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
brief: Wazuh is able to detect vulnerabilities in the applications installed in agents using the Vulnerability Detector
module. This software audit is performed through the integration of vulnerability feeds indexed by Redhat,
Canonical, Debian, SUSE, Amazon Linux and NVD Database.
Canonical, Debian, SUSE, Amazon Linux, Alma Linux and NVD Database.
components:
- vulnerability_detector
Expand Down Expand Up @@ -44,6 +44,7 @@
- Suse Enterprise Linux Desktop 15
- Suse Enterprise Linux Desktop 12
- Suse Enterprise Linux Desktop 11
- Alma Linux 8
references:
- https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/index.html
Expand Down

0 comments on commit 51623d4

Please sign in to comment.