From 3b69446185972516d3fd74d097afae6a3367a761 Mon Sep 17 00:00:00 2001 From: Daniel Pascual Date: Wed, 7 Aug 2024 17:10:28 +0200 Subject: [PATCH] WIP --- .../modules/expansion/google_threat_intelligence.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/misp_modules/modules/expansion/google_threat_intelligence.py b/misp_modules/modules/expansion/google_threat_intelligence.py index 32458300..2b967f20 100644 --- a/misp_modules/modules/expansion/google_threat_intelligence.py +++ b/misp_modules/modules/expansion/google_threat_intelligence.py @@ -123,9 +123,9 @@ class GoogleThreatIntelligenceParser: value=get_key( report, ('attributes.popular_threat_classification' '.suggested_threat_label'))) - analysis = report.get('last_analysis_stats') - total = self.get_total_analysis(analysis, - report.get('known_distributors')) + analysis = report.get_key('attributes.last_analysis_stats') + total = self.get_total_analysis( + analysis, report.get_key('attributes.known_distributors')) detection_ratio = f"{analysis['malicious']}/{total}" if analysis else '-/-' report_object.add_attribute( 'detection-ratio', type='text',