From 4320d3e08cb1a130a5808e522aeaa9962e1ff4d9 Mon Sep 17 00:00:00 2001 From: Shreya Date: Fri, 9 Jul 2021 19:53:08 +0530 Subject: [PATCH] cc: Change config field descriptions and add `info_box` field to ransomware config schema --- .../cc/services/config_schema/ransomware.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/monkey/monkey_island/cc/services/config_schema/ransomware.py b/monkey/monkey_island/cc/services/config_schema/ransomware.py index 64b986acb..70415110d 100644 --- a/monkey/monkey_island/cc/services/config_schema/ransomware.py +++ b/monkey/monkey_island/cc/services/config_schema/ransomware.py @@ -6,17 +6,14 @@ from common.common_consts.validation_formats import ( RANSOMWARE = { "title": "Ransomware", "type": "object", - "description": "This page allows you to configure the Infection Monkey to execute a ransomware " - "simulation. The Infection Monkey is capable of simulating a ransomware attack on your network " - "using a set of configurable behaviors. A number of precautions have been taken to ensure that " - "this ransomware simulation is safe for production environments.\n\nFor more information about " - "configuring the ransomware simulation, see " - ' the documentation.', "properties": { "encryption": { - "title": "Encryption", + "title": "Simulation", "type": "object", + "description": "To simulate ransomware encryption, create a directory and put some " + "files there to be encrypted. Do this on each machine on which you want to run the " + "ransomware encryption simulation.\n\nProvide the path to the directory that was " + "created on each machine:", "properties": { "enabled": { "title": "Encrypt files", @@ -25,6 +22,12 @@ RANSOMWARE = { "description": "Ransomware encryption will be simulated by flipping every bit " "in the files contained within the target directories.", }, + "info_box": { + "title": "", + "type": "object", + "info": "No files will be encrypted if a directory is not specified or doesn't " + "exist on a victim machine.", + }, "directories": { "title": "Directories to encrypt", "type": "object",