diff --git a/monkey/common/agent_configuration/agent_sub_configuration_schemas.py b/monkey/common/agent_configuration/agent_sub_configuration_schemas.py index 3c46cd0fe..a541a8aac 100644 --- a/monkey/common/agent_configuration/agent_sub_configuration_schemas.py +++ b/monkey/common/agent_configuration/agent_sub_configuration_schemas.py @@ -94,7 +94,7 @@ class ICMPScanConfigurationSchema(Schema): class TCPScanConfigurationSchema(Schema): timeout = fields.Float() - ports = fields.List(fields.Int()) + ports = fields.List(fields.Int(validate=validate.Range(min=0, max=65535))) @post_load @freeze_lists