From 45de7f6cac5ae0672c6bbffe738038d592abd400 Mon Sep 17 00:00:00 2001 From: Daniel Pascual Date: Fri, 10 May 2024 12:40:23 +0200 Subject: [PATCH 1/3] coverage test --- .../Integrations/VirusTotalV3/VirusTotalV3.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.py b/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.py index 14433ce1b96f..d9b9faa7f9c5 100644 --- a/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.py +++ b/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.py @@ -851,17 +851,10 @@ def is_preferred_vendors_pass_malicious(self, analysis_results: dict) -> bool: item for item in preferred_vendor_scores.values() if item.get('category') == 'malicious' ] if len(malicious_trusted_vendors) >= self.trusted_vendors_threshold: - self.logs.append( - f'{len(malicious_trusted_vendors)} trusted vendors found the hash malicious. \n' - f'The trusted vendors threshold is {self.trusted_vendors_threshold}. \n' - f'Malicious check: {(len(malicious_trusted_vendors) >= self.trusted_vendors_threshold)=}. ' - ) + return True else: - self.logs.append( - f'Those preferred vendors found the hash malicious: {malicious_trusted_vendors}. ' - f'They do not pass the threshold {self.trusted_vendors_threshold}. ' - ) + return False def is_malicious_by_threshold(self, analysis_stats: dict, threshold: int) -> bool: From 96746ba5d1bb37724e8ad1ebfc7608f4a6c395fd Mon Sep 17 00:00:00 2001 From: Daniel Pascual Date: Fri, 10 May 2024 12:55:18 +0200 Subject: [PATCH 2/3] test --- Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml b/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml index c4656f24a653..26eb8ba57175 100644 --- a/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml +++ b/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml @@ -1666,7 +1666,7 @@ script: description: The analysis ID. type: String - dockerimage: demisto/python3:3.10.13.89009 + dockerimage: demisto/python3:3.10.13.92207 tests: - VirusTotalV3-test - VirusTotal (API v3) Detonate Test From 7983aeccc1d6aedf2158f52248de7c52223d8002 Mon Sep 17 00:00:00 2001 From: Daniel Pascual Date: Fri, 10 May 2024 12:58:13 +0200 Subject: [PATCH 3/3] test --- Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml b/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml index 26eb8ba57175..3b062030caf6 100644 --- a/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml +++ b/Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.yml @@ -1666,7 +1666,7 @@ script: description: The analysis ID. type: String - dockerimage: demisto/python3:3.10.13.92207 + dockerimage: demisto/python3:3.10.14.92207 tests: - VirusTotalV3-test - VirusTotal (API v3) Detonate Test