Rule ID
SV-289088r1318033_rule
Version
V1R1
CCIs
System entry and exit points include firewalls, remote access servers, workstations, electronic mail servers, web servers, proxy servers, notebook computers, and mobile devices. Malicious code includes viruses, worms, Trojan horses, and spyware. Malicious code can also be encoded in various formats contained within compressed or hidden files or hidden in files using techniques such as steganography. Malicious code can be inserted into systems in a variety of ways, including by electronic mail, the world wide web, and portable storage devices. Malicious code insertions occur through the exploitation of system vulnerabilities. A variety of technologies and methods exist to limit or eliminate the effects of malicious code. Malicious code protection mechanisms include both signature- and nonsignature-based technologies. Nonsignature-based detection mechanisms include artificial intelligence techniques that use heuristics to detect, analyze, and describe the characteristics or behavior of malicious code and to provide controls against such code for which signatures do not yet exist or for which existing signatures may not be effective. Malicious code for which active signatures do not yet exist or may be ineffective includes polymorphic malicious code (i.e., code that changes signatures when it replicates). Nonsignature-based mechanisms also include reputation-based technologies. In addition to the above technologies, pervasive configuration management, comprehensive software integrity controls, and anti-exploitation software may be effective in preventing the execution of unauthorized code. Malicious code may be present in commercial off-the-shelf software as well as custom-built software and could include logic bombs, backdoors, and other types of attacks that could affect organizational mission and business functions. In situations where malicious code cannot be detected by detection methods or technologies, organizations rely on other types of controls, including secure coding practices, configuration management and control, trusted procurement processes, and monitoring practices to ensure that software does not perform functions other than the functions intended. Organizations may determine that, in response to the detection of malicious code, different actions may be warranted. For example, organizations can define actions in response to malicious code detection during periodic scans, the detection of malicious downloads, or the detection of maliciousness when attempting to open or execute files.
Verify the NetScaler Gateway implements signature-based and/or nonsignature-based malicious code protection mechanisms at system entry and exit points. Method 1: GUI Verification 1. Log in to the NetScaler GUI. 2. Navigate to System >> Settings >> Configure Advanced Features and check the box for "Citrix Web App Firewall". Select "OK". 3. If the appliance is deployed as an outbound proxy (exit point), verify the "Content Inspection" checkbox is also selected. 4. Navigate to Security >> Citrix Web App Firewall >> Profiles. 5. Select the active WAF profile, select "Edit", navigate to "Security Checks", and verify critical checks (e.g., Cross-Site Scripting, SQL Injection) are configured to "Block". 6. If deployed as an outbound proxy, navigate to Security >> Content Inspection >> ICAP Profiles and verify an external ICAP-based antivirus scanning engine is configured to inspect and block malicious files. 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. Verify "Citrix Web App Firewall" (AppFw) is "ON". If deployed as an outbound proxy, verify "Content Inspection" is also "ON". 4. Run the following command to view the active WAF profile settings: show appfw profile <profile_name> 5. Verify the output displays that critical security checks are configured to block. 6. If deployed as an outbound proxy, run the following command to verify the ICAP profile: show ns icapProfile 7. Verify an external ICAP-based antivirus scanning engine is configured. If WAF is not enabled and configured to protect inbound traffic, or if an outbound proxy is deployed without ICAP antivirus integration to protect exit points, this is a finding.
Configure the NetScaler Gateway to implement signature-based and/or nonsignature-based malicious code protection mechanisms at system entry and exit points. Method: Procedural Control 1. Configure Signature-Based Protection (WAF) for Inbound Traffic: a. Verify the Application Firewall feature is enabled. Update the globally bound WAF profile to block malicious code (such as Cross-Site Scripting and SQL Injection) and ensure a signature set is bound. (Follow the detailed procedures in the Fix for CTNS-AG-000260 and CTNS-AG-000490). 2. Configure File Inspection Protection (ICAP) for Outbound Traffic: a. If the appliance is deployed as an outbound SSL Forward Proxy, ensure the Content Inspection feature is enabled. Configure an ICAP profile and Content Inspection policy to scan and block malicious files via an external antivirus server. (Follow the detailed procedure in the Fix for CTNS-AG-000320). 3. Save the configuration.