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

Vulnerability Detector integration tests for SUSE Linux Enterprise #2847

Merged

Conversation

damarisg
Copy link
Member

@damarisg damarisg commented May 2, 2022

Related issue
Close #2792

Description

For Wazuh v4.5.0 we want to add SUSE Linux Enterprise support for the Wazuh Vulnerability Detector module.

For this reason, it was necessary to:

  • Add a custom feed.
  • Modify the custom feed.
  • Refactor the provider and feed tests.
  • Add independent tests for test_scan_results.

Modules involved:

  • test_vulnerability_detector/test_feeds/test_download_feeds.py
  • test_vulnerability_detector/test_feeds/test_duplicate_feeds.py
  • test_vulnerability_detector/test_feeds/test_import_invalid_feed_type.py
  • test_vulnerability_detector/test_feeds/test_validate_feed_content.py
  • test_vulnerability_detector/test_providers/test_enabled.py
  • test_vulnerability_detector/test_providers/test_missing_os.py
  • test_vulnerability_detector/test_providers/test_multiple_provider_feeds.py
  • test_vulnerability_detector/test_providers/test_os.py
  • test_vulnerability_detector/test_providers/test_update_from_year.py
  • test_vulnerability_detector/test_providers/test_update_interval.py
  • test_vulnerability_detector/test_scan_results/test_scan_nvd_vulnerabilities.py
  • test_vulnerability_detector/test_scan_results/test_scan_provider_and_nvd_vulnerabilities.py
  • test_vulnerability_detector/test_scan_results/test_scan_provider_vulnerabilities.py
  • test_vulnerability_detector/test_scan_results/test_scan_vulnerability_removal.py

Logs example

Test Path Os/Type Execution Type Results Date By
test/integration/test_vulnerability_detector/ CentOS - Manager Local 🟢 🟢 🟢 2022/05/24 @Deblintrake09
test/integration/test_vulnerability_detector/ CentOS - Manager Jenkins 🟢 🟢 🟢 2022/05/24 @Deblintrake09

Copy link
Member Author

@damarisg damarisg left a comment

Choose a reason for hiding this comment

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

I approved it.

Test Path Os/Type Execution Type Results Date By
test/integration/test_vulnerability_detector/ CentOS - Manager Jenkins 🟢 🟢 🟢 2022/05/24/ Seyla

@Deblintrake09 Deblintrake09 self-requested a review May 26, 2022 13:08
@Deblintrake09
Copy link
Contributor

Regarding questions made about the PR:

  • the Extra SUSE15 package is the OS version package installed in the agent, and it is required for the SUSE OVAL feed to work properly because every vulnerable package is paired with the OS versions it is vulnerable for. If the package is not found in the Agent's packages, VDT will not find any vulnerabilities.
  • After a thorough search I was unable to find how frequently the SUSE feed is updated. It was left with 2 weeks, since that is the time the other feeds were using. Looking at the OVAL advisories the data in there is updated almost every day, but that does not give us an indication of exactly how frequently the feed is updated, on would think that 2 weeks can be sufficient time for the new changes to be migrated to a feed (ALAS does the same and updates it's feed almost daily).

@Deblintrake09
Copy link
Contributor

Deblintrake09 commented May 31, 2022

Test Path Os/Type Execution Type Results Date By
test/integration/test_vulnerability_detector/ CentOS - Manager Jenkins 🟢 🟢 🟢 2022/05/31 @Deblintrake09

jmv74211
jmv74211 previously approved these changes Jun 1, 2022
@jmv74211 jmv74211 merged commit 72322a8 into master Jun 2, 2022
@jmv74211 jmv74211 deleted the 2792-add-support-for-SUSE-OVAL-in-Vulnerability-Detector branch June 2, 2022 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Vulnerability Detector integration tests for SUSE Linux Enterprise
4 participants