From 60a1e79179ed4fbd96f6a3d3dc2cc32cd2f6dc30 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Thu, 14 Jul 2022 07:24:29 -0400 Subject: [PATCH] Island: Remove config_passwords from report Work being done in issue #1965 makes including config_passwords in the report unnecessary. --- monkey/monkey_island/cc/models/report/report_dal.py | 11 ++--------- monkey/monkey_island/cc/services/reporting/report.py | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/monkey/monkey_island/cc/models/report/report_dal.py b/monkey/monkey_island/cc/models/report/report_dal.py index 76c43bae6..1b24dfcc2 100644 --- a/monkey/monkey_island/cc/models/report/report_dal.py +++ b/monkey/monkey_island/cc/models/report/report_dal.py @@ -3,16 +3,9 @@ from __future__ import annotations from bson import json_util from monkey_island.cc.models.report.report import Report -from monkey_island.cc.server_utils.encryption import ( - SensitiveField, - StringListEncryptor, - decrypt_dict, - encrypt_dict, -) +from monkey_island.cc.server_utils.encryption import decrypt_dict, encrypt_dict -sensitive_fields = [ - SensitiveField(path="overview.config_passwords", field_encryptor=StringListEncryptor) -] +sensitive_fields = [] def save_report(report_dict: dict): diff --git a/monkey/monkey_island/cc/services/reporting/report.py b/monkey/monkey_island/cc/services/reporting/report.py index 7da855f07..e044becea 100644 --- a/monkey/monkey_island/cc/services/reporting/report.py +++ b/monkey/monkey_island/cc/services/reporting/report.py @@ -504,7 +504,6 @@ class ReportService: report = { "overview": { "manual_monkeys": ReportService.get_manual_monkey_hostnames(), - "config_passwords": config_passwords, "config_exploits": ReportService.get_config_exploits(), "config_ips": ReportService.get_config_ips(), "config_scan": ReportService.get_config_scan(),