Skip to content

Commit

Permalink
Update all indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloperezj committed Jul 10, 2024
1 parent c8ded92 commit ea9107d
Showing 1 changed file with 24 additions and 9 deletions.
33 changes: 24 additions & 9 deletions Packs/VirusTotal/Integrations/VirusTotalV3/VirusTotalV3.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,19 @@ def to_context(self):
context = super().to_context()
file_context = context[super().CONTEXT_PATH]

file_context['VTVendors'] = {}

if self.count_vt_vendors_which_flagged_malicious is not None:
file_context['Count VT Vendors Which Flagged Malicious'] = self.count_vt_vendors_which_flagged_malicious
file_context['VTVendors']['EngineDetections'] = self.count_vt_vendors_which_flagged_malicious

if self.vt_vendors_which_flagged_malicious is not None:
file_context['VT Vendors Which Flagged Malicious'] = self.vt_vendors_which_flagged_malicious
file_context['VTVendors']['EngineVendors'] = self.vt_vendors_which_flagged_malicious

if self.vt_detection_names is not None:
file_context['VT Detection Names'] = self.vt_detection_names
file_context['VTVendors']['EngineDetectionNames'] = self.vt_detection_names

if not file_context['VTVendors']:
file_context.pop('VTVendors', None)

return context

Expand Down Expand Up @@ -201,14 +206,19 @@ def to_context(self):
context = super().to_context()
file_context = context[super().CONTEXT_PATH]

file_context['VTVendors'] = {}

if self.count_vt_vendors_which_flagged_malicious is not None:
file_context['Count VT Vendors Which Flagged Malicious'] = self.count_vt_vendors_which_flagged_malicious
file_context['VTVendors']['EngineDetections'] = self.count_vt_vendors_which_flagged_malicious

if self.vt_vendors_which_flagged_malicious is not None:
file_context['VT Vendors Which Flagged Malicious'] = self.vt_vendors_which_flagged_malicious
file_context['VTVendors']['EngineVendors'] = self.vt_vendors_which_flagged_malicious

if self.vt_detection_names is not None:
file_context['VT Detection Names'] = self.vt_detection_names
file_context['VTVendors']['EngineDetectionNames'] = self.vt_detection_names

if not file_context['VTVendors']:
file_context.pop('VTVendors', None)

return context

Expand Down Expand Up @@ -239,14 +249,19 @@ def to_context(self):
context = super().to_context()
file_context = context[super().CONTEXT_PATH]

file_context['VTVendors'] = {}

if self.count_vt_vendors_which_flagged_malicious is not None:
file_context['Count VT Vendors Which Flagged Malicious'] = self.count_vt_vendors_which_flagged_malicious
file_context['VTVendors']['EngineDetections'] = self.count_vt_vendors_which_flagged_malicious

if self.vt_vendors_which_flagged_malicious is not None:
file_context['VT Vendors Which Flagged Malicious'] = self.vt_vendors_which_flagged_malicious
file_context['VTVendors']['EngineVendors'] = self.vt_vendors_which_flagged_malicious

if self.vt_detection_names is not None:
file_context['VT Detection Names'] = self.vt_detection_names
file_context['VTVendors']['EngineDetectionNames'] = self.vt_detection_names

if not file_context['VTVendors']:
file_context.pop('VTVendors', None)

return context

Expand Down

0 comments on commit ea9107d

Please sign in to comment.