From 11f48a95be5516eff969078b0f52a5c69eab9e93 Mon Sep 17 00:00:00 2001
From: Shreya Malviya <shreya.malviya@gmail.com>
Date: Thu, 10 Mar 2022 16:24:37 +0530
Subject: [PATCH] Island: Fix mongo query in report generation for exploits

---
 monkey/monkey_island/cc/services/reporting/report.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/monkey/monkey_island/cc/services/reporting/report.py b/monkey/monkey_island/cc/services/reporting/report.py
index c2a7e7066..6b2edc13e 100644
--- a/monkey/monkey_island/cc/services/reporting/report.py
+++ b/monkey/monkey_island/cc/services/reporting/report.py
@@ -142,7 +142,7 @@ class ReportService:
     @staticmethod
     def get_exploits() -> List[dict]:
         query = [
-            {"$match": {"telem_category": "exploit", "data.result": True}},
+            {"$match": {"telem_category": "exploit", "data.exploitation_result": True}},
             {
                 "$group": {
                     "_id": {"ip_address": "$data.machine.ip_addr"},