Rule ID
SV-289126r1318147_rule
Version
V1R1
CCIs
DoS attacks can take multiple forms but have the common objective of overloading or blocking a network or host to deny or seriously degrade performance. If the network does not provide safeguards against DoS attack, network resources will be unavailable to users. Installation of an ALG at key boundaries in the architecture mitigates the risk of DoS attacks. These attacks can be detected by matching observed communications traffic with patterns of known attacks and monitoring for anomalies in traffic volume/type. The ALG must include protection against DoS attacks that originate from inside the enclave which can affect either internal or external systems. These attacks may use legitimate or rogue endpoints from inside the enclave. These attacks can be simple "floods" of traffic to saturate circuits or devices, malware that consumes CPU and memory on a device or causes it to crash, or a configuration issue that disables or impairs the proper function of a device. For example, an accidental or deliberate misconfiguration of a routing table can misdirect traffic for multiple networks. To comply with this requirement, the ALG must monitor outbound traffic for indications of known and unknown DoS attacks. Audit log capacity management along with techniques which prevent the logging of redundant information during an attack also guard against DoS attacks.
Verify that the NetScaler Gateway blocks outbound traffic containing DoS attacks if configured as an outbound proxy. Method 1: GUI Verification 1. Log in to the NetScaler GUI. 2. Navigate to System >> Settings. 3. Select "Configure Advanced Features". 4. Verify the status of the "Forward Proxy" and "Cache Redirection" checkboxes. If both are unchecked, this requirement is Not Applicable. 5. If enabled, navigate to Traffic Management >> Content Switching >> Virtual Servers. 6. Select the outbound proxy virtual server and select "Edit". 7. Verify an active Responder policy is bound to drop or restrict traffic when rate thresholds are exceeded (similar to the inbound rate-limiting configuration). Method 2: CLI Verification 1. Log in to the NetScaler CLI. 2. Run the following command to check if "Forward Proxy" and "Cache Redirection" are active: show ns feature 3. Locate the "Forward Proxy" (ForwardProxy) and "Cache Redirection" (CR) features in the output. 4. If these features are "OFF", this requirement is Not Applicable and no further auditing is required. 5. If these features are "ON", run the following command to verify that an outbound Rate-Limiting or Responder policy is bound to the Content Switching virtual server handling the outbound proxy traffic: show cs vserver <outbound_cs_vserver_name> 6. Verify an active Responder policy is bound to drop or restrict traffic when rate thresholds are exceeded. If SSL Forward Proxy is enabled and no outbound rate-limiting or DoS prevention policies are bound, this is a finding.
Configure the NetScaler Gateway to block outbound traffic containing DoS attacks when used as an outbound SSL Forward Proxy.
Note: No action is required if the NetScaler is not deployed as an outbound SSL Forward Proxy.
Method 1: GUI Configuration
1. Log in to the NetScaler GUI.
2. Navigate to AppExpert >> Rate Limiting >> Selectors and select "Add".
3. Enter a name to track internal client connection rates (e.g., CLIENT.IP.SRC) and select "Create".
4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers and select "Add".
5. Enter a name, select the Selector created in Step 3, set the "Threshold" and "Time Slice" to organizationally defined limits, and select "Create".
6. Navigate to AppExpert >> Responder >> Policies and select "Add".
7. Enter a name, set the "Action" to "DROP", and in the expression box, enter "sys.check_limit" ("<limit_identifier_name>"). Select "Create".
8. Navigate to Traffic Management >> Content Switching >> Virtual Servers.
9. Select the outbound "Content Switching Proxy Virtual Server" and select "Edit".
10. Bind the Responder policy created in Step 7.
11. Save the configuration.
Method 2: CLI Configuration
1. Log in to the NetScaler CLI.
2. Run the following command to create an outbound Rate-Limit Selector to track internal client connection rates:
add stream selector <limit_selector_name> "CLIENT.IP.SRC"
3. Run the following command to create a Limit Identifier:
add ns limitIdentifier <limit_identifier_name> -threshold <threshold_value> -timeSlice <time_slice_in_ms> -selectorName <limit_selector_name>
4. Run the following command to create a Responder Policy to block outbound traffic exceeding the threshold:
add responder policy <responder_policy_name> "sys.check_limit(\"<limit_identifier_name>\")" DROP
5. Run the following command to bind the Responder policy to the outbound Content Switching Proxy Virtual Server:
bind cs vserver <outbound_cs_vserver_name> -policyName <responder_policy_name> -priority <priority_number>
6. Run the following command to save the configuration:
save ns config