Island: Remove config_passwords from report

Work being done in issue #1965 makes including config_passwords in the
report unnecessary.
This commit is contained in:
Mike Salvatore 2022-07-14 07:24:29 -04:00
parent 521396ff81
commit 60a1e79179
2 changed files with 2 additions and 10 deletions

View File

@ -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):

View File

@ -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(),