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

Merge 4.5.2 into 4.6.0 #4418

Merged
merged 30 commits into from
Aug 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
bb56c93
feat(#4281): New invalid decoder test case for wazuh-logtest
vikman90 Jul 6, 2023
145d456
fix(#4281): Fix invalid_decoder_syntax.yaml file line lengths
vikman90 Jul 13, 2023
989f966
Merge pull request #4286 from wazuh/4281-add-analysisd-decoder-test
vikman90 Jul 13, 2023
c31208d
feat(#4325): upgrade pyyaml to 6.0.1
jnasselle Jul 18, 2023
cb06e6b
feat: bump version 4.5.2
juliamagan Jul 19, 2023
b908d39
Merge pull request #4329 from wazuh/bump-version-4.5.2
juliamagan Jul 19, 2023
2ad0ac5
Merge pull request #4326 from wazuh/fix/4325-upgrade-pyyaml-to-6.0.1
davidjiglesias Jul 19, 2023
0344a58
fix(#4275): modified year field in test_update_from_year
lsayanes Jul 5, 2023
912c80e
fix(#4275): update custom feeds to NVD 2.0 structure
Leoquicenoz Jul 6, 2023
0eda4d6
fix(#4275): deprecate NVD update_from_year option and related changes
Jul 6, 2023
ca2ba0e
fix(#4275): NVD feed must be in one line
Jul 18, 2023
29fb4ce
fix(#4275): more NVD feed one line fix
Jul 18, 2023
918ac65
style(#4275): fix quoted errors in YAML file
Jul 18, 2023
7811dd6
style(#4275): added changelog entry and fixed indexing problems
MarcelKemp Jul 19, 2023
71ae8d9
Merge branch '4.5.0' into merge-4.5.0-into-4.5.1
Rebits Jul 21, 2023
703efb7
Merge pull request #4345 from wazuh/merge-4.5.0-into-4.5.1
Rebits Jul 21, 2023
5e75f03
Merge remote-tracking branch 'origin/4.5.1' into merge-4.5.1-into-4.5.2
Rebits Jul 21, 2023
74d158e
Merge pull request #4347 from wazuh/merge-4.5.1-into-4.5.2
Rebits Jul 21, 2023
ede149c
Merge pull request #4327 from wazuh/4275-NVD-2.0-ITs
Dwordcito Jul 24, 2023
358b15c
fix: delete update_from_year for nvd
juliamagan Jul 28, 2023
9da6f68
Merge pull request #4372 from wazuh/enhancement/4302-deprecate-update…
davidjiglesias Aug 2, 2023
15930f6
docs: update changelog
juliamagan Aug 4, 2023
dc5ba5a
Merge pull request #4397 from wazuh/enhancement/4396-update-changelog
juliamagan Aug 4, 2023
e124b36
docs: update changelog
juliamagan Aug 4, 2023
b51f4ad
Merge pull request #4398 from wazuh/enhancement/4395-update-changelog
juliamagan Aug 4, 2023
c2f9ac1
Merge branch 4.5 into 4.5.1
BelenValdivia Aug 10, 2023
395fd7c
Merge pull request #4416 from wazuh/merge-4.5-into-4.5.1
Rebits Aug 11, 2023
0b0cd22
merge: branch '4.5.1' into merge-4.5.1-into-4.5.2
Rebits Aug 11, 2023
0726ece
Merge pull request #4417 from wazuh/merge-4.5.1-into-4.5.2
havidarou Aug 11, 2023
7c9d30a
merge: branch '4.5.2' into merge-4.5.2-into-4.6.0
Rebits Aug 11, 2023
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
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,31 @@ Release report: TBD
- Fix an error in the cluster performance tests related to CSV parser ([#2999](https://github.com/wazuh/wazuh-qa/pull/2999)) \- (Framework + Tests)
- Fix bug in the framework on migration tool ([#4027](https://github.com/wazuh/wazuh-qa/pull/4027)) \- (Framework)

## [4.5.2] - TBD

Wazuh commit: TBD \
Release report: TBD

## [4.5.1] - TBD

Wazuh commit: TBD \
Release report: TBD

### Added

- Add an integration test to check the wazuh-analysisd's decoder parser ([#4286](https://github.com/wazuh/wazuh-qa/pull/4286)) \- (Tests)

## [4.5.0] - TBD

Wazuh commit: TBD \
Release report: TBD

### Changed

- Delete `update_from_year` from system and E2E tests configuration ([#4372](https://github.com/wazuh/wazuh-qa/pull/4372)) \- (Tests)
- Upgrade PyYAML to 6.0.1. ([#4326](https://github.com/wazuh/wazuh-qa/pull/4326)) \- (Framework)
- Change Vulnerability Detector ITs to support the development of the NVD 2.0 refactor. ([#4327](https://github.com/wazuh/wazuh-qa/pull/4327)) \- (Tests)

## [4.4.5] - 10-07-2023

Wazuh commit: https://github.com/wazuh/wazuh/commit/8d17d2c9c11bc10be9a31c83bc7c17dfbac0d2a0 \
Expand Down
4 changes: 2 additions & 2 deletions deps/wazuh_testing/wazuh_testing/db_interface/cve_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_metadata_timestamp(provider_os):
return result[0]


def get_nvd_metadata_timestamp(year):
def get_nvd_metadata_timestamp():
"""Get the NVD timestamp data for a specific year from nvd_metadata table.

Args:
Expand All @@ -221,7 +221,7 @@ def get_nvd_metadata_timestamp(year):
Returns:
str: Timestamp data. (example: 2022-03-03T03:00:01-05:00)
"""
query_string = f"SELECT timestamp FROM nvd_metadata WHERE year={year}"
query_string = f"SELECT timestamp FROM nvd_metadata"
result = get_sqlite_query_result(CVE_DB_PATH, query_string)

if len(result) == 0:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ def feed_is_recently_updated(provider_name, provider_os, threshold_weeks):
boolean: True if the feed is considered recently updated, False otherwise.
"""
if provider_name == 'National Vulnerability Database':
current_year = datetime.now().year
feed_update_timestamp = cve_db.get_nvd_metadata_timestamp(year=current_year)
feed_update_timestamp = cve_db.get_nvd_metadata_timestamp()
else:
feed_update_timestamp = cve_db.get_metadata_timestamp(provider_os=provider_os)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,6 @@ def check_obtaining_software_failure_log(agent_id='000', num_attemps=5):
f"{num_attemps} attempts. Skipping agent until the next scan.")


def check_nvd_download_log(update_year):
"""Check that the NVD download has started.

Args:
update_year (int): Year specified in <update_from_year>.
"""
check_vuln_detector_event(timeout=vd.T_40, callback=fr".*Downloading .*nvdcve-\d.\d-{update_year}.meta.*",
error_message='NVD feed download did not started',
prefix=r'.*wazuh-modulesd:download.*')


def check_invalid_provider_update_from_year_log(provider):
"""Check that the warning message is logged correctly.

Expand All @@ -259,8 +248,8 @@ def check_invalid_provider_update_from_year_log(provider):
"""
if provider == 'redhat':
callback = "INFO: 'update_from_year' option at module 'vulnerability-detector' is deprecated"
elif provider == 'msu':
callback = "WARNING: 'update_from_year' option cannot be used for 'msu' provider."
elif provider == 'msu' or provider == 'nvd':
callback = f"WARNING: 'update_from_year' option cannot be used for '{provider}' provider."
else:
callback = f"WARNING: Invalid option 'update_from_year' for '{provider}' provider at 'vulnerability-detector'"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
<!-- Aggregate vulnerabilities -->
<provider name="nvd">
<enabled>yes</enabled>
<update_from_year>2021</update_from_year>
<update_interval>1h</update_interval>
</provider>
</vulnerability-detector>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
<!-- Aggregate vulnerabilities -->
<provider name="nvd">
<enabled>yes</enabled>
<update_from_year>2021</update_from_year>
<update_interval>1h</update_interval>
</provider>
</vulnerability-detector>
Expand Down
Loading