diff --git a/monkey/monkey_island/cc/services/config_schema/config_schema.py b/monkey/monkey_island/cc/services/config_schema/config_schema.py index 2adefb455..7babfd1d3 100644 --- a/monkey/monkey_island/cc/services/config_schema/config_schema.py +++ b/monkey/monkey_island/cc/services/config_schema/config_schema.py @@ -20,7 +20,7 @@ SCHEMA = { # users will not accidentally chose unsafe options "definitions": { "exploiter_classes": EXPLOITER_CLASSES, - "credential_collector_classes": CREDENTIAL_COLLECTOR_CLASSES, + "credential_collectors": CREDENTIAL_COLLECTOR_CLASSES, "post_breach_actions": POST_BREACH_ACTIONS, "finger_classes": FINGER_CLASSES, }, diff --git a/monkey/monkey_island/cc/services/config_schema/monkey.py b/monkey/monkey_island/cc/services/config_schema/monkey.py index a9f9790f8..ed30a3c89 100644 --- a/monkey/monkey_island/cc/services/config_schema/monkey.py +++ b/monkey/monkey_island/cc/services/config_schema/monkey.py @@ -77,11 +77,11 @@ MONKEY = { "title": "Credential collection", "type": "object", "properties": { - "credential_collector_classes": { + "credential_collectors": { "title": "Credential collectors", "type": "array", "uniqueItems": True, - "items": {"$ref": "#/definitions/credential_collector_classes"}, + "items": {"$ref": "#/definitions/credential_collectors"}, "default": [ MIMIKATZ_COLLECTOR, SSH_COLLECTOR, diff --git a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js index c76d17fc2..632076921 100644 --- a/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js +++ b/monkey/monkey_island/cc/ui/src/components/configuration-components/UiSchema.js @@ -95,7 +95,7 @@ export default function UiSchema(props) { } }, credential_collectors: { - credential_collector_classes: { + credential_collectors: { classNames: 'config-template-no-header', 'ui:widget': AdvancedMultiSelect } diff --git a/monkey/monkey_island/cc/ui/src/components/utils/SafeOptionValidator.js b/monkey/monkey_island/cc/ui/src/components/utils/SafeOptionValidator.js index 515ddfd9d..ac6702328 100644 --- a/monkey/monkey_island/cc/ui/src/components/utils/SafeOptionValidator.js +++ b/monkey/monkey_island/cc/ui/src/components/utils/SafeOptionValidator.js @@ -17,8 +17,8 @@ function getPluginDescriptors(schema, config) { }, { name: 'CredentialCollectors', - allPlugins: schema.definitions.credential_collector_classes.anyOf, - selectedPlugins: config.monkey.credential_collectors.credential_collector_classes + allPlugins: schema.definitions.credential_collectors.anyOf, + selectedPlugins: config.monkey.credential_collectors.credential_collectors } ]); }