From dabc3cb00412e79bdcc01ce7e94fa0d15fe37b3f Mon Sep 17 00:00:00 2001 From: vakaris_zilius Date: Thu, 9 Jun 2022 09:15:25 +0000 Subject: [PATCH] Island: Remove updating agent configuration with stolen credentials --- monkey/monkey_island/cc/services/config.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/monkey/monkey_island/cc/services/config.py b/monkey/monkey_island/cc/services/config.py index 68535e5f1..2cd025434 100644 --- a/monkey/monkey_island/cc/services/config.py +++ b/monkey/monkey_island/cc/services/config.py @@ -153,10 +153,6 @@ class ConfigService: item_value = get_datastore_encryptor().encrypt(item_value) mongo.db.config.find_one().update({"$addToSet": {item_key: item_value}}, upsert=False) - mongo.db.monkey.update( - {}, {"$addToSet": {"config." + item_key.split(".")[-1]: item_value}}, multi=True - ) - @staticmethod def creds_add_username(username): ConfigService.add_item_to_config_set_if_dont_exist(