diff --git a/deps/wazuh_testing/wazuh_testing/vulnerability_detector.py b/deps/wazuh_testing/wazuh_testing/vulnerability_detector.py index 5e059c11e0..a259a1b91e 100644 --- a/deps/wazuh_testing/wazuh_testing/vulnerability_detector.py +++ b/deps/wazuh_testing/wazuh_testing/vulnerability_detector.py @@ -242,12 +242,12 @@ def update_last_scan(last_scan=0, agent="000"): def insert_hotfix(agent="000", scan_id=int(time()), scan_time=datetime.datetime.now().strftime("%Y/%m/%d %H:%M:%S"), - hotfix="000000"): + hotfix="000000", checksum="dummychecksum"): path = os.path.join(DB_PATH, f"{agent}.db") query_string = f'''INSERT INTO sys_hotfixes - (scan_id, scan_time, hotfix) + (scan_id, scan_time, hotfix, checksum) VALUES - ({scan_id}, "{scan_time}", "{hotfix}") + ({scan_id}, "{scan_time}", "{hotfix}", "{checksum}") ''' update_last_scan() metadata_query_string = f'update vuln_metadata set HOTFIX_SCAN_ID="{scan_id}"'