File tree 3 files changed +17
-0
lines changed
3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1
1
RANSOMWARE = {
2
2
"title" : "Ransomware" ,
3
3
"type" : "object" ,
4
+ "description" : "This page allows you to configure the Infection Monkey to execute a ransomware "
5
+ "simulation. The Infection Monkey is capable of simulating a ransomware attack on your network "
6
+ "using a set of configurable behaviors. A number of precautions have been taken to ensure that "
7
+ "this ransomware simulation is safe for production environments.\n \n For more information about "
8
+ "configuring the ransomware simulation, see "
9
+ '<a href="https://guardicore.com/infectionmonkey/docs/usage/use-cases/ransomware-simulation" '
10
+ 'target="_blank"> the documentation</a>.' ,
4
11
"properties" : {
5
12
"encryption" : {
6
13
"title" : "Encryption" ,
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+
3
+ function HtmlFieldDescription ( props ) {
4
+ var content_obj = { __html : props . description } ;
5
+ return < p id = { props . id } className = 'field-description' dangerouslySetInnerHTML = { content_obj } /> ;
6
+ }
7
+
8
+ export default HtmlFieldDescription ;
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import isUnsafeOptionSelected from '../utils/SafeOptionValidator.js';
17
17
import ConfigExportModal from '../configuration-components/ExportConfigModal' ;
18
18
import ConfigImportModal from '../configuration-components/ImportConfigModal' ;
19
19
import applyUiSchemaManipulators from '../configuration-components/UISchemaManipulators.tsx' ;
20
+ import HtmlFieldDescription from '../configuration-components/HtmlFieldDescription.js' ;
20
21
21
22
const ATTACK_URL = '/api/attack' ;
22
23
const CONFIG_URL = '/api/configuration/island' ;
@@ -411,6 +412,7 @@ class ConfigurePageComponent extends AuthComponent {
411
412
setPbaFilenameLinux : this . setPbaFilenameLinux ,
412
413
selectedSection : this . state . selectedSection
413
414
} )
415
+ formProperties [ 'fields' ] = { DescriptionField : HtmlFieldDescription } ;
414
416
formProperties [ 'formData' ] = this . state . currentFormData ;
415
417
formProperties [ 'onChange' ] = this . onChange ;
416
418
formProperties [ 'customFormats' ] = formValidationFormats ;
You can’t perform that action at this time.
0 commit comments