STIGhubSTIGhub
STIGhub— A free STIG search and compliance tool·STIGs updated 1 hour ago
Powered by Pylon·Privacy·Terms·Feedback·© 2026 Beacon Cloud Solutions, Inc.
← Back to Citrix NetScaler ALG Security Technical Implementation Guide

V-289095

CAT II (Medium)

The NetScaler Gateway must perform real-time scans of downloaded files and quarantine malicious code by integrating with an external ICAP-compliant antivirus server.

Rule ID

SV-289095r1318054_rule

STIG

Citrix NetScaler ALG Security Technical Implementation Guide

Version

V1R1

CCIs

CCI-002624CCI-001243

Discussion

Malicious code includes viruses, worms, Trojan horses, and spyware. The code provides the ability for a malicious user to read from and write to files and folders on a computer's hard drive. Malicious code may also be able to run and attach programs, which may allow the unauthorized distribution of malicious mobile code. Once this code is installed on endpoints within the network, unauthorized users may be able to breach firewalls and gain access to sensitive data. To guard against malicious code, real-time scans must be performed on files from external sources as they are downloaded and prior to being opened or executed. This requirement is limited to ALGs, web content filters, and packet inspection firewalls that perform malicious code detection as part of their functionality. Satisfies: SRG-NET-000248-ALG-000133, SRG-NET-000249-ALG-000145

Check Content

Verify the NetScaler Gateway is configured to perform real-time scans of files from external sources and delete/quarantine malicious code by offloading files to an ICAP-compliant antivirus server.

Note: This requirement is only Applicable if the NetScaler is configured as an outbound SSL Forward Proxy. If this feature is disabled, this requirement is Not Applicable.

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 "Content Inspection" checkboxes. If both are unchecked, this requirement is Not Applicable and no further auditing is required.
5. If enabled, navigate to Security >> Content Inspection >> ICAP Profiles.
6. Verify an ICAP profile is configured for antivirus scanning.
7. Navigate to Security >> Content Inspection >> Actions.
8. Verify an action exists that links to the ICAP profile and targets an antivirus server.
9. Navigate to Traffic Management >> Content Switching >> Virtual Servers (or Cache Redirection >> Virtual Servers).
10. Select the active outbound proxy virtual server and select "Edit".
11. Verify a Content Inspection policy is bound that directs traffic to the ICAP action.

Method 2: CLI Verification
1. Log in to the NetScaler CLI.
2. Run the following command to check the status of the required features:
   show ns feature
3. Locate the "Forward Proxy" and "Content Inspection" features. If these are "OFF", this requirement is Not Applicable and no further auditing is required.
4. Run the following command to verify the ICAP profile:
   show ns icapProfile
5. Run the following command to verify the Content Inspection action:
   show contentInspection action
6. Run the following command to verify the virtual server bindings:
   show cs vserver <outbound_vserver_name>
7. Verify that a Content Inspection policy is actively bound.

If SSL Forward Proxy is enabled but an ICAP profile, action, and policy for AV scanning and blocking are not configured and bound, this is a finding.

Fix Text

Configure the NetScaler Gateway to perform real-time scans of files and delete/quarantine malicious code by integrating with an external ICAP-compliant antivirus server.

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 Traffic Management >> Load Balancing >> Services and select "Add" to create a service for the external ICAP antivirus server (using TCP port 1344).
3. Navigate to Security >> Content Inspection >> ICAP Profiles and select "Add".
4. Enter a name, set the "Protocol" (e.g., /avscan), and set the "Mode" (e.g., RESPMOD). Select "Create".
5. Navigate to Security >> Content Inspection >> Actions and select "Add".
6. Enter a name, set the Type to ICAP, select the Server Name created in Step 2, and select the ICAP Profile created in Step 4. Select "Create".
7. Navigate to Security >> Content Inspection >> Policies and select "Add".
8. Enter a name, select the Action created in Step 6, and enter an expression to identify file traffic. Select "Create".
9. Navigate to Traffic Management >> Content Switching >> Virtual Servers (or the applicable outbound virtual server).
10. Select the outbound proxy virtual server, select "Edit", and bind the Content Inspection policy created in Step 8.
11. Save the configuration.

Method 2: CLI Configuration
1. Log in to the NetScaler CLI.
2. Run the following command to create a service for the ICAP server:
   add service <icap_service_name> <av_server_ip> TCP 1344
3. Run the following command to create an ICAP profile:
   add ns icapProfile <icap_profile_name> -uri "/avscan" -Mode RESPMOD
4. Run the following command to create a Content Inspection action:
   add contentInspection action <ci_action_name> -type ICAP -serverName <icap_service_name> -icapProfileName <icap_profile_name>
5. Run the following command to create a Content Inspection policy:
   add contentInspection policy <ci_policy_name> -rule 'HTTP.RES.HEADER("Content-Type").CONTAINS("application")' -action <ci_action_name>
6. Run the following command to bind the policy to the outbound virtual server:
   bind cs vserver <outbound_vserver_name> -policyName <ci_policy_name> -priority <priority_number> -type RESPONSE
7. Run the following command to save the configuration:
   save ns config