{"stig":{"title":"Citrix NetScaler ALG Security Technical Implementation Guide","version":"1","release":"1"},"checks":[{"vulnId":"V-289068","ruleId":"SV-289068r1317973_rule","severity":"medium","ruleTitle":"In the event of a system failure of the NetScaler Gateway function, the NetScaler Gateway must save diagnostic information, log system messages, and load the most current security policies, rules, and signatures when restarted.","description":"Failure in a secure state can address safety or security in accordance with the mission needs of the organization. Failure to a secure state helps prevent a loss of confidentiality, integrity, or availability in the event of a failure of the information system or a component of the system. Preserving state information helps to facilitate the restart of the NetScaler Gateway application and a return to the operational mode with less disruption.\n\nThis requirement applies to a failure of the NetScaler Gateway function rather than the device or operating system as a whole which is addressed in the Network Device Management SRG.\n\nSince it is usually not possible to test this capability in a production environment, systems should either be validated in a testing environment or prior to installation. This requirement is usually a function of the design of the IDPS component. Compliance can be verified by acceptance/validation processes or vendor attestation.","checkContent":"Verify that in the event of a system failure, the NetScaler Gateway saves diagnostic information, logs system messages, and loads the most current security policies upon restart.\n\nCLI Only Method:\n1. Log in to the NetScaler CLI.\n2. Run the following command to view the difference between the running configuration and the saved startup configuration:\n   diff ns config\n3. Verify that the command returns no output or differences, confirming that all running policies are saved and will reload upon restart.\n4. Run the following command to drop into the FreeBSD shell to verify the diagnostic directory:\n   shell\n5. Run the following command to verify the core dump storage directory exists on the filesystem:\n   ls -ld /var/core/\n6. Verify the output displays the directory path \"/var/core/\".\n7. Run the following command to exit the shell:\n   exit\n\nIf the \"/var/core/\" directory is missing, or if there is a discrepancy between the running and saved configurations, this is a finding.","fixText":"Configure the NetScaler Gateway to save diagnostic information, log system messages, and load the most current security policies upon restart.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Select the floppy disk icon in the top-right corner to save the active configuration to memory. This ensures the most current policies load upon reboot.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to save the active configuration to memory:\n   save ns config\n3. If the diagnostic directory was missing during the check, run the following command to drop into the shell:\n   shell\n4. Run the following command to create the directory:\n   mkdir -p /var/core/\n5. Run the following command to exit the shell:\n   exit","ccis":["CCI-001665"]},{"vulnId":"V-289069","ruleId":"SV-289069r1317976_rule","severity":"medium","ruleTitle":"The ALG must be configured to prohibit or restrict the use of functions, ports, protocols, and/or services, as defined in the Ports, Protocols, and Services Management Category Assurance List (PPSM CAL) and vulnerability assessments.","description":"To prevent unauthorized connection of devices, unauthorized transfer of information, or unauthorized tunneling (i.e., embedding of data types within data types); organizations must disable or restrict unused or unnecessary physical and logical ports/protocols on information systems.\n\nNetScalers are capable of providing a wide variety of functions and services. Some of the functions and services provided by default may not be necessary to support essential organizational operations. DoW continually assesses the ports, protocols, and services that can be used for network communications. Some ports, protocols or services have known exploits or security weaknesses. Network traffic using these ports, protocols, and services must be prohibited or restricted in accordance with DoW policy. The NetScaler is a key network element for preventing these noncompliant ports, protocols, and services from causing harm to DoW information systems.\n\nThe NetScaler must be configured to prevent or restrict the use of prohibited ports, protocols, and services throughout the network by filtering the network traffic and disallowing or redirecting traffic as necessary. Default and updated policy filters from the vendors will disallow older version of protocols and applications and will address most known nonsecure ports, protocols, and/or services. However, sources for further policy filters are the IAVMs and the PPSM requirements.","checkContent":"Verify the NetScaler Gateway prohibits or restricts the use of functions, ports, protocols, and services to align with the DoW PPSM CAL.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Configure Basic Features\".\n4. Verify that only basic features required for the Gateway's operational mission (e.g., SSLVPN, REWRITE) are checked.\n5. Select \"Configure Advanced Features\".\n6. Verify that only advanced features required for the Gateway's operational mission (e.g., SSL, AAA) are checked.\n7. Navigate to System >> Network >> ACLs.\n8. Select the \"Extended ACLs\" tab.\n9. Verify that \"ALLOW\" rules explicitly define and restrict approved destination ports/protocols and that a default \"DENY\" rule exists.\n10. Navigate to System >> Network >> IPs.\n11. Select the IPV4s Tab.\n12. Select the NetScaler IP (NSIP) and select \"Edit\".\n13. Verify the \"Secure Access Only\" checkbox is selected.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command:\n   show ns feature\n3. Verify that only features required for the Gateway's operational mission are \"ON\" and all unused services are \"OFF\".\n4. Run the following command:\n   show ns acl\n5. Verify \"ALLOW\" rules explicitly define and restrict approved destination ports/protocols and that a default \"DENY\" rule exists.\n6. Run the following command:\n   show ns ip <NSIP_Address>\n7. Verify the output displays \"Restrict access: ENABLED\" to ensure insecure management protocols (Telnet/FTP/HTTP) are blocked.\n\nIf unused system features are enabled, if ACLs do not restrict ports/protocols, or if insecure management protocols are permitted, this is a finding.","fixText":"Configure the NetScaler Gateway to prohibit or restrict the use of unauthorized functions, ports, protocols, and services.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Disable Unused Features:\n   a. Navigate to System >> Settings.\n   b. Select \"Configure Basic Features\" under Modes and Features. Uncheck any unneeded features and select \"OK\".\n   c. Select \"Configure Advanced Features\". Uncheck any unneeded features (such as Content Switching, Cache Redirection, CallHome, IPv6 PT, GSLB) and select \"OK\".\n3. Restrict Management Access:\n   a. Navigate to System >> Network >> IPs.\n   b. Select the NSIP and select \"Edit\".\n   c. Select the \"Secure Access Only\" checkbox to disable unencrypted management protocols. Select \"OK\".\n4. Configure Extended ACLs:\n   a. Navigate to System >> Network >> ACLs and select the \"Extended ACLs\" tab.\n   b. Select \"Add\". Create specific \"ALLOW\" rules restricting authorized management subnets to approved destination ports and the NSIP. Select \"Create\".\n   c. Select \"Add\" again to create a default \"DENY\" catch-all rule with a lower precedence (higher priority number) to block all remaining unauthorized traffic. Select \"Create\".\n   d. Select the newly created rules, select the \"Action\" drop-down menu, and select \"Apply\" to commit them to the packet engine.\n5. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Disable unneeded system features using their respective abbreviations (e.g., CS for Content Switching, CH for CallHome):\n   disable ns feature CS\n   disable ns feature CR\n   disable ns feature CH\n3. Restrict management access to the NSIP:\n   set ns ip <NSIP_Address> -restrictAccess ENABLED\n4. Create an Extended ACL to allow specific authorized destination ports and protocols (repeat for each approved service port):\n   add ns acl <allow_acl_name> ALLOW -srcIP <authorized_subnet> -destIP <NSIP_Address> -protocol TCP -destPort <port> -priority 100\n5. Create a default catch-all \"DENY\" rule at the lowest precedence:\n   add ns acl <deny_acl_name> DENY -destIP <NSIP_Address> -protocol TCP -priority 9999\n6. Apply the ACLs to the active packet engine:\n   apply ns acls\n7. Save the configuration:\n   save ns config","ccis":["CCI-000382"]},{"vulnId":"V-289070","ruleId":"SV-289070r1318554_rule","severity":"medium","ruleTitle":"The ALG must use National Security Agency (NSA)-approved cryptographic algorithms and modules to protect National Security Systems (NSS) traffic.","description":"Use of weak or untested encryption algorithms undermines the purposes of using encryption to protect data. The ALG must implement cryptographic modules adhering to the higher standards approved by the federal government since this provides assurance they have been tested and validated.\n\nNIST cryptographic algorithms are approved by NSA to protect NSS. Based on an analysis of the impact of quantum computing, cryptographic algorithms specified by CNSSP-15 and approved for use in products in the CSfC program have been changed to more stringent protocols configure with increased bit sizes and other secure characteristics to protect against quantum computing threats. The Commercial National Security Algorithm (CNSA) Suite replaces Suite B.\n\nThis requirement also applies to Zero Trust initiatives.\n\nSatisfies: SRG-NET-000565-ALG-000010, SRG-NET-000352-ALG-000110","checkContent":"Verify the NetScaler Gateway uses cryptographic algorithms approved by NSA to protect NSS when transporting classified traffic or providing remote access to a classified network by operating in FIPS-validated mode.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Diagnostics.\n3. Select \"Command Line Interface\".\n4. Run the following command:\n   show system fipsStatus\n5. Verify the output explicitly states:\n   FipsStatus: System is operating in FIPS mode\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command:\n   show system fipsStatus\n3. Verify the output explicitly states:\n   FipsStatus: System is operating in FIPS mode\n\nIf the appliance is processing classified NSS traffic and is not operating in FIPS mode, this is a finding.","fixText":"Configure the NetScaler Gateway to operate in FIPS 140-3-validated mode to ensure cryptographic algorithms approved by NSA are used to protect NSS data.\n\nNo action is required for systems not deployed to protect classified NSS data. Enabling FIPS mode is a destructive action that will erase all cryptographic keys and certificates. This process must be performed during initial appliance setup or a planned maintenance window. A full backup of the system configuration must be created before proceeding.\n\nMethod: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Transfer all necessary FIPS-compliant certificates and keys to a secure external location.\n3. Run the following command to create a full backup of the appliance configuration:\n   create system backup <backup_name> -level FULL\n4. Run the following command to initiate FIPS mode (this requires setting new FIPS security officer and user passwords; for a new appliance, default passwords may be required):\n   set ssl fips -initHSM Level-2 <soPassword> <oldSoPassword> <userPassword>\n5. Run the following command to save the configuration:\n   save ns config\n6. Run the following command to reboot the appliance:\n   reboot\n7. Post-reboot, log back into the appliance, re-import all FIPS-compliant certificates and keys, and restore the necessary configuration from the backup.","ccis":["CCI-002450"]},{"vulnId":"V-289071","ruleId":"SV-289071r1317982_rule","severity":"medium","ruleTitle":"The ALG must validate the integrity of transmitted security attributes.","description":"If security attributes are not associated with the information being transmitted between components, then access control policies and information flows that depend on these security attributes will not function and unauthorized access may result. When data is exchanged, the security attributes associated with this data must be validated to ensure the data has not been changed.\n\nSecurity attributes are values associated with data content/structure and source/destination objects. These attributes are bound to the user and data objects and may include information about the data's purpose, creator, origin, access restrictions, access permissions, or classification. Specific security attributes used depend on the application or technology context. However, these attributes are used in information systems to implement security policy for access control and flow control for users, data, and traffic. Security attributes may be explicitly or implicitly associated with the information contained within the information system. \n\nValidation checking can be performed by various means, such as using a cryptographic hash function, boundary checking of values, checksums, or message authentication code.\n\nThis requirement also applies to Zero Trust initiatives.","checkContent":"Verify the NetScaler Gateway validates the integrity of transmitted security attributes by enforcing strong TLS encryption and the Web App Firewall (WAF) Cookie Consistency check.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers. \n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. Verify the TLS protocol settings based on the appliance configuration:\n   a. If an SSL Profile is bound: Select the pencil icon and edit the profile, then verify TLSv1.2 and/or TLSv1.3 is enabled, and legacy protocols (SSLv3, TLSv1.0, TLSv1.1) are disabled.\n   b. If no SSL Profile is bound: Select the pencil icon to edit \"SSL Parameters\", then verify TLSv1.2 and/or TLSv1.3 is enabled and legacy protocols are disabled.\n5. Navigate to System >> Settings >> Configure Advanced Features.\n6. Verify the \"Citrix Web App Firewall\" checkbox is selected.\n7. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n8. Select the active WAF profile and select \"Edit\".\n9. In the \"Advanced Settings\" menu on the right, select \"Security Checks\".\n10. In the main panel, verify that \"Cookie Consistency\" has \"Block\", \"Log\", and \"Stats\" enabled.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view the SSL settings of the Gateway Virtual Server:\n   show ssl vserver <gateway_vserver_name>\n3. If an SSL Profile is bound, run the following command to view the profile settings:\n   show ssl profile <profile_name>\n4. Verify the output of the applicable command (virtual server configuration or SSL profile configuration) displays that legacy protocols (SSLv3, TLSv1, TLSv11) are \"DISABLED\" and secure protocols (TLSv12 or TLSv13) are \"ENABLED\".\n5. Run the following command to verify if the Application Firewall feature is active:\n   show ns feature\n6. Verify the \"Citrix Web App Firewall\" (AppFw) feature is \"ON\".\n7. Run the following command to view the profile settings:\n   show appfw profile <profile_name>\n8. Verify the output displays that the Cookie Consistency check is configured to block and log (e.g., Cookie Consistency Action: block log stats).\n\nIf strong TLS encryption is not enforced, or if the WAF Cookie Consistency check is not enabled and configured to block, this is a finding.","fixText":"Configure the NetScaler Gateway to validate the integrity of transmitted security attributes using strong TLS and WAF Cookie Consistency.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Enforce Strong TLS Encryption: Navigate to Citrix Gateway >> Virtual Servers and select \"Edit\" on the active Gateway.\n3. Configure the TLS settings based on the appliance configuration:\n   a. If an SSL Profile is bound: Select the pencil icon and edit the profile, uncheck legacy protocols (SSLv3, TLSv1.0, TLSv1.1), ensure TLSv1.2 or TLSv1.3 is checked, and select \"OK\".\n   b. If no SSL Profile is bound: Select the pencil icon to edit \"SSL Parameters\", uncheck legacy protocols, ensure TLSv1.2 or TLSv1.3 is checked, and select \"OK\".\n4. Navigate to System >> Settings >> Configure Advanced Features, select the \"Citrix Web App Firewall\" checkbox, and select \"OK\".\n5. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n6. Select the active WAF profile and select \"Edit\".\n7. In Advanced Settings menu on the right, select \"Security Checks\".\n8. In the main panel, locate \"Cookie Consistency\" and check the boxes in the \"Block\", \"Log\", and \"Stats\" columns. Select \"OK\" or \"Done\".\n9. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Enforce strong TLS protocols based on the appliance configuration:\n   a. If an SSL profile is bound, set ssl profile: <profile_name> -ssl3 DISABLED -tls1 DISABLED -tls11 DISABLED -tls12 ENABLED\n   b. If no SSL profile is bound, set ssl vserver: <gateway_vserver_name> -ssl3 DISABLED -tls1 DISABLED -tls11 DISABLED -tls12 ENABLED\n3. Run the following command to enable the Application Firewall feature:\n   enable ns feature AppFw\n4. Run the following command to update the active WAF profile to enable the Cookie Consistency check:\n   set appfw profile <profile_name> -cookieConsistencyAction block log stats\n5. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001158"]},{"vulnId":"V-289072","ruleId":"SV-289072r1317985_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must be configured with a pre-established trust relationship and mechanisms with appropriate authorities (e.g., Active Directory or AAA server) which validate user account access authorizations and privileges.","description":"User account and privilege validation must be centralized to prevent unauthorized access using changed or revoked privileges.\n\nThe NetScaler can implement functions such as traffic filtering, authentication, access, and authorization functions based on computer and user privileges. However, local accounts must not be used to gain access to backend applications.\n\nSatisfies: SRG-NET-000138-ALG-000088, SRG-NET-000138-000089","checkContent":"Verify the NetScaler Gateway is configured to restrict user authentication traffic to specific, organization-defined authentication servers.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers and edit the active Gateway virtual server.\n3. In the \"Authentication Profile\" section, select the pencil icon to edit the bound profile.\n4. On the \"Configure Authentication Profile\" pane, select \"Edit\" to configure the \"Authentication Virtual Server\".\n5. On the \"Authentication Virtual Server\" pane, select \"Authentication Policies\" to view the bound policies.\n6. From the list of policies, identify the relevant primary authentication policy and note its associated \"Action\" name.\n7. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n8. Select the tab for the protocol in use (e.g., RADIUS, LDAP) and edit the \"Action\" noted in the previous step.\n9. Verify the action's configuration points to an approved, authoritative server infrastructure (e.g., \"Server IP\" for LDAP, \"Target LB Vserver\" for FIPS-compliant RADIUS).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to identify the bound Authentication Profile:\n   show vpn vserver <gateway_vserver_name>\n3. Run the following command to identify the AAA virtual server linked to the profile:\n   show authentication authnProfile <profile_name>\n4. Run the following command to view policies bound to that AAA virtual server:\n   show authentication vserver <aaa_vserver_name>\n5. Locate the active authentication policy and its action name. Run the appropriate command for the protocol in use:\n   show authentication ldapAction <action_name>\n   show authentication radiusAction <action_name>\n6. Verify the action points to an approved authoritative server infrastructure. For LDAP, verify the \"Server IP\" parameter. For FIPS-compliant RADIUS, verify the \"Target LB Vserver\" parameter.\n\nIf the Gateway is not configured to use a specific, approved authentication server, this is a finding.","fixText":"Configure the NetScaler Gateway to restrict user authentication traffic to specific, organization-defined authentication servers using an Authentication Profile.\n\nMethod 1: GUI Configuration\n\nPhase 1: Create the Authentication Action and Policy\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n3. Select the target Action Type (e.g., LDAP, TACACS, CERT) and select \"Add\".\n4. Provide a name, and in the \"Server IP\" field, enter the IP address of an authoritative server. Configure remaining parameters as required and select \"Create\".\n5. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Policy and select \"Add\".\n6. Provide a name, select the Action created in Step 4, enter \"true\" as the expression, and select \"Create\".\n\nPhase 2: Create the AAA Virtual Server and Bind the Policy\n7. Navigate to Security >> AAA - Application Traffic >> Virtual Servers and select \"Add\".\n8. Enter a name, select \"Non Addressable\" from the \"IP Address Type\" drop-down menu, select \"OK\", and select \"Continue\".\n9. In the \"Advanced Authentication Policies\" section, select \"Authentication Policy\".\n10. In the \"Select Policy\" drop-down menu, select the policy created in Step 6, configure the remaining fields, and select \"Bind\".\n\nPhase 3: Create and Bind the Authentication Profile\n11. Navigate to Security >> AAA - Application Traffic >> Authentication Profile and select \"Add\".\n12. Name the profile, select the AAA Virtual Server created in Step 8, and select \"Create\".\n13. Navigate to Citrix Gateway >> Virtual Servers and edit the active Gateway Virtual Server.\n14. In the \"Authentication Profile\" section, select the \"Edit\" icon and select the profile created in Step 12 to bind it to the Gateway.\n15. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create the secure LDAP authentication action:\n   add authentication ldapAction <action_name> -serverIP <auth_server_ip> -serverPort 636 -ldapBase \"dc=example,dc=com\" -secType SSL\n3. Run the following command to create an authentication policy to link to the action:\n   add authentication Policy <policy_name> -rule true -action <action_name>\n4. Run the following command to create a nonaddressable Authentication Virtual Server:\n   add authentication vserver <aaa_vserver_name> SSL 0.0.0.0\n5. Run the following command to bind the Authentication Policy to the Authentication Virtual Server:\n   bind authentication vserver <aaa_vserver_name> -policy <policy_name> -priority <priority_number>\n6. Run the following command to create the Authentication Profile to link the Gateway to the AAA virtual server:\n   add authentication authnProfile <profile_name> -authnVsName <aaa_vserver_name>\n7. Run the following command to bind the Authentication Profile to the Gateway Virtual Server:\n   set vpn vserver <gateway_vserver_name> -authnProfile <profile_name>\n8. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000764"]},{"vulnId":"V-289073","ruleId":"SV-289073r1317988_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must behave in a predictable and documented manner that reflects organizational and system objectives when invalid inputs are received.","description":"A common vulnerability of network elements is unpredictable behavior when invalid inputs are received. This requirement guards against adverse or unintended system behavior caused by invalid inputs, where information system responses to the invalid input may be disruptive or cause the system to fail into an unsafe state.\n\nThe behavior will be derived from the organizational and system requirements and includes, but is not limited to, notification of the appropriate personnel, creating an audit record, and rejecting invalid input.\n\nThis requirement applies to gateways and firewalls that perform content inspection or have higher-layer proxy functions.","checkContent":"Verify the NetScaler Gateway behaves in a predictable and documented manner when invalid inputs are received by enforcing an HTTP Profile with strict validation.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. Scroll down to the \"Profiles\" section, select the pencil icon and edit the bound HTTP Profile.\n5. Verify the \"Drop Invalid HTTP Requests\" checkbox is selected.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to identify the bound HTTP Profile:\n   show vpn vserver <gateway_vserver_name>\n3. Verify an \"HTTP profile name\" is listed in the output.\n4. Run the following command to view the profile settings:\n   show ns httpProfile <profile_name>\n5. Verify the output displays \"Drop invalid HTTP requests: ENABLED\".\n\nIf an HTTP Profile is not bound to the Gateway Virtual Server, or if the bound profile does not have the \"Drop invalid HTTP requests\" setting enabled, this is a finding.","fixText":"Configure the NetScaler Gateway to behave in a predictable and documented manner when invalid inputs are received by binding a strict HTTP Profile.\n\nNote: Citrix provides a built-in profile named \"nshttp_default_strict_validation\" which natively satisfies this requirement, though a custom HTTP Profile may also be created and bound.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. Scroll down to the \"Profiles\" section and select the pencil icon to edit.\n5. To use the built-in strict profile, select \"nshttp_default_strict_validation\" from the \"HTTP Profile\" drop-down menu.\n6. To create and bind a custom profile directly, select \"Add\" next to the \"HTTP Profile\" drop-down menu, enter a name, select the \"Drop Invalid HTTP Requests\" checkbox, and select \"Create\".\n7. Select \"OK\" and select \"Done\".\n8. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to bind the built-in strict HTTP profile to the Gateway Virtual Server (alternatively, apply a custom profile):\n   set vpn vserver <gateway_vserver_name> -httpProfileName nshttp_default_strict_validation\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002754"]},{"vulnId":"V-289074","ruleId":"SV-289074r1317991_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must check the validity of all data inputs except those specifically identified by the organization.","description":"Invalid user input occurs when a user inserts data or characters into an application's data entry fields and the application is unprepared to process that data. This results in unanticipated application behavior potentially leading to an application or information system compromise. Invalid input is one of the primary methods employed when attempting to compromise an application.\n\nNetScaler Gateway has the functionality to perform application layer inspection which may be leveraged to validate data content of network communications. Checking the valid syntax and semantics of information system inputs (e.g., character set, length, numerical range, and acceptable values) verifies that inputs match specified definitions for format and content. Software typically follows well-defined protocols that use structured messages (i.e., commands or queries) to communicate between software modules or system components. Structured messages can contain raw or unstructured data interspersed with metadata or control information. If network elements use attacker-supplied inputs to construct structured messages without properly encoding such messages, then the attacker could insert malicious commands or special characters that can cause the data to be interpreted as control information or metadata. Consequently, the module or component that receives the tainted output will perform the wrong operations or otherwise interpret the data incorrectly. Prescreening inputs prior to passing to interpreters prevents the content from being unintentionally interpreted as commands. Input validation helps to ensure accurate and correct inputs and prevent attacks such as cross-site scripting and a variety of injection attacks.\n\nThis requirement applies to NetScaler Gateways that perform content inspection.","checkContent":"Verify the NetScaler Gateway checks the validity of all data inputs by enforcing strict HTTP validation and applying a Web App Firewall (WAF) profile.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings and select \"Change HTTP Parameters\".\n3. Verify the \"Drop Invalid HTTP Requests\" checkbox is selected.\n4. Navigate to Security >> Citrix Web App Firewall.\n5. Under the \"Policy Manager\" section in the main panel, select \"Citrix Web App Firewall Policy Manager\".\n6. From the \"Bind Point\" drop-down menu, select \"Default Global\", ensure the \"Protocol\" is set to \"HTTP\", and select \"Continue\".\n7. Verify an active WAF policy is bound in the list.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify HTTP validation:\n   show ns httpParam\n3. Verify \"Drop invalid HTTP requests\" is set to \"ON\".\n4. Run the following command to verify WAF binding:\n   show appfw global\n5. Verify that a WAF policy is globally bound under the \"Default Global\" (REQ_DEFAULT) section.\n\nIf \"Drop Invalid HTTP Requests\" is not enabled, or if a WAF policy is not globally bound to inspect traffic, this is a finding.","fixText":"Configure the NetScaler Gateway to check the validity of all data inputs by enforcing strict HTTP validation and binding a WAF profile.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings and select \"Change HTTP Parameters\".\n3. Select the \"Drop Invalid HTTP Requests\" checkbox and select \"OK\".\n4. Navigate to Security >> Citrix Web App Firewall.\n5. Under the \"Policy Manager\" section in the main panel, select \"Citrix Web App Firewall Policy Manager\".\n6. From the \"Bind Point\" drop-down menu, select \"Default Global\", ensure the \"Protocol\" is set to \"HTTP\", and select \"Continue\".\n7. If presented with a list of bindings, select \"Add Binding\".\n8. In the \"Policy Binding\" section, choose \"Select to select\" and select the active WAF policy. \n9. Assign a unique priority and select \"Bind\".\n10. Select \"Done\" and save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enable strict HTTP validation:\n   set ns httpParam -dropInvalReqs ON\n3. Run the following command to bind the WAF policy to the Default Global bind point:\n   bind appfw global <policy_name> <priority_number> -type REQ_DEFAULT\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001310"]},{"vulnId":"V-289075","ruleId":"SV-289075r1317994_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must deny network communications traffic by default and allow network communications traffic by exception (i.e., deny all, permit by exception).","description":"A deny-all, permit-by-exception network communications traffic policy ensures that only those connections which are essential and approved are allowed.\n\nAs a managed interface, the NetScaler Gateway must block all inbound and outbound network communications traffic to the application being managed and controlled unless a policy filter is installed to explicitly allow the traffic. The allow policy filters must comply with the site's security policy. A deny all, permit by exception network communications traffic policy ensures that only those connections which are essential and approved are allowed.\n\nThis requirement applies to both inbound and outbound network communications traffic. All inbound and outbound traffic for which the NetScaler Gateway is acting as an intermediary or proxy must be denied by default.","checkContent":"Verify the NetScaler Gateway denies network communications traffic by default and allows traffic strictly by exception using Access Control Lists (ACLs).\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Network >> ACLs.\n3. Review the rules listed under both the \"Simple ACLs\" and \"Extended ACLs\" tabs.\n4. Verify that no overly permissive rules exist (e.g., rules allowing \"ANY\" source to \"ANY\" destination). All \"ALLOW\" rules must explicitly define authorized source IP subnets and destination ports.\n5. Verify that a default \"DENY\" rule exists at the lowest precedence (highest priority number) to block all remaining traffic.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view all configured IPv4 ACLs (use \"show ns acl6\" if IPv6 is in use):\n   show ns acl\n3. Review the output and verify that \"Action: ALLOW\" rules explicitly restrict the \"srcIP\" and \"destIP\" parameters.\n4. Verify that a rule with \"Action: DENY\" exists with the lowest precedence (e.g., priority 9999) to enforce the default-deny stance.\n5. Verify the \"Applied Status\" for these ACLs is \"APPLIED\".\n\nIf ACLs are not configured, if any \"ALLOW\" rule is overly permissive, or if a default \"DENY\" rule is not active, this is a finding.","fixText":"Configure the NetScaler Gateway to deny network communications traffic by default and allow traffic strictly by exception using ACLs.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Network >> ACLs.\n3. Select the \"Extended ACLs\" tab and select \"Add\".\n4. Enter a name for the rule, set the \"Action\" to \"ALLOW\", and specify the authorized Source IP and Destination IP/Port. Select \"Create\".\n5. Select \"Add\" again to create the default \"DENY\" rule. Enter a name, set the \"Action\" to \"DENY\", and set the \"Priority\" to a high number (e.g., 9999) to ensure it has the lowest precedence. Select \"Create\".\n6. Select the newly created rules, select the \"Action\" drop-down menu, and select \"Apply\" to commit them to the packet engine.\n7. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create a specific \"ALLOW\" rule:\n   add ns acl <allow_rule_name> ALLOW -srcIP <authorized_source_subnet> -destIP <destination_ip> -destPort <port> -protocol TCP -priority 100\n3. Run the following command to create the default \"DENY\" rule at the lowest precedence:\n   add ns acl <deny_rule_name> DENY -destIP <destination_ip> -destPort <port> -protocol TCP -priority 9999\n4. Run the following command to apply the ACLs to the active packet engine:\n   apply ns acls\n5. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001109"]},{"vulnId":"V-289076","ruleId":"SV-289076r1317997_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must detect and block SQL injection (SQLi) and code injection attacks using the Web App Firewall (WAF).","description":"Data mining is the analysis of large quantities of data to discover patterns and is used in intelligence gathering. Failure to prevent attacks launched against organizational information from unauthorized data mining may result in the compromise of information.\n\nInjection attacks allow an attacker to inject code into a program or query or inject malware onto a computer to execute remote commands that can read or modify a database, or change data on a website. Web applications frequently access databases to store, retrieve, and update information. An attacker can construct inputs that the database will execute. This is most commonly referred to as a code injection attack. This type of attack includes XPath and LDAP injections.\n\nCompliance requires the ALG to have the capability to prevent code injections. Examples include a WAFs or database application gateways.\n\nSatisfies: SRG-NET-000318-ALG-000014, SRG-NET-000318-ALG-000152, SRG-NET-000076-ALG-000045","checkContent":"Verify the NetScaler Gateway implements Application WAF protections against SQLi attacks.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features.\n3. Verify that \"Web App Firewall\" is checked (enabled).\n4. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n5. Select the AppFw Profile bound to the active Gateway Virtual Server and select \"Edit\".\n6. In Advanced Settings menu on the right, select \"Security Checks\".\n7. In the main panel, verify \"SQL Injection\" has \"Block\" enabled.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the WAF feature is enabled:\n   show ns feature\n3. Verify the output shows \"AppFw\" as \"ON\".\n4. Run the following command to identify the active WAF policy and profile:\n   show appfw global\n5. Run the following command to view the profile settings (replace <profile_name> with the active profile):\n   show appfw profile <profile_name>\n6. Verify the output displays the following parameter:\n   sqliAction: block\n\nIf the Web App Firewall feature is not enabled, or if SQL Injection protection is not set to block, this is a finding.","fixText":"Configure the NetScaler Gateway Application WAF to protect against SQLi attacks.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features, check the box for \"Web App Firewall\", and select \"OK\".\n3. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n4. Select \"Add\" to create a new profile (or select an existing profile and select \"Edit\").\n5. In Advanced Settings menu on the right, select \"Security Checks\".\n6. In the main panel, locate \"SQL Injection\" and check the box in the \"Block\" column. Select \"OK\".\n7. Navigate to Security >> Citrix Web App Firewall >> Policies >> Firewall. Select \"Add\".\n8. Name the policy, select the profile configured in Step 6 as the action, enter \"true\" as the expression, and select \"Create\".\n9. Navigate to Security >> Citrix Web App Firewall >> Policies >> Firewall.\n10. Select \"Policy Manager\".\n11. Select \"Default Global\" from the Bind Point drop-down menu and select \"Continue\".\n12. Select \"Add Binding\", select the policy created in Step 8, assign a unique priority, and select \"Bind\".\n13. Save the running configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enable the Application Firewall feature:\n   enable ns feature AppFw\n3. Run the following command to create or update an Application Firewall profile with the required SQLi inspection features:\n   add appfw profile <profile_name> -sqliAction block log stats\n4. Run the following command to create an AppFw policy linking to the profile:\n   add appfw policy <policy_name> true <profile_name>\n5. Run the following command to bind the AppFw policy globally:\n   bind appfw global <policy_name> <priority_number> -type REQ_DEFAULT\n6. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002346","CCI-000132"]},{"vulnId":"V-289077","ruleId":"SV-289077r1318000_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must display and retain the Standard Mandatory DoW Notice and Consent Banner before granting network access until explicitly acknowledged by the user.","description":"Display of a standardized and approved use notification before granting access to the network ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance.\n\nSystem use notifications are required only for access via logon interfaces with human users and are not required when such human interfaces do not exist. This requirement applies to network elements that have the concept of a user account and have the logon function residing on the network element.\n\nThe banner must be formatted in accordance with DTM-08-060. Use the following verbiage for network elements that can accommodate banners of 1300 characters:\n\n\"You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.\n\nBy using this IS (which includes any device attached to this IS), you consent to the following conditions:\n\n-The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.\n\n-At any time, the USG may inspect and seize data stored on this IS.\n\n-Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.\n\n-This IS includes security measures (e.g., authentication and access controls) to protect USG interests--not for your personal benefit or privacy.\n\n-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details.\"\n \nUse the following verbiage for operating systems that have severe limitations on the number of characters that can be displayed in the banner:\n\n\"I've read & consent to terms in IS user agreem't.\"\n\nThis policy only applies to NetScalers (e.g., identity management or authentication gateways) that provide user account services as part of the intermediary services.\n\nSatisfies: SRG-NET-000041-ALG-000022, SRG-NET-000042-ALG-000023","checkContent":"Verify the NetScaler Gateway displays and retains the Standard Mandatory DoW Notice and Consent Banner before granting access to the network.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Virtual Servers.\n3. Select the active AAA Virtual Server and select \"Edit\".\n4. In Advanced Settings menu on the right, select \"Login Schemas\" if not already visible and open the schema blade.\n5. Verify a Login Schema policy is bound with the highest priority (lowest number) with a \"Goto Expression\" of \"NEXT\".\n6. Select the checkbox next to the policy, select the \"Select Action\" drop-down menu, and select \"Edit\" (or edit the profile directly).\n7. Verify the profile uses the built-in or custom DoW EULA template (e.g., /nsconfig/loginschema/LoginSchema/Eula.xml).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view policies bound to the AAA Virtual Server:\n   show authentication vserver <aaa_vserver_name>\n3. Locate the bound Login Schema policies. Verify a policy is bound at the highest priority with a GotoPriorityExpression of \"NEXT\" that enforces the EULA schema.\n4. Run the following command to verify the XML schema used:\n   show authentication loginSchema <schema_profile_name>\n5. Verify the \"Authentication Schema\" file path points to /nsconfig/loginschema/LoginSchema/Eula.xml (or an approved custom DoW EULA XML template).\n\nIf the EULA/Banner Login Schema is not enforced as the first factor in the authentication flow, this is a finding.","fixText":"Configure the NetScaler Gateway to display and retain the Standard Mandatory DoW Notice and Consent Banner before granting access to the network using Login Schemas.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Login Schema >> Profiles and select \"Add\".\n3. Enter a name, select the pencil icon next to \"Authentication Schema\", select the built-in \"/nsconfig/loginschema/LoginSchema/Eula.xml\" file, and select \"Create\".\n4. Navigate to Security >> AAA - Application Traffic >> Login Schema >> Policies and select \"Add\".\n5. Enter a name, select the profile created in Step 3, enter \"true\" in the \"Expression\" box, and select \"Create\".\n6. Navigate to Security >> AAA - Application Traffic >> Virtual Servers and edit the active AAA Virtual Server.\n7. In the \"Advanced Settings\" menu on the right, select \"Login Schemas\" if not already visible and open the schema blade.\n8. Select \"Add Binding\", select the policy created in Step 5, set the Priority to the highest priority (e.g., lower number than other policies), set \"Goto Expression\" to \"NEXT\", and select \"Bind\".\n9. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create the Login Schema Profile pointing to the built-in EULA XML template:\n   add authentication loginSchema <login_schema_profile_name> -authenticationSchema \"/nsconfig/loginschema/LoginSchema/Eula.xml\"\n3. Run the following command to create the Login Schema Policy:\n   add authentication loginSchemaPolicy <login_schema_policy_name> -rule true -action <login_schema_profile_name>\n4. Run the following command to bind the EULA policy as the first factor on the AAA Virtual Server:\n   bind authentication vserver <aaa_vserver_name> -policy <login_schema_policy_name> -priority <priority_number> -gotoPriorityExpression NEXT\n5. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000048","CCI-000050"]},{"vulnId":"V-289078","ruleId":"SV-289078r1318557_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must employ organization-defined controls by type of denial of service (DoS) to achieve the DoS objective.","description":"DoS events can occur due to a variety of internal and external causes, such as an attack by an adversary or a lack of planning to support organizational needs with respect to capacity and bandwidth. Such attacks can occur across a wide range of network protocols (e.g., IPv4, IPv6). A variety of technologies are available to limit or eliminate the origination and effects of DoS events. For example, boundary protection devices can filter certain types of packets to protect system components on internal networks from being directly affected by or the source of DoS attacks. Employing increased network capacity and bandwidth combined with service redundancy also reduces the susceptibility to DoS events.","checkContent":"Verify the NetScaler Gateway employs organization-defined controls by type of DoS (e.g., rate limiting based on source IP address) to achieve the DoS objective.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to AppExpert >> Rate Limiting >> Selectors.\n3. Verify a selector is configured with an expression to identify and categorize traffic by type (e.g., CLIENT.IP.SRC).\n4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers. \n5. Verify an identifier is configured and linked to the selector identified in Step 3.\n6. Navigate to AppExpert >> Responder >> Policies. \n7. Review the \"Expression\" column in the policy list and verify a Responder policy exists that uses the \"sys.check_limit\" expression.\n8. Navigate to Citrix Gateway >> Virtual Servers.\n9. Select the active Gateway Virtual Server and select \"Edit\". \n10. Verify that the rate-limiting Responder policy is actively bound.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view configured traffic selectors:\n   show stream selector\n3. Verify a selector is configured to categorize traffic by type.\n4. Run the following command to view configured rate limits:\n   show ns limitIdentifier\n5. Verify a rate limit identifier is configured and linked to the selector.\n6. Run the following command to view the rule expression of the specific rate-limiting policy:\n   show responder policy <policy_name>\n7. Verify the \"Rule\" output uses the \"sys.check_limit\" expression.\n8. Run the following command to verify the virtual server bindings:\n   show vpn vserver <gateway_vserver_name>\n9. Verify the rate-limiting Responder policy is bound to the virtual server.\n\nIf a Stream Selector is not configured to identify traffic by type, or if the associated rate-limiting Responder policy is not bound to the Gateway Virtual Server, this is a finding.","fixText":"Configure the NetScaler Gateway to employ organization-defined controls by type of DoS (e.g., rate limiting based on source IP address) to achieve the DoS objective.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to AppExpert >> Rate Limiting >> Selectors and select \"Add\". \n3. Enter a name for the selector and create an expression to identify traffic (e.g., CLIENT.IP.SRC). Select \"Create\".\n4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers and select \"Add\". \n5. Enter a name for the identifier, choose the Selector created in Step 3, set the \"Threshold\" and \"Time Slice\" to organizationally defined limits, and select \"Create\".\n6. Navigate to AppExpert >> Responder >> Policies and select \"Add\". \n7. Enter a name for the policy, set the \"Action\" to \"DROP\", and in the expression box, enter \"sys.check_limit\" (\"<limit_identifier_name>\"). Select \"Create\".\n8. Navigate to Citrix Gateway >> Virtual Servers, select the active Gateway Virtual Server, and select \"Edit\". \n9. Bind the Responder policy created in Step 7.\n10. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create a Limit Selector to identify traffic by source IP:\n   add stream selector <limit_selector_name> \"CLIENT.IP.SRC\"\n3. Run the following command to create a Limit Identifier, linking it to the selector created in Step 2 and applying organizationally defined limits:\n   add ns limitIdentifier <limit_identifier_name> -threshold <threshold_value> -timeSlice <time_slice_in_ms> -selectorName <limit_selector_name>\n4. Run the following command to create the Responder Policy that drops traffic, linking it to the identifier created in Step 3:\n   add responder policy <responder_policy_name> \"sys.check_limit(\\\"<limit_identifier_name>\\\")\" DROP\n5. Run the following command to bind the Responder policy to the Gateway Virtual Server:\n   bind vpn vserver <gateway_vserver_name> -policy <responder_policy_name> -priority <priority_number> -gotoPriorityExpression END -type REQUEST\n6. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-004866"]},{"vulnId":"V-289079","ruleId":"SV-289079r1318006_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must enforce approved authorizations for controlling the flow of information using restrictive Authorization Policies.","description":"Successful authentication must not automatically give an entity access to an asset or security boundary. The lack of authorization-based access control could result in the immediate compromise and unauthorized access to sensitive information. All DoW systems must be properly configured to incorporate access control methods that do not rely solely on authentication for authorized access.\n\nAuthorization is the process of determining whether an entity, once authenticated, is permitted to access a specific asset. Information systems use access control policies and enforcement mechanisms to implement this requirement. Authorization procedures and controls must be implemented to ensure each authenticated entity also has a validated and current authorization.\n\nAccess control policies include identity-based policies, role-based policies, and attribute-based policies. Access enforcement mechanisms include access control lists, access control matrices, and cryptography. The NetScaler Gateway must use these policies and mechanisms to control access on behalf of the application for which it is acting as intermediary.\n\nSatisfies: SRG-NET-000015-ALG-000016, SRG-NET-000018-ALG-000017","checkContent":"Verify the NetScaler Gateway enforces approved authorizations for controlling the flow of information by using Authorization Policies for attribute- and content-based inspection.\n\nNote: This requires that Group Extraction is configured as part of the authentication mechanism to retrieve user roles (groups) from the identity provider.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Groups.\n3. Select the active AAA Group and select \"Edit\".\n4. Under \"Advanced Settings\", select \"Authorization Policies\" if not already visible.\n5. Verify that one or more policies exist with an \"ALLOW\" action and a specific expression that is not \"true\".\n6. Verify there is a final policy bound with the highest priority number (lowest precedence) that has an Action of \"DENY\" and an Expression of \"true\".\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to identify the Authorization Policies bound to the active user group:\n   show aaa group <group_name>\n3. For the Authorization Policies listed in the output, run the following command to inspect their configuration:\n   show authorization policy <policy_name>\n4. Verify that one or more policies with an \"ALLOW\" action are bound with specific expressions (not \"true\").\n5. Verify that a final policy with a \"DENY\" action and the lowest precedence (highest priority number) is bound, and its rule is set to \"true\".\n\nIf restrictive \"ALLOW\" policies are not bound, if an \"ALLOW\" policy uses the expression \"true\", or if a default \"DENY\" policy is not present, this is a finding.","fixText":"Configure the NetScaler Gateway to enforce role-based and attribute-based authorizations for logical access.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Policies >> Authorization.\n3. Select \"Add\" to create restrictive \"ALLOW\" policies based on specific attributes and a default \"DENY\" policy (with an expression of \"true\").\n4. Navigate to Security >> AAA - Application Traffic >> Groups.\n5. Select the target user group and select \"Edit\".\n6. Under \"Advanced Settings\", select \"Authorization Policies\" if not already visible.\n7. Select \"Add Binding\".\n8. Select an existing \"ALLOW\" policy, assign a unique priority, ensure the \"Type\" is set to \"REQUEST\", and select \"Bind\".\n9. Repeat Steps 7 and 8 for all required \"ALLOW\" policies.\n10. Select \"Add Binding\" again, select the \"DENY\" policy, assign the highest priority number (lowest precedence) to ensure it is evaluated last, ensure the \"Type\" is set to \"REQUEST\", and select \"Bind\".\n11. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following commands to create the restrictive \"ALLOW\" and default \"DENY\" policies:\n   add authorization policy <allow_policy_name> \"<restrictive_expression>\" ALLOW\n   add authorization policy <deny_policy_name> \"true\" DENY\n3. Run the following commands to bind the policies to the AAA group, ensuring the \"DENY\" policy has the lowest precedence (highest priority number):\n   bind aaa group <group_name> -policy <allow_policy_name> -priority <priority_number> -type REQUEST\n   bind aaa group <group_name> -policy <deny_policy_name> -priority <lowest_priority_number> -type REQUEST\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000213","CCI-001368"]},{"vulnId":"V-289080","ruleId":"SV-289080r1318580_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must enforce multifactor and replay-resistant authentication for all network access using Client Certificate validation and a secondary factor.","description":"To assure accountability and prevent unauthenticated access, nonprivileged users must use multifactor authentication (MFA) to prevent potential misuse and compromise of the system.\n\nMFA uses two or more factors to achieve authentication. Factors include: \n\n1) Something you know (e.g., password/PIN), \n2) Something you have (e.g., cryptographic, identification device, token), and \n3) Something you are (e.g., biometric).\n\nNonprivileged accounts are not authorized access to the network element regardless of access method.\n\nNetwork access is any access to an application by a user (or process acting on behalf of a user) where said access is obtained through a network connection.\n\nAuthenticating with a Public Key Infrastructure (PKI) credential and entering the associated PIN is an example of multifactor authentication.\n\nSatisfies: SRG-NET-000140-ALG-000094, SRG-NET-000147-ALG-000095","checkContent":"Verify the NetScaler Gateway enforces multifactor and replay-resistant authentication (MFA) for network access using Client Certificate (PKI) validation and a secondary authentication factor.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. Scroll down to the \"SSL Profile\" or \"SSL Parameters\" section.\n5. Verify the Client Authentication settings based on the appliance configuration:\n   a. If an SSL Profile is bound: Select the pencil icon to edit the profile, then verify \"Client Authentication\" is set to \"Enabled\" and \"Client Certificate\" is set to \"Mandatory\".\n   b. If no SSL Profile is bound: Select the pencil icon to edit \"SSL Parameters\" on the virtual server page, then verify \"Client Authentication\" is set to \"Enabled\" and \"Client Certificate\" is set to \"Mandatory\".\n6. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n7. Select \"LDAP\" (or organizationally defined protocol).\n8. Verify that an action is configured and active to provide the secondary authentication factor.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view the SSL settings of the Gateway Virtual Server:\n   show ssl vserver <gateway_vserver_name>\n3. If an SSL Profile is bound, run the following command to view the profile settings:\n   show ssl profile <profile_name>\n4. Verify the output of the applicable command displays the following parameters:\n   Client Authentication: ENABLED\n   Client Certificate: Mandatory\n5. Run the following command to verify the secondary authentication factor is bound:\n   show vpn vserver <gateway_vserver_name>\n6. Verify an \"Authentication Profile Name\" is listed and active in the output.\n\nIf Client Certificate authentication is not set to \"Mandatory\", or if a secondary authentication factor is not configured, this is a finding.","fixText":"Configure the NetScaler Gateway to enforce multifactor and replay-resistant authentication (MFA) for network access using Client Certificate (PKI) validation and a secondary factor.\n\nNote: To satisfy the DoW MFA requirement, the Gateway must mandate a two-factor chain (typically physical common access card [CAC]/Smartcard via Client Certificate verification combined with a secondary credential prompt via an Authentication Action).\n\nNote: This procedure assumes an Authentication Profile configured for a secondary factor has already been created, and DoW Root certificate authorities (CAs) are available on the appliance. This procedure uses LDAP as the primary example for the secondary factor. The principle applies to other protocols such as RADIUS and TACACS+, though the specific commands and attribute names may differ.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. Scroll down to the \"SSL Profile\" or \"SSL Parameters\" section.\n5. Configure the Client Authentication settings based on the appliance configuration:\n   a. If an SSL Profile is bound: Select the pencil icon to edit the profile, select the checkbox to enable \"Client Authentication\", set the \"Client Certificate\" drop-down menu to \"Mandatory\", and select \"OK\".\n   b. If no SSL Profile is bound: Select the pencil icon to edit \"SSL Parameters\" on the virtual server page, select the checkbox to enable \"Client Authentication\", set the \"Client Certificate\" drop-down menu to \"Mandatory\", and select \"OK\". \n6. Navigate to Traffic Management >> SSL >> Certificates >> CA Certificates and ensure the DoW Root CAs are bound to the virtual server to establish the client trust chain.\n7. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n8. Select \"LDAP\" (or organizationally defined protocol) and select \"Add\" to configure the secondary authentication factor.\n9. Verify this action is bound to the Authentication Profile used by the Gateway Virtual Server.\n10. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. If an SSL profile is bound, run the following command to enforce Mandatory Client Certificate validation on the profile:\n   set ssl profile <profile_name> -clientAuth ENABLED -clientCert Mandatory\n3. If no SSL profile is bound, run the following command to enforce Mandatory Client Certificate validation on the virtual server directly:\n   set ssl vserver <gateway_vserver_name> -clientAuth ENABLED -clientCert Mandatory\n4. Run the following command to bind the DoW Root CAs to the Gateway Virtual Server to trust the user's smart card (repeat for each Root CA):\n   bind ssl vserver <gateway_vserver_name> -certkeyName <dow_root_ca_name> -CA\n5. Run the following command to bind the Authentication Profile to enforce the second factor:\n   set vpn vserver <gateway_vserver_name> -authnProfile <auth_profile_name>\n6. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000766","CCI-001941"]},{"vulnId":"V-289081","ruleId":"SV-289081r1318012_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must establish organization-defined alternate communications paths for system operations organizational command and control.","description":"An incident, whether adversarial- or nonadversarial-based, can disrupt established communications paths used for system operations and organizational command and control. Alternate communications paths reduce the risk of all communications paths being affected by the same incident. To compound the problem, the inability of organizational officials to obtain timely information about disruptions or to provide timely direction to operational elements after a communications path incident, can impact the ability of the organization to respond to such incidents in a timely manner. Establishing alternate communications paths for command and control purposes, including designating alternative decision makers if primary decision makers are unavailable and establishing the extent and limitations of their actions, can greatly facilitate the organization's ability to continue to operate and take appropriate actions during an incident.","checkContent":"Verify the NetScaler Gateway establishes a logically separate, alternate communications path for management traffic by enforcing a dedicated NetScaler Management VLAN (NSVLAN).\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Change NSVLAN Settings\".\n4. Verify the \"NSVLAN Id\" is set to an organizationally defined dedicated management VLAN (e.g., not the default \"1\").\n5. Verify the \"Configured\" interfaces list has a dedicated management interface selected (e.g., \"0\"/\"1\").\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view the NSVLAN configuration:\n   show ns config\n3. Review the output and verify the following parameters:\n   a. \"NetScaler IP Vlan\" displays the organizationally defined management VLAN ID.\n   b. \"Bound Ports\" displays the dedicated physical management interface.\n\nIf a dedicated NSVLAN is not configured on a management interface to segregate administrative command and control traffic, this is a finding.","fixText":"Configure the NetScaler Gateway to establish a logically separate, alternate communications path for management traffic by enforcing a dedicated NSVLAN.\n\nNote: Modifying the NSVLAN is a critical routing change that requires a system reboot. Verify out-of-band console access or a connection to the specific physical management interface exists before executing.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Change NSVLAN Settings\".\n4. Enter the organizationally defined management VLAN ID in the \"NSVLAN Id\" field.\n5. If the dedicated physical management interface is not already listed in the \"Configured\" box, select \"Add\" to reveal the \"Available\" interfaces list. Select the \"+\" icon next to the appropriate interface to move it to the \"Configured\" box. (Use the \"-\" icon to remove any incorrect interfaces).\n6. Select the \"Tagged\" checkbox if the interface requires 802.1q tagging.\n7. Select \"OK\".\n8. Save the configuration and reboot the appliance for the changes to take effect.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to configure the dedicated NSVLAN and physical management interface:\n   set ns config -nsvlan <vlan_id> -ifnum <interface_number>\n   (Note: Append -tagged YES to the command if the interface requires 802.1q tagging).\n3. Run the following command to save the configuration:\n   save ns config\n4. Run the following command to reboot the appliance for the network separation to take full effect:\n   reboot","ccis":["CCI-004931"]},{"vulnId":"V-289082","ruleId":"SV-289082r1318015_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must forward all audit, traffic, and security events to a centralized log server in real time to facilitate systemwide alerting.","description":"Without an alert, security personnel may be unaware of an impending failure of the audit capability; then the ability to perform forensic analysis and detect rate-based and other anomalies will be impeded.\n\nThe ALG generates an immediate (within seconds) alert which notifies designated personnel of the incident. Sending a message to an unattended log or console does not meet this requirement since that will not be seen immediately. These messages should include a severity level indicator or code as an indicator of the criticality of the incident.\n\nSatisfies: SRG-NET-000249-ALG-000146, SRG-NET-000392-ALG-000141, SRG-NET-000079-ALG-000048","checkContent":"Verify the NetScaler Gateway is configured to send log data to a central log server and forward them for real-time alerting.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Auditing >> Syslog.\n3. On the \"Servers\" tab, verify at least one external syslog server is configured pointing to a centralized log server IP.\n4. Select the active syslog action (server) and select \"Edit\".\n5. Under \"Log Levels\", select \"Custom\" and verify all log levels are checked EXCEPT for \"Debug\".\n6. Select the \"Policies\" tab and verify a policy exists targeting the syslog server.\n7. From the \"Select Action\" drop-down menu on the main syslog page, select \"Advanced Policy Global Bindings\".\n8. Verify the syslog policy is listed and actively bound globally to ensure all events are forwarded to the SIEM in real time.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view global syslog bindings:\n   show audit syslogGlobal\n3. Verify at least one syslog policy is globally bound.\n4. Run the following command for the active external logging action:\n   show audit syslogAction <action_name>\n5. Verify the action points to an external \"Server IP\".\n6. Verify the \"Log Level\" includes EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, and INFORMATIONAL.\n7. Verify \"DEBUG\" is not included.\n\nIf the active syslog action does not capture all required log levels (excluding Debug), or if it is not globally bound to forward logs to a central log server, this is a finding.","fixText":"Configure the NetScaler Gateway to log events and forward them to a central log server for alerting.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Auditing >> Syslog and select the \"Servers\" tab.\n3. Select \"Add\".\n4. Configure the \"Name\", \"Server IP\", and set \"Log Levels\" to \"Custom\", selecting all levels except \"Debug\" (ensure Emergency, Alert, Critical, Error, Warning, Notice, and Informational are selected). \n5. Select \"Create\".\n6. Select the \"Policies\" tab and select \"Add\".\n7. Provide a name, select the server action created in the previous step, and set the expression to \"true\" (ensure \"Advanced Policy\" is the selected expression type). Select \"Create\".\n8. From the \"Select Action\" drop-down menu, select \"Advanced Policy Global Bindings\".\n9. Select \"Add Binding\", select the policy, and assign a unique priority (e.g., 100). Select \"Bind\".\n10. Save the running configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create the syslog action with the correct log levels:\n   add audit syslogAction <action_name> <log_server_ip> -logLevel EMERGENCY ALERT CRITICAL ERROR WARNING NOTICE INFORMATIONAL\n3. Run the following command to create the syslog policy:\n   add audit syslogPolicy <policy_name> true <action_name>\n4. Run the following command to bind the policy globally:\n   bind audit syslogGlobal -policyName <policy_name> -priority <priority_number>\n5. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001243","CCI-002664","CCI-001487"]},{"vulnId":"V-289083","ruleId":"SV-289083r1318018_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must generate comprehensive audit records for all administrative events, privilege modifications, and user access attempts.","description":"Without generating audit records that log usage of objects by subjects and other objects, it would be difficult to establish, correlate, and investigate the events relating to an incident, or identify those responsible for one.\n\nAudit records can be generated from various components within the information system (e.g., module or policy filter). Security objects are data objects which are controlled by security policy and bound to security attributes.\n\nThis requirement applies to the NetScaler Gateway traffic management functions. This does not apply to audit logs generated on behalf of the device (device management).\n\nSatisfies: SRG-NET-000492-ALG-000027, SRG-NET-000494-ALG-000029, SRG-NET-000131-ALG-000085","checkContent":"Verify the NetScaler Gateway generates audit records when successful/unsuccessful attempts to access, modify, or delete security objects, security levels, privileges, categories of information, and logon events occur.\n\nTo generate these audit records, the logging level must be configured to capture \"NOTICE\" and \"INFORMATIONAL\" severity events, which include administrative \"COMMAND\" logs.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Auditing >> Syslog >> Servers.\n3. Select the active Syslog server and select \"Edit\".\n4. Under \"Logging Level\", verify that \"INFORMATIONAL\" and \"NOTICE\" are checked (or that \"ALL\" is selected).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view the configured logging levels for active syslog actions:\n   show audit syslogAction\n3. Verify the \"Loglevel\" output for the active syslog servers includes \"INFORMATIONAL\" and \"NOTICE\" (or \"ALL\").\n\nIf the logging level does not include \"INFORMATIONAL\" and \"NOTICE\", this is a finding.","fixText":"Configure the NetScaler Gateway to generate audit records when successful/unsuccessful attempts to access, modify, or delete security objects, security levels, privileges, categories of information, and logon events occur by enabling the appropriate logging severities.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Auditing >> Syslog >> Servers.\n3. Select the active Syslog server and select \"Edit\".\n4. Under \"Logging Level\", select \"Custom\" and ensure the checkboxes for \"INFORMATIONAL\" and \"NOTICE\" are selected (along with EMERGENCY, ALERT, CRITICAL, ERROR, and WARNING). Verify \"DEBUG\" is not selected.\n5. Select \"OK\" and save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to update the syslog action to generate the required log levels:\n   set audit syslogAction <action_name> -logLevel EMERGENCY ALERT CRITICAL ERROR WARNING NOTICE INFORMATIONAL\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000172","CCI-000381"]},{"vulnId":"V-289084","ruleId":"SV-289084r1318021_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must identify and log internal users associated with denied outgoing communications traffic posing a threat to external information systems.","description":"Without identifying the users who initiated the traffic, it would be difficult to identify those responsible for the denied communications.\n\nThis requirement applies to those network elements that perform Data Leakage Prevention (DLP) (e.g., ALGs, proxies, or application level firewalls).","checkContent":"Verify the NetScaler Gateway, when configured as an outbound forward proxy, identifies and logs the internal user associated with any denied outgoing traffic.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Configure Advanced Features\".\n4. Verify the status of the \"Forward Proxy\" and \"Cache Redirection\" checkboxes. If both are unchecked, this requirement is Not Applicable and no further auditing is required.\n5. If enabled, verify that comprehensive syslog forwarding is active. Navigate to System >> Auditing >> Syslog.\n6. From the \"Select Action\" drop-down menu, select \"Advanced Policy Global Bindings\".\n7. Verify that syslog policies are listed and bound globally to ensure all blocked events (which natively include the source IP and identity) are forwarded to the SIEM.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check if SSL Forward Proxy is active:\n   show ns feature\n3. Locate the \"Forward Proxy\" (SSLForwardProxy) and \"Cache Redirection\" (CR) features.\n4. If these features are \"OFF\", this requirement is Not Applicable and no further auditing is required.\n5. If these features are \"ON\", run the following command to verify global syslog forwarding:\n   show audit syslogGlobal\n6. Verify that at least one syslog policy is globally bound.\n7. Run the following command to verify the syslog action:\n   show audit syslogAction <action_name>\n8. Verify the \"Loglevel\" includes \"NOTICE\" and \"INFORMATIONAL\" (or all levels except \"DEBUG\") to ensure connection and block events are captured.\n\nIf SSL Forward Proxy is enabled but comprehensive logging is not active to capture the identity associated with denied traffic, this is a finding.","fixText":"Configure the NetScaler Gateway to log the identity of internal users associated with denied outbound traffic when it is deployed as an outbound forward proxy.\n\nNote: No action is required if the NetScaler is not deployed as an outbound SSL Forward Proxy.\n\nMethod 1: GUI Configuration (If Forward Proxy is Active)\n1. Log in to the NetScaler GUI.\n2. Verify global syslog forwarding is enabled and configured with a comprehensive log level (e.g., all levels except \"DEBUG\") to capture all connection and block events. \n3. Follow the detailed procedure in the Fix for CTNS-AG-000400 to establish the syslog server action, policy, and global binding. (The default log format automatically includes the source IP and, if available, the authenticated username associated with the denied traffic).\n4. Save the configuration.\n\nMethod 2: CLI Configuration (If Forward Proxy is Active)\n1. Log in to the NetScaler CLI.\n2. Verify global syslog forwarding is enabled and configured with a comprehensive log level.\n3. Refer to the Fix for CTNS-AG-000400 to create and globally bind the syslog action and policy.\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002400"]},{"vulnId":"V-289085","ruleId":"SV-289085r1318024_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must implement antispoofing mechanisms to prevent adversaries from falsifying the security attributes indicating the successful application of the security process.","description":"Some attack vectors operate by altering the security attributes of an information system to intentionally and maliciously implement an insufficient level of security within the system. The alteration of attributes leads organizations to believe that a greater number of security functions are in place and operational than have actually been implemented.","checkContent":"Verify the NetScaler Gateway implements Web Application Firewall (WAF) antispoofing mechanisms, specifically Form Field Consistency and CSRF Form Tagging.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features.\n3. Verify that \"Web App Firewall\" is checked (enabled).\n4. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n5. Select the AppFw Profile bound to the active Gateway Virtual Server and select \"Edit\".\n6. In Advanced Settings menu on the right, select \"Security Checks\".\n7. Verify that \"Form Field Consistency\" and \"CSRF Form Tagging\" have \"Block\" enabled.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the WAF feature is enabled:\n   show ns feature\n3. Verify the output shows \"AppFw\" as \"ON\".\n4. Run the following command to view active globally bound WAF policies:\n   show appfw global\n5. Note the profile name associated with the active policy.\n6. Run the following command, replacing \"<profile_name>\" with the name of the active profile:\n   show appfw profile <profile_name> | grep -i \"Action\"\n7. Verify the output includes the lines \"fieldConsistencyAction: block\" and \"CSRFtagAction: block\".\n\nIf the \"AppFw\" feature is not enabled, or if \"Form Field Consistency\" or \"CSRF Tagging\" is not set to \"block\", this is a finding.","fixText":"Configure the NetScaler Gateway WAF to prevent adversaries from falsifying security attributes.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features and check the box for \"Web App Firewall\". Select \"OK\".\n3. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n4. Select \"Add\" to create a new profile. Provide a name, set \"Profile Type\" to \"Web Application\", and select \"OK\".\n5. Select the newly created profile and select \"Edit\". In \"Advanced Settings\", select \"Security Checks\".\n6. Locate \"Form Field Consistency\" and \"CSRF Form Tagging\" and check the \"Block\" box for both. Select \"OK\".\n7. Navigate to Security >> Citrix Web App Firewall >> Policies. Select \"Add\".\n8. Name the policy, select the profile created in Step 4 as the action, enter \"true\" as the expression, and select \"Create\".\n9. Navigate to Security >> Citrix Web App Firewall >> Global Bindings.\n10. Select \"Add Binding\", choose the policy created in Step 8, assign a priority number, and select \"Bind\".\n11. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Enable the Application Firewall feature:\n   enable ns feature AppFw\n3. Create a new Application Firewall profile with the required antispoofing features:\n   add appfw profile <profile_name> -fieldConsistencyAction block log stats -csrfTagAction block\n4. Create an AppFw policy linking to the profile:\n   add appfw policy <policy_name> true <profile_name>\n5. Bind the AppFw policy globally:\n   bind appfw global <policy_name> -priority <priority_number> -type REQ_DEFAULT\n6. Save the configuration:\n   save ns config","ccis":["CCI-004905"]},{"vulnId":"V-289086","ruleId":"SV-289086r1318027_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must implement load balancing to limit the effects of known and unknown types of denial-of-service (DoS) attacks.","description":"If the network does not provide safeguards against DoS attacks, network resources will be unavailable to users. Load balancing provides service redundancy; which service redundancy reduces the susceptibility of the ALG to many DoS attacks.\n\nThe ALG must be configured to prevent or mitigate the impact on network availability and traffic flow of DoS attacks that have occurred or are ongoing.\n\nThis requirement applies to the network traffic functionality of the device as it pertains to handling network traffic. Some types of attacks may be specialized to certain network technologies, functions, or services. For each technology, known and potential DoS attacks must be identified and solutions for each type implemented.","checkContent":"Verify the NetScaler Gateway implements load balancing for critical backend services (such as authentication servers) to limit the effects of DoS attacks.\n\nNote: This requirement is only applicable if the Load Balancing feature is enabled. If it is disabled, this requirement is Not Applicable.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Configure Basic Features\".\n4. Verify the \"Load Balancing\" checkbox is selected. If it is unchecked, this requirement is Not Applicable, and no further auditing is required.\n5. If enabled, navigate to Traffic Management >> Load Balancing >> Virtual Servers.\n6. Select the active Load Balancing virtual servers and select \"Edit\".\n7. Verify the \"Load Balancing Virtual Server Service Binding\" section shows greater than one service bound, indicating that the load is being distributed across multiple backend servers.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check the status of the Load Balancing feature:\n   show ns feature\n3. Locate the \"Load Balancing\" feature. If it is \"OFF\", this requirement is Not Applicable and no further auditing is required.\n4. If the feature is \"ON\", run the following command to view all configured Load Balancing virtual servers:\n   show lb vserver\n5. Verify that the \"No. of Bound Services\" is greater than \"1\" for critical backend services.\n\nIf the Load Balancing feature is enabled but critical backend services are configured as a single point of failure (not load balanced), this is a finding.","fixText":"Configure the NetScaler Gateway to load balance critical backend services to mitigate DoS attacks.\n\nNote: No action is required if the Load Balancing feature is disabled.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> Load Balancing >> Services.\n3. Select \"Add\" to create multiple backend services for the target application (e.g., multiple LDAP servers pointing to different Domain Controllers).\n4. Navigate to Traffic Management >> Load Balancing >> Virtual Servers and select \"Add\".\n5. Enter a name, set the Protocol, enter the IP Address and Port, and select \"OK\".\n6. Under \"Services and Service Groups\", select \"No Load Balancing Virtual Server Service Binding\".\n7. Select the \"Select to select\" box, choose the multiple backend services created in Step 3, and select \"Select\".\n8. Select \"Bind\" and then select \"Continue\".\n9. Select \"Done\" and save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following commands to create multiple backend services for the target application:\n   add service <service_name_1> <server_ip_1> <protocol> <port>\n   add service <service_name_2> <server_ip_2> <protocol> <port>\n3. Run the following command to create a Load Balancing virtual server to front-end the services:\n   add lb vserver <lb_vserver_name> <protocol> <ip_address> <port>\n4. Run the following commands to bind the backend services to the Load Balancing virtual server:\n   bind lb vserver <lb_vserver_name> <service_name_1>\n   bind lb vserver <lb_vserver_name> <service_name_2>\n5. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002385"]},{"vulnId":"V-289087","ruleId":"SV-289087r1318030_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must implement physically or logically separate subnetworks to isolate organization-defined critical system components and functions.","description":"Separating critical system components and functions from other noncritical system components and functions through separate subnetworks may be necessary to reduce susceptibility to a catastrophic or debilitating breach or compromise that results in system failure. For example, physically separating the command and control function from the in-flight entertainment function through separate subnetworks in a commercial aircraft provides an increased level of assurance in the trustworthiness of critical system functions.","checkContent":"Verify the NetScaler Gateway implements logically separate subnetworks (VLANs) to isolate critical system components and functions (e.g., management, internal, and external traffic).\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Network >> VLANs.\n3. Review the configured VLANs. Verify that distinct VLANs exist for, at a minimum, management, internal (server-side), and external (client-side) traffic.\n4. For each VLAN, select \"Edit\" and review the \"Interface Bindings\" to ensure that each VLAN is bound to a separate, dedicated network interface and not sharing the default VLAN 1.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view all configured VLANs and their interface bindings:\n   show vlan\n3. Verify that distinct VLANs are configured for management, internal, and external traffic, and that each is bound to a unique physical or virtual interface (e.g., 0/1, 1/1, 1/2).\n\nIf the NetScaler does not implement logically separate VLANs and interfaces for management, internal, and external traffic, this is a finding.","fixText":"Configure the NetScaler Gateway to implement logically separate subnetworks (VLANs) to isolate critical system components and functions.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Network >> VLANs and select \"Add\".\n3. Provide a VLAN ID number.\n4. After creating the VLAN, select it from the list and select \"Edit\". Under \"Interface Bindings\", select \"Add\" and select the dedicated physical or virtual interface for this VLAN. Select \"Bind\".\n5. Select \"Done\".\n6. Repeat this process for all required VLANs (management, internal, external).\n7. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Create a new VLAN:\n   add vlan <vlan_id>\n3. Bind the VLAN to a specific interface:\n   bind vlan <vlan_id> -ifnum <interface_number>\n4. Repeat for all required network segments.\n5. Save the configuration:\n   save ns config","ccis":["CCI-004891"]},{"vulnId":"V-289088","ruleId":"SV-289088r1318033_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must implement signature based and/or nonsignature based malicious code protection mechanisms at system entry and exit points to detect and eradicate malicious code.","description":"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.\n\nMalicious 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.\n\nIn 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.","checkContent":"Verify the NetScaler Gateway implements signature-based and/or nonsignature-based malicious code protection mechanisms at system entry and exit points.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features and check the box for \"Citrix Web App Firewall\". Select \"OK\".\n3. If the appliance is deployed as an outbound proxy (exit point), verify the \"Content Inspection\" checkbox is also selected.\n4. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n5. 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\".\n6. 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.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check the status of the required features:\n   show ns feature\n3. Verify \"Citrix Web App Firewall\" (AppFw) is \"ON\". If deployed as an outbound proxy, verify \"Content Inspection\" is also \"ON\".\n4. Run the following command to view the active WAF profile settings:\n   show appfw profile <profile_name>\n5. Verify the output displays that critical security checks are configured to block.\n6. If deployed as an outbound proxy, run the following command to verify the ICAP profile:\n   show ns icapProfile\n7. Verify an external ICAP-based antivirus scanning engine is configured.\n\nIf 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.","fixText":"Configure the NetScaler Gateway to implement signature-based and/or nonsignature-based malicious code protection mechanisms at system entry and exit points.\n\nMethod: Procedural Control\n1. Configure Signature-Based Protection (WAF) for Inbound Traffic:\n   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).\n2. Configure File Inspection Protection (ICAP) for Outbound Traffic:\n   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).\n3. Save the configuration.","ccis":["CCI-004963"]},{"vulnId":"V-289089","ruleId":"SV-289089r1318036_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must include only approved trust anchors in trust stores or certificate stores managed by the organization.","description":"Public key infrastructure (PKI) certificates are certificates with visibility external to organizational systems and certificates related to the internal operations of systems, such as application-specific time services. In cryptographic systems with a hierarchical structure, a trust anchor is an authoritative source (i.e., a certificate authority) for which trust is assumed and not derived. A root certificate for a PKI system is an example of a trust anchor. A trust store or certificate store maintains a list of trusted root certificates.","checkContent":"Verify the NetScaler Gateway certificate authority (CA) trust store includes only approved DoW trust anchors.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> SSL >> Certificates >> CA Certificates.\n3. Review the list of all installed CA certificates.\n4. Verify the list contains only DoW-approved Root and Intermediate CA certificates.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to list all installed certificates:\n   show ssl certKey\n3. Review the output and verify that it only contains the names of approved DoW CA certificates.\n\nIf any non-DoW, public, or unapproved default CA certificates are present in the trust store, this is a finding.","fixText":"Configure the NetScaler Gateway to include only approved trust anchors in the CA certificate trust store by removing untrusted certificates.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. For each nonapproved CA certificate, identify where it is bound:\n   a. Navigate to Traffic Management >> SSL >> Certificates >> CA Certificates.\n   b. Select the untrusted certificate and, from the \"Action\" drop-down menu, select \"Show Bindings\".\n   c. Navigate to each location shown in the bindings list and unbind the certificate.\n3. Once the certificate is no longer bound to any object, return to the CA Certificates page.\n4. Select the untrusted certificate and select \"Delete\".\n5. Repeat until only approved DoW CA certificates remain.\n6. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. For each nonapproved CA certificate, run the following command to identify its bindings:\n   show ssl certKey <certkey_name> -showBindings\n3. Run the appropriate \"unbind\" command for each binding shown in the output (e.g., unbind ssl vserver <vserver_name> -certkeyName <certkey_name>).\n4. Once all bindings are removed, run the following command to delete the certificate:\n   rm ssl certKey <certkey_name>\n5. After all untrusted certificates have been removed, run the following command to save the configuration:\n   save ns config","ccis":["CCI-004909"]},{"vulnId":"V-289090","ruleId":"SV-289090r1318039_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must integrate with a systemwide intrusion detection system by forwarding all audit and security logs to a centralized log server.","description":"Without coordinated reporting between separate devices, it is not possible to identify the true scale and possible target of an attack.\n\nIntegration of the ALG with a systemwide intrusion detection system supports continuous monitoring and incident response programs. This requirement applies to monitoring at internal boundaries using TLS gateways, web content filters, email gateways, and other types of ALGs.\n\nALGs can work as part of the network monitoring capabilities to off-load inspection functions from the external boundary IDPS by performing more granular content inspection of protocols at the upper layers of the OSI reference model.\n\nSatisfies: SRG-NET-000383-ALG-000135, SRG-NET-000385-ALG-000137","checkContent":"Verify the NetScaler Gateway is configured to integrate with a systemwide Intrusion Detection System (IDS) by forwarding all security and traffic logs to a central log aggregator or SIEM.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features and check the box for \"Citrix Web App Firewall\". Select \"OK\".\n3. If enabled, navigate to System >> Auditing >> Syslog.\n4. From the \"Select Action\" drop-down menu, select \"Advanced Policy Global Bindings\".\n5. Verify that at least one syslog policy is listed and actively bound globally to ensure all events are forwarded to the external IDS/SIEM.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check if the Application Firewall feature is active:\n   show ns feature\n3. Locate the \"AppFw\" feature in the output. If the feature is \"OFF\", this requirement is Not Applicable and no further auditing is required.\n4. If the feature is \"ON\", run the following command to view active global syslog policy bindings:\n   show audit syslogGlobal\n5. Verify that at least one syslog policy is globally bound to forward events to an external IDS/SIEM.\n\nIf the \"AppFw\" feature is enabled but the NetScaler is not configured to forward its logs to a central IDS/SIEM, this is a finding.","fixText":"Configure the NetScaler Gateway to integrate with a systemwide IDS by forwarding all audit logs to it in real time.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Verify external syslog forwarding is configured and active to send logs to the central IDS/SIEM.\n3. Follow the detailed procedure in the Fix for CTNS-AG-000400 to establish the syslog server action, policy, and global binding.\n4. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Verify external syslog forwarding is configured and active to send logs to the central IDS/SIEM.\n3. Refer to the Fix for CTNS-AG-000400 to create and globally bind the syslog action and policy.\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002656","CCI-002684"]},{"vulnId":"V-289091","ruleId":"SV-289091r1318042_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must not have unnecessary services and functions enabled.","description":"Information systems are capable of providing a wide variety of functions (capabilities or processes) and services. Some of these functions and services are installed and enabled by default. The organization must determine which functions and services are required to perform the content filtering and other necessary core functionality for each component of the NetScaler. These unnecessary capabilities or services are often overlooked and therefore may remain unsecured. They increase the risk to the platform by providing additional attack vectors.\n\nThe primary function of the NetScaler is to provide application specific content filtering and/or proxy services. The NetScaler Gateway may integrate related content filtering and analysis services and tools (e.g., IPS, proxy, malware inspection, black/white lists). Some gateways may also include email scanning, decryption, caching, and DLP services. However, services and capabilities which are unrelated to this primary functionality must not be installed (e.g., DNS, email client or server, FTP server, or web server).\n\nNext Generation ALGs (NGFW) and Unified Threat Management (UTM) ALGs integrate functions which have been traditionally separated. These products integrate content filtering features to provide more granular policy filtering. There may be operational drawbacks to combining these services into one device. Another issue is that NGFW and UTM products vary greatly with no current definitive industry standard.","checkContent":"Verify the NetScaler Gateway is configured to disable or remove all unrelated or unneeded features and application proxy services.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Under the \"Modes and Features\" section, select \"Configure Basic Features\".\n4. Verify that only features strictly required for the Gateway's operational mission are checked.\n5. Select \"Configure Advanced Features\".\n6. Verify only required features are checked. Unused features (such as Content Switching, Cache Redirection, CallHome, IPv6 PT, GSLB) must be unchecked.\n7. Navigate to Traffic Management >> Load Balancing >> Virtual Servers.\n8. Verify that all listed virtual servers are authorized and required for operations.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view the status of all system features:\n   show ns feature\n3. Verify that only required features are listed as \"ON\", and all unused features are \"OFF\".\n4. Run the following command to view active load balancing virtual servers:\n   show lb vserver\n5. Verify that all configured virtual servers are authorized and required.\n\nIf any unrelated or unneeded services, features, or unauthorized virtual servers are enabled, this is a finding.","fixText":"Configure the NetScaler Gateway to disable or remove all unrelated or unneeded features and application proxy services.\n\nNote: Disabling features can impact system functionality and may require a reboot of the appliance.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Configure Advanced Features\" and uncheck any unneeded features. Select \"OK\".\n4. Select \"Configure Basic Features\" and uncheck any unneeded basic features. Select \"OK\".\n5. Navigate to Traffic Management >> Load Balancing >> Virtual Servers.\n6. Select any unneeded or unauthorized virtual servers, select the \"Select Action\" drop-down menu, and select \"Disable\" (or \"Delete\").\n7. Save the configuration.\n8. Reboot the appliance if prompted by the system.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to disable unneeded system features using the abbreviation found via the \"show ns feature\" command (e.g., CS for Content Switching, CH for CallHome):\n   disable ns feature <feature_abbreviation>\n3. Run the following command to disable any unneeded load balancing virtual servers:\n   disable lb vserver <unneeded_vserver_name>\n4. Run the following command to save the configuration:\n   save ns config\n5. Reboot the appliance if prompted by the system.","ccis":["CCI-000381"]},{"vulnId":"V-289092","ruleId":"SV-289092r1318045_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must obfuscate authentication error messages to prevent revealing exploitable information to unauthorized users.","description":"While the NetScaler can provide enhanced session feedback to end users during logon for troubleshooting purposes, providing too much information in error messages risks compromising the data and security of the application and system.\n\nOrganizations should carefully consider the structure/content of error messages. Enhanced session feedback should be limited to isolated development environments. Limit error messages to administrative logs for troubleshooting production systems, rather than providing detailed end-user facing error messages.\n\nSatisfies: SRG-NET-000273-ALG-000129, SRG-NET-000402-ALG-000130","checkContent":"Verify the NetScaler Gateway generates error messages that provide information necessary for corrective actions without revealing exploitable information by obfuscating authentication error messages.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic.\n3. Under \"Authentication Settings\", select \"Change authentication AAA settings\".\n4. Verify the \"Enable Enhanced Authentication Feedback\" checkbox is not selected.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view AAA parameters:\n   show aaa parameter\n3. Verify the \"EnableEnhancedAuthFeedback\" parameter is set to \"NO\".\n\nIf \"Enable Enhanced Authentication Feedback\" is selected, this is a finding.","fixText":"Configure the NetScaler Gateway to generate error messages that provide information necessary for corrective actions without revealing exploitable information.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic.\n3. Under \"Authentication Settings\", select \"Change authentication AAA settings\".\n4. Uncheck the \"Enable Enhanced Authentication Feedback\" checkbox.\n5. Select \"OK\".\n6. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to disable enhanced authentication feedback:\n   set aaa parameter -enhancedAuthState DISABLED\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001312","CCI-001314"]},{"vulnId":"V-289093","ruleId":"SV-289093r1318048_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must off-load all audit records in real time to a centralized log server.","description":"Off-loading ensures audit information does not get overwritten if the limited audit storage capacity is reached and also protects the audit record in case the system/component being audited is compromised.\n\nOff-loading is a common process in information systems with limited audit storage capacity. The audit storage on the NetScaler Gateway is used only in a transitory fashion until the system can communicate with the centralized log server designated for storing the audit records, at which point the information is transferred. However, DoW requires that the log be transferred in real time which indicates that the time from event detection to off-loading is seconds or less.\n\nThis does not apply to audit logs generated on behalf of the device itself (management).\n\nSatisfies: SRG-NET-000334-ALG-000050, SRG-NET-000511-ALG-000051","checkContent":"Verify the NetScaler Gateway off-loads audit records onto a centralized log server in real time.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Auditing >> Syslog.\n3. Select the \"Servers\" tab and verify at least one syslog server is configured pointing to a centralized log server IP.\n4. Select the \"Policies\" tab and verify a policy exists that targets the configured syslog server.\n5. From the \"Select Action\" drop-down menu, select \"Advanced Policy Global Bindings\".\n6. Verify that the syslog policy is listed, actively bound, and the \"Expression\" is set to \"true\" to ensure all Gateway events are forwarded in real time.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view active global syslog policy bindings:\n   show audit syslogGlobal\n3. Verify at least one syslog policy is listed in the output.\n4. Run the following command to verify the policy's rule:\n   show audit syslogPolicy <policy_name>\n5. Verify the \"Rule\" is set to \"true\".\n6. Run the following command to verify the policy points to an external central log server and excludes debug logging:\n   show audit syslogAction <action_name>\n7. Verify the \"Server IP\" field points to the approved centralized log server.\n8. Verify the \"Loglevel\" field contains EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, and INFORMATIONAL, but does not contain DEBUG.\n\nIf the NetScaler Gateway is not configured to off-load audit records to a centralized log server in real time via a globally bound policy with an expression of \"true\", or if \"DEBUG\" logging is enabled, this is a finding.","fixText":"Configure the NetScaler Gateway to off-load audit records onto a centralized log server in real time without enabling debug logging.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Auditing >> Syslog.\n3. Select the \"Servers\" tab and select \"Add\".\n4. Enter a name in the \"Name\" field, set \"Server Type\" to \"Server IP\", and enter the IP address of the centralized log server.\n5. Under \"Logging Levels\", select \"Custom\" and check EMERGENCY, ALERT, CRITICAL, ERROR, WARNING, NOTICE, and INFORMATIONAL. Verify \"DEBUG\" is unchecked. Select \"Create\".\n6. Select the \"Policies\" tab and select \"Add\".\n7. Enter a name in the \"Name\" field, select the syslog server from the \"Server\" drop-down menu, set the Expression Type to \"Advanced Policy\", and enter \"true\" as the expression. Select \"Create\".\n8. Navigate back to System >> Auditing >> Syslog. From the \"Select Action\" drop-down menu, select \"Advanced Policy Global Bindings\".\n9. Select \"Add Binding\", select the created policy, assign a unique priority, and select \"Bind\".\n10. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create the syslog server action with the correct log levels:\n   add audit syslogAction <action_name> <central_log_server_ip> -logLevel EMERGENCY ALERT CRITICAL ERROR WARNING NOTICE INFORMATIONAL\n3. Run the following command to create the Advanced Syslog policy with the rule set to \"true\":\n   add audit syslogPolicy <policy_name> true <action_name>\n4. Run the following command to bind the policy globally to ensure real-time offloading:\n   bind audit syslogGlobal -policyName <policy_name> -priority <priority_number>\n5. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001851"]},{"vulnId":"V-289094","ruleId":"SV-289094r1318583_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must only allow incoming communications from organization-defined authorized sources routed to organization-defined authorized destinations.","description":"Unrestricted traffic may contain malicious traffic which poses a threat to an enclave or to other connected networks. Additionally, unrestricted traffic may transit a network, which uses bandwidth and other resources.\n\nAccess control policies and access control lists (ACLs) implemented on devices that control the flow of network traffic (e.g., application level firewalls and web content filters), ensure the flow of traffic is only allowed from authorized sources to authorized destinations. Networks with different levels of trust (e.g., the internet or CDS) must be kept separate.","checkContent":"Verify the NetScaler Gateway only allows incoming communications from organization-defined authorized sources routed to organization-defined authorized destinations.\n\nNote: Simply verifying the existence of an ACL is insufficient. The auditor must review the content of the rules to ensure least privilege is applied and overly permissive rules are absent.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Network >> ACLs.\n3. Review the rules listed under both the \"Simple ACLs\" and \"Extended ACLs\" tabs.\n4. Verify that the configured \"ALLOW\" rules are explicitly restricted to organization-defined authorized source IP subnets and destination ports.\n5. Verify the absence of overly permissive rules (e.g., rules allowing \"ANY\" source to \"ANY\" destination).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Execute the following command to view all configured IPv4 ACLs (Note: Use \"show ns acl6\" if IPv6 is in use):\n   show ns acl\n3. Review the output. Verify that \"Action: ALLOW\" rules explicitly define authorized \"srcIP\" (source) and \"destIP\" (destination) parameters.\n4. Verify that no overly permissive rules exist, and that a default deny stance is enforced for unauthorized traffic.\n\nIf ACLs are not configured, if \"ALLOW\" rules are overly permissive (e.g., allowing unauthorized sources), or if a default deny stance is not enforced, this is a finding.","fixText":"Configure the NetScaler Gateway to only allow incoming communications from organization-defined authorized sources routed to organization-defined authorized destinations using ACLs.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Network >> ACLs.\n3. Select the \"Extended ACLs\" tab and select \"Add\".\n4. Provide an ACL Name and set the \"Action\" to \"ALLOW\".\n5. Define the specific authorized Source IP/Subnet and the specific Destination IP/Port. Select \"Create\".\n6. Create a subsequent rule with a higher \"Priority\" number (lower precedence) with the \"Action\" set to \"DENY\" to block all remaining unauthorized traffic.\n7. Select the newly created rules, select the \"Select Action\" drop-down, and select \"Apply\" to commit them to the packet engine.\n8. Save the configuration using the floppy disk icon.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Create an Extended ACL to allow specific authorized traffic:\n   add ns acl <Allow_Rule_Name> ALLOW -srcIP <Authorized_Source_Subnet> -destIP <Destination_IP> -destPort <Port> -protocol TCP -priority 100\n3. Create a subsequent ACL to deny unauthorized traffic to that destination:\n   add ns acl <Deny_Rule_Name> DENY -destIP <Destination_IP> -destPort <Port> -protocol TCP -priority 9999\n4. Apply the ACLs to the active packet engine:\n   apply ns acls\n5. Save the configuration:\n   save ns config","ccis":["CCI-002403"]},{"vulnId":"V-289095","ruleId":"SV-289095r1318054_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must perform real-time scans of downloaded files and quarantine malicious code by integrating with an external ICAP-compliant antivirus server.","description":"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.\n\nTo 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.\n\nThis requirement is limited to ALGs, web content filters, and packet inspection firewalls that perform malicious code detection as part of their functionality.\n\nSatisfies: SRG-NET-000248-ALG-000133, SRG-NET-000249-ALG-000145","checkContent":"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.\n\nNote: 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.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Configure Advanced Features\".\n4. 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.\n5. If enabled, navigate to Security >> Content Inspection >> ICAP Profiles.\n6. Verify an ICAP profile is configured for antivirus scanning.\n7. Navigate to Security >> Content Inspection >> Actions.\n8. Verify an action exists that links to the ICAP profile and targets an antivirus server.\n9. Navigate to Traffic Management >> Content Switching >> Virtual Servers (or Cache Redirection >> Virtual Servers).\n10. Select the active outbound proxy virtual server and select \"Edit\".\n11. Verify a Content Inspection policy is bound that directs traffic to the ICAP action.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check the status of the required features:\n   show ns feature\n3. Locate the \"Forward Proxy\" and \"Content Inspection\" features. If these are \"OFF\", this requirement is Not Applicable and no further auditing is required.\n4. Run the following command to verify the ICAP profile:\n   show ns icapProfile\n5. Run the following command to verify the Content Inspection action:\n   show contentInspection action\n6. Run the following command to verify the virtual server bindings:\n   show cs vserver <outbound_vserver_name>\n7. Verify that a Content Inspection policy is actively bound.\n\nIf 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.","fixText":"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.\n\nNote: No action is required if the NetScaler is not deployed as an outbound SSL Forward Proxy.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> Load Balancing >> Services and select \"Add\" to create a service for the external ICAP antivirus server (using TCP port 1344).\n3. Navigate to Security >> Content Inspection >> ICAP Profiles and select \"Add\".\n4. Enter a name, set the \"Protocol\" (e.g., /avscan), and set the \"Mode\" (e.g., RESPMOD). Select \"Create\".\n5. Navigate to Security >> Content Inspection >> Actions and select \"Add\".\n6. 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\".\n7. Navigate to Security >> Content Inspection >> Policies and select \"Add\".\n8. Enter a name, select the Action created in Step 6, and enter an expression to identify file traffic. Select \"Create\".\n9. Navigate to Traffic Management >> Content Switching >> Virtual Servers (or the applicable outbound virtual server).\n10. Select the outbound proxy virtual server, select \"Edit\", and bind the Content Inspection policy created in Step 8.\n11. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create a service for the ICAP server:\n   add service <icap_service_name> <av_server_ip> TCP 1344\n3. Run the following command to create an ICAP profile:\n   add ns icapProfile <icap_profile_name> -uri \"/avscan\" -Mode RESPMOD\n4. Run the following command to create a Content Inspection action:\n   add contentInspection action <ci_action_name> -type ICAP -serverName <icap_service_name> -icapProfileName <icap_profile_name>\n5. Run the following command to create a Content Inspection policy:\n   add contentInspection policy <ci_policy_name> -rule 'HTTP.RES.HEADER(\"Content-Type\").CONTAINS(\"application\")' -action <ci_action_name>\n6. Run the following command to bind the policy to the outbound virtual server:\n   bind cs vserver <outbound_vserver_name> -policyName <ci_policy_name> -priority <priority_number> -type RESPONSE\n7. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002624","CCI-001243"]},{"vulnId":"V-289096","ruleId":"SV-289096r1318057_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must prohibit the use of cached authenticators after an organization-defined time period.","description":"If the cached authenticator information is out of date, the validity of the authentication information may be questionable.\n\nThis requirement applies to all NetScaler Gateways which may cache user authenticators for use throughout a session. This requirement also applies to NetScaler Gateways that provide user authentication intermediary services (e.g., authentication gateway or TLS gateway). This does not apply to authentication for the purpose of configuring the device itself (device management).","checkContent":"Verify the NetScaler Gateway is configured to prohibit the use of cached authenticators after an organization-defined time period by enforcing a forced session timeout.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab.\n4. Select the active profile bound to the Gateway Virtual Server and select \"Edit\".\n5. Select the \"Client Experience\" tab.\n6. Verify the \"Forced Time-out (mins)\" field is set to an organizationally defined limit (e.g., 480).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view the active session profile:\n   show vpn sessionAction <profile_name>\n3. Verify the output displays the \"Forced Timeout\" parameter set to the organizationally defined limit (e.g., Forced Timeout: 480 min).\n\nIf the Forced Timeout is set to \"0\" (disabled) or a value higher than the organizational limit, this is a finding.","fixText":"Configure the NetScaler Gateway to prohibit the use of cached authenticators after an organization-defined time period by enforcing a forced session timeout.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab, select the active profile, and select \"Edit\".\n4. Select the \"Client Experience\" tab.\n5. Select the \"Override Global\" checkbox for \"Forced Time-out (mins)\" and enter the organizationally defined limit in minutes (e.g., 480).\n6. Select \"OK\".\n7. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to set the forced session timeout:\n   set vpn sessionAction <profile_name> -forcedTimeout <number>\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002007"]},{"vulnId":"V-289097","ruleId":"SV-289097r1318060_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must protect the authenticity of communications sessions.","description":"Authenticity protection provides protection against man-in-the-middle attacks/session hijacking and the insertion of false information into sessions.\n\nThis requirement focuses on communications protection for the application session rather than for the network packet and establishes grounds for confidence at both ends of communications sessions in ongoing identities of other parties and in the validity of information transmitted. Depending on the required degree of confidentiality and integrity, web services/SOA will require the use of mutual authentication (two-way/bidirectional).","checkContent":"Verify the NetScaler Gateway is configured to protect the authenticity of communications sessions by enforcing Content Security Policies (CSP), HTTP Strict Transport Security (HSTS), and secure SSL renegotiation.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic. \n3. Select \"Change authentication AAA settings\".\n4. Verify the \"Default CSP Header\" drop-down menu is set to \"ENABLED\".\n5. Navigate to Citrix Gateway >> Virtual Servers. \n6. Select the active Gateway Virtual Server and select \"Edit\".\n7. Locate the \"SSL Profile\" binding and verify an Advanced SSL Profile is bound to the Gateway.\n8. Navigate to System >> Profiles >> SSL Profile Tab. \n9. Select the bound profile and select \"Edit\".\n10. Verify that \"Deny SSL Renegotiation\" is set to \"NONSECURE\" or \"ALL\".\n11. Verify the \"HSTS\" checkbox is selected, \"Max Age\" is set to at least \"15768000\", and \"Include Subdomains\" is selected.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the global CSP header:\n   show aaa parameter\n3. Verify the output displays \"CSP Header: ENABLED\".\n4. Run the following command to identify the bound SSL Profile:\n   show ssl vserver <gateway_vserver_name>\n5. Verify the \"Profile Name\" field is populated with a custom SSL Profile.\n6. Run the following command to verify the profile's security settings:\n   show ssl profile <profile_name>\n7. Verify the output displays the following parameters:\n   Deny SSL Renegotiation: ALL (or NONSECURE)\n   HSTS: ENABLED\n   HSTS Max-Age: 15768000 (or higher)\n   HSTS IncludeSubDomains: YES\n\nIf the CSP header is disabled, HSTS is disabled, or SSL renegotiation is unrestricted, this is a finding.","fixText":"Configure the NetScaler Gateway to protect the authenticity of communications sessions using an Advanced SSL Profile and CSP headers.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic. \n3. Select \"Change authentication AAA settings\".\n4. Set the \"Default CSP Header\" drop-down menu to \"ENABLED\" and select \"OK\".\n5. Navigate to System >> Profiles >> SSL Profile and select \"Add\".\n6. Enter a name. Set \"Deny SSL Renegotiation\" to \"ALL\" (or \"NONSECURE\").\n7. Select the \"HSTS\" checkbox, enter \"15768000\" in the \"Max Age\" field, and select the \"Include Subdomains\" checkbox. Select \"Create\".\n8. Navigate to Citrix Gateway >> Virtual Servers, select the active Gateway Virtual Server, and select \"Edit\".\n9. Enable \"SSL Profile\" on the virtual server and select the newly created profile from the drop-down menu. Select \"OK\".\n10. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enable the global CSP header:\n   set aaa parameter -defaultCSPHeader ENABLED\n3. Run the following command to create the secure Advanced SSL Profile:\n   add ssl profile <profile_name> -denySSLReneg ALL -HSTS ENABLED -maxage 15768000 -includeSubdomains YES -ssl3 DISABLED -tls1 DISABLED -tls11 DISABLED\n4. Run the following command to bind the SSL Profile to the Gateway Virtual Server:\n   set ssl vserver <gateway_vserver_name> -sslProfile <profile_name>\n5. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001184"]},{"vulnId":"V-289098","ruleId":"SV-289098r1318063_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must restrict or block harmful or suspicious communications traffic by controlling the flow of information between interconnected networks based on attribute- and content-based inspection of the source, destination, headers, and/or content of the communications traffic.","description":"The NetScaler Gateway must restrict or block harmful or suspicious communications traffic by controlling the flow of information between interconnected networks based on attribute- and content-based inspection of the source, destination, headers, and/or content of the communications traffic.","checkContent":"Verify the NetScaler Gateway restricts harmful or suspicious traffic by performing content-based inspection using the Web Application Firewall (WAF).\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features.\n3. Verify \"Web App Firewall\" is checked (enabled).\n4. Navigate to Security >> Citrix Web App Firewall >> Policies >> Firewall.\n5. Select \"Policy Manager\".\n6. Select \"Default Global\" from the \"Bind Point\" drop-down menu and select \"Continue\".\n7. Verify an active WAF policy is bound and note the associated Profile name.\n8. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n9. Select the noted AppFw Profile and select \"Edit\".\n10. In Advanced Settings menu on the right, select \"Security Checks\".\n11. Verify that \"SQL Injection\" and \"Cross-Site Scripting (XSS)\" both have \"Block\" enabled.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the WAF feature is enabled:\n   show ns feature\n3. Verify the output shows \"AppFw\" as \"ON\".\n4. Run the following command to view active globally bound WAF policies:\n   show appfw global\n5. Note the profile name associated with the active policy.\n6. Run the following command, replacing \"<profile_name>\" with the name of the active profile:\n   show appfw profile <profile_name> | grep -i \"Action\"\n7. Verify the output includes the lines \"sqliAction: block\" and \"crossSiteScriptingAction: block\".\n\nIf the AppFw feature is not enabled, or if SQL Injection or XSS protections are not set to block, this is a finding.","fixText":"Configure the NetScaler Gateway WAF to restrict harmful traffic using content-based inspection.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features, check the box for \"Web App Firewall\", and select \"OK\".\n3. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n4. Select \"Add\" to create a new profile. Provide a name, set Profile Type to \"Web Application\", and select \"OK\".\n5. Select the newly created profile and select \"Edit\".\n6. In Advanced Settings menu on the right, select \"Security Checks\".\n7. Locate \"SQL Injection\" and \"Cross-Site Scripting (XSS)\" and check the box in the \"Block\" column for both. Select \"OK\".\n8. Navigate to Security >> Citrix Web App Firewall >> Policies >> Firewall. Select \"Add\".\n9. Provide a name for the policy, select the profile created in Step 4 as the action, enter \"true\" as the expression, and select \"Create\".\n10. Navigate to Security >> Citrix Web App Firewall >> Policies >> Firewall and select \"Policy Manager\".\n11. Select \"Default Global\" from the Bind Point drop-down menu and select \"Continue\".\n12. Select \"Add Binding\", choose the policy created in Step 8, assign a unique priority number, and select \"Bind\".\n13. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enable the Application Firewall feature:\n   enable ns feature AppFw\n3. Run the following command to create or update an Application Firewall profile with the required content inspection features:\n   add appfw profile <profile_name> -sqliAction block log stats -crossSiteScriptingAction block log stats\n4. Run the following command to create an AppFw policy linking to the profile:\n   add appfw policy <policy_name> true <profile_name>\n5. Run the following command to bind the AppFw policy globally:\n   bind appfw global <policy_name> -priority <priority_number> -type REQ_DEFAULT\n6. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001414"]},{"vulnId":"V-289099","ruleId":"SV-289099r1318549_rule","severity":"medium","ruleTitle":"The NetScaler Gateway must terminate all network connections associated with a communications session at the end of the session, or as follows: for in-band management sessions (privileged sessions), the session must be terminated after 10 minutes of inactivity; and for user sessions (nonprivileged session), the session must be terminated after 15 minutes of inactivity.","description":"Terminating an idle session within a short time period reduces the window of opportunity for unauthorized personnel to take control of a management session enabled on the console or console port that has been left unattended. In addition, quickly terminating an idle session will also free up resources committed by the managed network element.\n\nTerminating network connections associated with communications sessions includes, for example, de-allocating associated TCP/IP address/port pairs at the operating system level, and de-allocating networking assignments at the application level if multiple application sessions are using a single operating system level network connection.\n\nNetScaler Gateways may provide session control functionality as part of content filtering, load balancing, or proxy services.","checkContent":"Verify the NetScaler Gateway terminates all network connections associated with a communications session after 15 minutes of inactivity for user sessions.\n\nNote: Privileged/management session timeouts are governed by SRG-APP-000190-NDM-000267.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab and select the active profile that is globally bound or bound to the Gateway Virtual Server. Select \"Edit\".\n4. Select the \"Client Experience\" tab.\n5. Verify \"Client Idle Time-out (mins)\" is set to \"15\".\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to identify the globally bound Session Policy and its corresponding Action (Profile):\n   show vpn global\n3. Run the following command to view the active session profile:\n   show vpn sessionAction <action_name>\n4. Verify the output displays \"Client Idle Timeout: 15 min\".\n\nIf the client idle timeout is not set to 15 minutes, this is a finding.","fixText":"Configure the NetScaler Gateway to terminate nonprivileged user sessions after 15 minutes of inactivity.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab, select the active profile, and select \"Edit\".\n4. Select the \"Client Experience\" tab.\n5. Select the \"Override Global\" checkbox for \"Client Idle Time-out (mins)\" and enter \"15\". Select \"OK\".\n6. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enforce the 15-minute inactivity timeout on the active session profile:\n   set vpn sessionAction <action_name> -clientIdleTimeout 15\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001133"]},{"vulnId":"V-289100","ruleId":"SV-289100r1318069_rule","severity":"high","ruleTitle":"The NetScaler Gateway must use FIPS 140-3-approved cryptographic algorithms and modules for authentication, encryption, and cryptographic storage.","description":"Without confidentiality protection mechanisms, unauthorized individuals may gain access to sensitive information via a remote access session.\n\nRemote access is access to DoW nonpublic information systems by an authorized user (or an information system) communicating through an external, nonorganization-controlled network. Remote access methods include broadband and wireless connections. Remote access methods include, for example, proxied remote encrypted traffic (e.g., TLS gateways, web content filters, and webmail proxies).\n\nEncryption provides a means to secure the remote connection to prevent unauthorized access to the data traversing the remote access connection, thereby providing a degree of confidentiality. The encryption strength of the mechanism is selected based on the security categorization of the information.\n\nThis requirement applies to NetScaler instances providing remote access proxy services as part of its intermediary services (e.g., OWA or TLS gateway).\n\nSatisfies: SRG-NET-000062-ALG-000011, SRG-NET-000062-ALG-000092, SRG-NET-000019-ALG-000019","checkContent":"Verify the NetScaler Gateway uses FIPS 140-3-approved algorithms for cryptography and protected storage. This is verified based on the deployment model.\n\nMethod 1: GUI Verification (Standard Appliances with External HSM)\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> SSL >> HSM.\n3. Verify the appliance is configured to use a supported, FIPS-compliant external Hardware Security Module (e.g., Thales Luna, Azure Key Vault).\n4. Verify the required HSM Keys are populated and show as active.\n\nMethod 2: CLI Verification (Dedicated FIPS Appliances with Internal HSM)\n1. Log in to the NetScaler CLI.\n2. Run the following command:\n   show system fipsStatus\n3. Verify the output displays \"FipsStatus: System is operating in FIPS mode.\"\n   (Note: On a FIPS-initialized appliance, the internal hardware cryptographic module is used for all internal authentication and key management by default.)\n\nIf the NetScaler Gateway is not a dedicated FIPS appliance operating in FIPS mode, and is not configured to use an approved external FIPS-compliant HSM, this is a finding.","fixText":"Configure the NetScaler Gateway to use FIPS 140-3-approved algorithms for authentication and cryptographic storage.\n\nMethod 1: GUI Configuration (Standard Appliances with External HSM)\nNote: This method applies only to standard appliances integrating with an external HSM. This is a nondestructive configuration.\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> SSL >> HSM.\n3. Select \"Add\" to install an HSM key.\n4. Populate the fields to connect the NetScaler Gateway to the organization's approved, external FIPS-compliant HSM.\n5. Select \"Install\".\n6. Save the running configuration.\n\nMethod 2: CLI Configuration (Dedicated FIPS Appliances with Internal FIPS Module)\nWARNING: THIS IS A DESTRUCTIVE ACTION. Initializing the FIPS HSM will permanently erase all existing cryptographic keys and certificates. This process must be performed during initial appliance setup or a planned maintenance window.\n1. Log in to the NetScaler CLI.\n2. Verify the current FIPS status before executing any commands:\n   show system fipsStatus\n3. If the output confirms \"System is operating in FIPS mode,\" STOP. Do not proceed with the remaining steps.\n4. Transfer all necessary FIPS-compliant certificates and keys to a secure external location.\n5. Run the following command to create a full backup of the appliance configuration:\n   create system backup <backup_name> -level FULL\n6. Run the following command to initiate FIPS mode (this requires setting new FIPS security officer and user passwords; for a new appliance, default passwords may be required):\n   set ssl fips -initHSM Level-2 <soPassword> <oldSoPassword> <userPassword>\n7. Run the following command to save the configuration:\n   save ns config\n8. Run the following command to reboot the appliance:\n   reboot\n9. After the reboot, log back in to the appliance, re-import all FIPS-compliant certificates and keys, and restore the necessary configuration from the backup.","ccis":["CCI-000068","CCI-001414"]},{"vulnId":"V-289101","ruleId":"SV-289101r1318072_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing content filtering must block malicious code upon detection.","description":"Taking an appropriate action based on local organizational incident handling procedures minimizes the impact of this code on the network.\n\nThis requirement is limited to ALGs web content filters and packet inspection firewalls; that perform malicious code detection as part of their functionality.","checkContent":"Verify the NetScaler Gateway is configured to block malicious code upon detection using the Web App Firewall (WAF).\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features and check the box for \"Citrix Web App Firewall\". Select \"OK\".\n3. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n4. Select the active WAF profile and select \"Edit\".\n5. In Advanced Settings menu on the right, select \"Security Checks\".\n6. Verify that critical security checks such as \"Cross-Site Scripting (XSS)\" and \"SQL Injection\" have \"Block\" enabled.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check if the Application Firewall feature is active:\n   show ns feature\n3. Locate the \"AppFw\" feature in the output. If the feature is \"OFF\", this requirement is Not Applicable and no further auditing is required.\n4. If the feature is \"ON\", run the following command to identify the active globally bound WAF policy:\n   show appfw global\n5. Run the following command to view the profile settings:\n   show appfw profile <profile_name>\n6. Verify the output displays that the security checks are configured to block (e.g., Cross-Site Scripting Action: block, SQL Injection Action: block).\n\nIf the AppFw feature is enabled but the security checks are not configured to block malicious code, this is a finding.","fixText":"Configure the NetScaler Gateway to block malicious code upon detection using the WAF.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n3. Select the active WAF profile and select \"Edit\".\n4. In Advanced Settings menu on the right, select \"Security Checks\".\n5. In the main panel, locate \"Cross-Site Scripting (XSS)\" and \"SQL Injection\".\n6. Check the boxes in the \"Block\" column for these security checks.\n7. Select \"OK\" or \"Done\".\n8. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to update the active WAF profile to block malicious code:\n   set appfw profile <profile_name> -crossSiteScriptingAction block -SQLInjectionAction block\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001243"]},{"vulnId":"V-289102","ruleId":"SV-289102r1318075_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing content filtering must continuously monitor outbound communications traffic crossing internal security boundaries for unusual/unauthorized activities or conditions.","description":"If outbound communications traffic is not continuously monitored, hostile activity may not be detected and prevented. Output from application and traffic monitoring serves as input to continuous monitoring and incident response programs.\n\nInternal monitoring includes the observation of events occurring on the network crosses internal boundaries at managed interfaces such as web content filters. Depending on the type of ALG, organizations can monitor information systems by monitoring audit activities, application access patterns, characteristics of access, content filtering, or unauthorized exporting of information across boundaries. Unusual/unauthorized activities or conditions may include large file transfers, long-time persistent connections, unusual protocols and ports in use, and attempted communications with suspected malicious external addresses.","checkContent":"Verify the NetScaler Gateway continuously monitors outbound communications traffic for unusual or unauthorized activities when configured as an outbound proxy.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Configure Advanced Features\".\n4. Verify the status of the \"Forward Proxy\" checkbox. If it is unchecked, this requirement is Not Applicable and no further auditing is required.\n5. If enabled, navigate to Traffic Management >> Content Switching >> Virtual Servers (or Cache Redirection >> Virtual Servers).\n6. Select the outbound proxy virtual server and select \"Edit\".\n7. Verify an active Web App Firewall (WAF) or Content Inspection (CI) policy is bound to monitor outbound traffic.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check if the Forward Proxy feature is active:\n   show ns feature\n3. Locate the \"Forward Proxy\" (ForwardProxy) feature. If this feature is \"OFF\", this requirement is Not Applicable and no further auditing is required.\n4. Run the following command to verify the outbound proxy virtual server bindings:\n   show cs vserver <outbound_vserver_name>\n5. Verify that an active Citrix Web App Firewall (AppFw) or CI policy is bound to monitor the traffic.\n\nIf the Forward Proxy feature is enabled and no outbound inspection policies are bound to monitor the traffic, this is a finding.","fixText":"Configure the NetScaler Gateway to continuously monitor outbound communications traffic when used as an outbound proxy.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> Content Switching >> Virtual Servers (or the applicable outbound proxy virtual server).\n3. Select the outbound proxy virtual server and select \"Edit\".\n4. Select the \"Policies\" section to add a binding.\n5. Select the appropriate inspection policy (e.g., a Web App Firewall or Content Inspection policy configured to log and block unauthorized activity), assign a unique priority, and select \"Bind\".\n6. Select \"Done\".\n7. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to bind an inspection policy (e.g., WAF or CI) to the outbound proxy virtual server:\n   bind cs vserver <outbound_vserver_name> -policyName <policy_name> -priority <priority_number>\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002662"]},{"vulnId":"V-289103","ruleId":"SV-289103r1318078_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing content filtering must detect use of network services that have not been authorized or approved by the information system security manager (ISSM) and information system security officer (ISSO), at a minimum.","description":"Unauthorized or unapproved network services lack organizational verification or validation and therefore may be unreliable or serve as malicious rogues for valid services.\n\nExamples of network services include service-oriented architectures (SOAs), cloud-based services (e.g., infrastructure as a service, platform as a service, or software as a service), cross-domain, Voice Over Internet Protocol (VOIP), instant messaging, auto-execute, and file sharing.\n\nTo comply with this requirement, the ALG may be configured to detect services either directly or indirectly (i.e., by detecting traffic associated with a service). This requirement applies to gateways/firewalls that perform content inspection or have higher-layer proxy functionality.","checkContent":"Verify the NetScaler Gateway detects the use of unauthorized network services by enforcing a default-deny posture and logging blocked attempts.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Groups.\n3. Select the active AAA Group and select \"Edit\".\n4. Under \"Advanced Settings\", select \"Authorization Policies\".\n5. Verify that a default \"DENY\" policy is bound with the highest priority number (lowest precedence) and has its expression set to \"true\" to block and log unauthorized traffic.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view policies bound to the active user group:\n   show aaa group <group_name>\n3. Verify the output displays an Authorization Policy with \"Action: DENY\" bound with the lowest precedence and its rule set to \"true\".\n\nIf a default-deny authorization policy is not active to detect and block unauthorized service access, this is a finding.","fixText":"Configure the NetScaler Gateway to detect and block the use of unauthorized network services.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Policies >> Authorization. \n3. Select \"Add\".\n4. Enter a name for the policy, set the Action to \"DENY\", and enter \"true\" as the expression. Select \"Create\".\n5. Navigate to Security >> AAA - Application Traffic >> Groups. \n6. Select the active group and select \"Edit\".\n7. Under \"Advanced Settings\", select \"Authorization Policies\".\n8. Select \"Add Binding\".\n9. Choose the default deny policy created in Step 4, set the \"Priority\" to the highest priority number (lowest precedence) to act as a catch-all, and set the Type to \"REQUEST\". Select \"Bind\".\n10. Select \"Done\" and save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create the default \"DENY\" authorization policy:\n   add authorization policy <deny_policy_name> \"true\" DENY\n3. Run the following command to bind the default \"DENY\" policy to the active AAA Group at the lowest precedence:\n   bind aaa group <group_name> -policy <deny_policy_name> -priority <lowest_priority_number> -type REQUEST\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002683"]},{"vulnId":"V-289104","ruleId":"SV-289104r1318551_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing content filtering must prevent the download of prohibited mobile code.","description":"Mobile code is defined as software modules obtained from remote systems, transferred across a network, and then downloaded and executed on a local system without explicit installation or execution by the recipient.\n\nThis applies to mobile code that may originate either internal to or external from the enclave. Mobile code is defined as software modules obtained from remote systems, transferred across a network, and then downloaded and executed on a local system without explicit installation or execution by the recipient. Mobile code which must be prevented from downloading is identified in CCI-001166.","checkContent":"Configure the NetScaler Gateway to prevent the download of prohibited mobile code.\n\nMethod: Procedural Control\n1. Configure Signature-Based Protection (Web App Firewall [WAF]): \n   If the Application Firewall is active, update the globally-bound WAF profile to block Cross-Site Scripting (XSS). (Follow the detailed procedure in the Fix for CTNS-AG-000260).\n2. Configure File Inspection Protection (ICAP): \n   If the appliance is deployed as an outbound SSL Forward Proxy, configure an ICAP profile and Content Inspection policy to scan and block malicious file downloads via an external antivirus server. (Follow the detailed procedure in the Fix for CTNS-AG-000320).\n3. Save the configuration.","fixText":"Configure the NetScaler Gateway to prevent the download of prohibited mobile code.\n\nMethod: Procedural Control\n1. Configure Signature-Based Protection (WAF): \n   If the Application Firewall is active, update the globally-bound WAF profile to block XSS. (Follow the detailed procedure in the Fix for CTNS-AG-000260).\n2. Configure File Inspection Protection (ICAP): \n   If the appliance is deployed as an outbound SSL Forward Proxy, configure an ICAP profile and Content Inspection policy to scan and block malicious file downloads via an external antivirus server. (Follow the detailed procedure in the Fix for CTNS-AG-000320).\n3. Save the configuration.","ccis":["CCI-001169"]},{"vulnId":"V-289105","ruleId":"SV-289105r1318573_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing content filtering must protect against known and unknown types of denial-of-service (DoS) attacks by employing rate-based attack prevention behavior analysis.","description":"If the network does not provide safeguards against DoS attacks, network resources will be unavailable to users.\n\nInstallation of content filtering gateways and application layer firewalls 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.\n\nDetection components that use rate-based behavior analysis can detect attacks when signatures for the attack do not exist or are not installed. These attacks include zero-day attacks which are new attacks for which vendors have not yet developed signatures. Rate-based behavior analysis can detect sophisticated, Distributed DoS (DDoS) attacks by correlating traffic information from multiple network segments or components.\n\nThis requirement applies to the communications traffic functionality of the NetScaler Gateway as it pertains to handling communications traffic, rather than to the NetScaler Gateway device itself.","checkContent":"Verify the NetScaler Gateway protects against DoS attacks by employing rate-based attack prevention behavior analysis.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers. \n3. Verify an identifier is configured with an organizationally defined threshold.\n4. Navigate to AppExpert >> Responder >> Policies. \n5. Review the \"Expression\" column in the policy list and verify a Responder policy exists that uses the \"sys.check_limit\" expression.\n6. Navigate to Citrix Gateway >> Virtual Servers.\n7. Select the active Gateway Virtual Server and select \"Edit\". \n8. Verify that the rate-limiting Responder policy is actively bound.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view configured rate limits:\n   show ns limitIdentifier\n3. Verify a rate limit identifier is configured.\n4. Run the following command to view the rule expression of the specific rate-limiting policy:\n   show responder policy <policy_name>\n5. Verify the \"Rule\" output uses the \"sys.check_limit\" expression.\n6. Run the following command to verify the virtual server bindings:\n   show vpn vserver <gateway_vserver_name>\n7. Verify the rate-limiting Responder policy is bound to the virtual server.\n\nIf a rate-limiting Responder policy is not bound to the Gateway Virtual Server, this is a finding.","fixText":"Configure the NetScaler Gateway to protect against DoS attacks using rate-based prevention.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to AppExpert >> Rate Limiting >> Selectors and select \"Add\". \n3. Enter a name for the selector and create an expression to identify traffic (e.g., CLIENT.IP.SRC). Select \"Create\".\n4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers and select \"Add\". \n5. Enter a name for the identifier, choose the Selector created in Step 3, set the Threshold and Time Slice to organizationally defined limits, and select \"Create\".\n6. Navigate to AppExpert >> Responder >> Policies and select \"Add\". \n7. Enter a name for the policy, set the \"Action\" to \"DROP\", and in the expression box, enter \"sys.check_limit\" (\"<limit_identifier_name>\"). Select \"Create\".\n8. Navigate to Citrix Gateway >> Virtual Servers, select the active Gateway Virtual Server, and select \"Edit\". \n9. Bind the Responder policy created in Step 7.\n10. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create a Limit Selector to identify traffic by source IP:\n   add stream selector <limit_selector_name> \"CLIENT.IP.SRC\"\n3. Run the following command to create a Limit Identifier, linking it to the selector created in Step 2 and applying organizationally defined limits:\n   add ns limitIdentifier <limit_identifier_name> -threshold <threshold_value> -timeSlice <time_slice_in_ms> -selectorName <limit_selector_name>\n4. Run the following command to create the Responder Policy that drops traffic, linking it to the identifier created in Step 3:\n   add responder policy <responder_policy_name> \"sys.check_limit(\\\"<limit_identifier_name>\\\")\" DROP\n5. Run the following command to bind the Responder policy to the Gateway Virtual Server:\n   bind vpn vserver <gateway_vserver_name> -policy <responder_policy_name> -priority <priority_number> -gotoPriorityExpression END -type REQUEST\n6. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002385"]},{"vulnId":"V-289106","ruleId":"SV-289106r1318087_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing content filtering must protect against known types of denial-of-service (DoS) attacks by employing signatures.","description":"If the network does not provide safeguards against DoS attacks, network resources will be unavailable to users. \n\nInstallation of content filtering gateways and application layer firewalls 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, or protocol usage.\n\nDetection components that use signatures can detect known attacks by using known attack signatures. Signatures are usually obtained from and updated by the ALG component vendor.\n \nThis requirement applies to the communications traffic functionality of the ALG as it pertains to handling communications traffic, rather than to the ALG device itself.","checkContent":"Verify the NetScaler Gateway protects against DoS attacks by employing Rate Limiting as a pattern recognition preprocessor.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to AppExpert >> Rate Limiting >> Selectors.\n3. Verify a selector is configured with an expression to identify and categorize traffic patterns by type (e.g., CLIENT.IP.SRC).\n4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers. \n5. Verify an identifier is configured and linked to the selector identified in Step 3.\n6. Navigate to AppExpert >> Responder >> Policies. \n7. Review the \"Expression\" column in the policy list and verify a Responder policy exists that uses the \"sys.check_limit\" expression.\n8. Navigate to Citrix Gateway >> Virtual Servers.\n9. Select the active Gateway Virtual Server and select \"Edit\". \n10. Verify the rate-limiting Responder policy is actively bound.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view configured traffic pattern selectors:\n   show stream selector\n3. Verify a selector is configured to recognize traffic patterns by type (e.g., Rule: CLIENT.IP.SRC).\n4. Run the following command to view configured rate limits:\n   show ns limitIdentifier\n5. Verify a rate limit identifier is configured and linked to the selector.\n6. Run the following command to view the rule expression of the specific rate-limiting policy:\n   show responder policy <policy_name>\n7. Verify the \"Rule\" output uses the \"sys.check_limit\" expression.\n8. Run the following command to verify the virtual server bindings:\n   show vpn vserver <gateway_vserver_name>\n9. Verify the rate-limiting Responder policy is bound to the virtual server.\n\nIf a Stream Selector is not configured to recognize traffic patterns, or if the associated rate-limiting Responder policy is not bound to the Gateway Virtual Server, this is a finding.","fixText":"Configure the NetScaler Gateway to protect against DoS attacks by employing Rate Limiting as a pattern recognition preprocessor.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to AppExpert >> Rate Limiting >> Selectors and select \"Add\". \n3. Enter a name for the selector and create an expression to identify traffic patterns (e.g., CLIENT.IP.SRC). Select \"Create\".\n4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers and select \"Add\". \n5. Enter a name for the identifier, choose the Selector created in Step 3, set the Threshold and Time Slice to organizationally defined limits, and select \"Create\".\n6. Navigate to AppExpert >> Responder >> Policies and select \"Add\". \n7. Enter a name for the policy, set the \"Action\" to \"DROP\", and in the expression box, enter \"sys.check_limit\" (\"<limit_identifier_name>\"). Select \"Create\".\n8. Navigate to Citrix Gateway >> Virtual Servers, select the active Gateway Virtual Server, and select \"Edit\". \n9. Bind the Responder policy created in Step 7.\n10. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create a Limit Selector to recognize traffic patterns by source IP:\n   add stream selector <limit_selector_name> \"CLIENT.IP.SRC\"\n3. Run the following command to create a Limit Identifier, linking it to the selector created in Step 2 and applying organizationally defined limits:\n   add ns limitIdentifier <limit_identifier_name> -threshold <threshold_value> -timeSlice <time_slice_in_ms> -selectorName <limit_selector_name>\n4. Run the following command to create the Responder Policy that drops traffic, linking it to the identifier created in Step 3:\n   add responder policy <responder_policy_name> \"sys.check_limit(\\\"<limit_identifier_name>\\\")\" DROP\n5. Run the following command to bind the Responder policy to the Gateway Virtual Server:\n   bind vpn vserver <gateway_vserver_name> -policy <responder_policy_name> -priority <priority_number> -gotoPriorityExpression END -type REQUEST\n6. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002385"]},{"vulnId":"V-289107","ruleId":"SV-289107r1318090_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing content filtering must protect against or limit the effects of known and unknown types of denial-of-service (DoS) attacks by employing pattern recognition preprocessors.","description":"If the network does not provide safeguards against DoS attacks, network resources will be unavailable to users.\n\nInstallation of content filtering gateways and application layer firewalls 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.\n\nDetection components that use pattern recognition pre-processors can detect attacks when signatures for the attack do not exist or are not installed. These attacks include zero-day attacks which are new attacks for which vendors have not yet developed signatures.\n\nThis requirement applies to the communications traffic functionality of the ALG as it pertains to handling communications traffic, rather than to the ALG device itself.","checkContent":"Verify the NetScaler Gateway protects against known types of DoS attacks by employing Web App Firewall (WAF) signatures.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features and check the box for \"Citrix Web App Firewall\". Select \"OK\".\n3. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n4. Select the active WAF profile and select \"Edit\".\n5. In the \"Advanced Settings\" menu on the right, select \"Profile Signatures\".\n6. In the main panel, verify a signature object is bound to the profile.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check if the \"Application Firewall\" feature is active:\n   show ns feature\n3. Locate the \"AppFw\" feature in the output. If the feature is \"OFF\", this requirement is Not Applicable and no further auditing is required.\n4. If the feature is \"ON\", run the following command to view the profile settings:\n   show appfw profile <profile_name>\n5. Verify that the \"Signature\" field in the output is populated with a signature object name (e.g., \"*Default Signatures\").\n\nIf the WAF is enabled but no signature set is assigned to the active profile, this is a finding.","fixText":"Configure the NetScaler Gateway to protect against known DoS attacks by employing WAF signatures.\n\nNote: This procedure assumes a WAF Signature object has already been imported or is present on the appliance.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n3. Select the active WAF profile and select \"Edit\".\n4. In Advanced Settings menu on the right, select \"Profile Signatures\".\n5. In the main panel under the \"Profile Signatures\" section, select \"No Profile Signatures\" (or the existing signature link).\n6. Choose a configured signature object from the list (e.g., *Default Signatures).\n7. Select \"OK\" and select \"Done\".\n8. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to assign the signature object to the active WAF profile (Note: if using the default signatures, quotes are required due to the space in the name):\n   set appfw profile <profile_name> -signature \"<signature_name>\"\n   (Example: set appfw profile WAF_SPOOF_PROTECT -signature \"*Default Signatures\")\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002385"]},{"vulnId":"V-289108","ruleId":"SV-289108r1318093_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing intermediary services for remote access communications traffic must control remote access methods.","description":"Remote access devices, such as those providing remote access to network devices and information systems, which lack automated control capabilities, increase risk and makes remote user access management difficult at best.\n\nRemote access is access to DoW nonpublic information systems by an authorized user (or an information system) communicating through an external, nonorganization-controlled network. Remote access methods include broadband and wireless connections. Remote access methods include, for example, proxied remote encrypted traffic (e.g., TLS gateways, web content filters, and webmail proxies).\n\nThis requirement applies to NetScaler Gateways providing remote access proxy services as part of its intermediary services (e.g., OWA or TLS gateway). NetScaler Gateway's remote access must be capable of taking enforcement action (i.e., blocking, restricting, or forwarding to an enforcement mechanism) if traffic monitoring reveals unauthorized activity.","checkContent":"Verify the NetScaler Gateway controls remote access methods by checking the client type on bound Session Policies.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session >> Policies.\n3. Verify one or more policies are configured with an \"Expression\" that checks for a specific client attribute (e.g., HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"CitrixReceiver\")).\n4. Navigate to Citrix Gateway and under \"Global Settings\", select \"Global Bindings\".\n5. In the \"Session Policy\" section, verify a policy evaluating the client attribute is actively bound.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify active global session policies:\n   show vpn global\n3. Verify a \"VPN Session Policy\" is bound.\n4. Run the following command to verify the policy's expression:\n   show vpn sessionPolicy <policy_name>\n\nIf a Session Policy with a specific client-checking expression is not bound globally or to the active user group, this is a finding.","fixText":"Configure the NetScaler Gateway to control remote access methods by implementing a Session Policy that checks for client attributes.\n\nNote: Assumes the required VPN Session Profile (Action) already exists.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session. On the \"Policies\" tab, select \"Add\".\n3. Name the policy and select the preconfigured session profile (Action).\n4. Enter an expression to identify the allowed client type (e.g., HTTP.REQ.HEADER(\"User-Agent\").CONTAINS(\"CitrixReceiver\")) and select \"Create\".\n5. Navigate to Citrix Gateway and, under \"Global Settings\", select \"Global Bindings\".\n6. In the \"Session Policy\" section, select \"Add Binding\", choose the policy created in Step 3, set a priority, and select \"Bind\".\n7. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Create the Session Policy with the client-checking expression:\n   add vpn sessionPolicy <policy_name> <expression> <action_name>\n3. Bind the policy globally:\n   bind vpn global -policyName <policy_name> -priority <priority_number>\n4. Save the configuration:\n   save ns config","ccis":["CCI-002314"]},{"vulnId":"V-289109","ruleId":"SV-289109r1318600_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing intermediary services for remote access communications traffic must ensure inbound and outbound traffic is monitored for compliance with remote access security policies.","description":"Automated monitoring of remote access traffic allows organizations to detect cyberattacks and also ensure ongoing compliance with remote access policies by inspecting connection activities of remote access capabilities.\n\nRemote access methods include both unencrypted and encrypted traffic (e.g., web portals, web content filter, TLS and webmail). With inbound TLS inspection, the traffic must be inspected prior to being allowed on the enclave's web servers hosting TLS or HTTPS applications. With outbound traffic inspection, traffic must be inspected prior to being forwarded to destinations outside of the enclave, such as external email traffic.","checkContent":"Verify the NetScaler Gateway ensures inbound and outbound traffic is monitored for compliance with remote access security policies by enforcing Session Policies and Authorization Policies.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Groups.\n3. Select the active AAA Group and select \"Edit\".\n4. Under \"Advanced Settings\", select \"Policies\" (or \"Session Policies\") if not already visible.\n5. Verify that a Session Policy is bound to enforce client checks (e.g., verifying specific User-Agent headers).\n6. Under \"Advanced Settings\", select \"Authorization Policies\" if not already visible.\n7. Verify that restrictive \"ALLOW\" policies and a default \"DENY\" policy (with the lowest precedence) are bound.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view policies bound to the active user group:\n   show aaa group <group_name>\n3. Verify a \"VPN Session Policy\" is actively bound to monitor and enforce remote access methods.\n4. Verify an \"Authorization Policy\" with restrictive rules and a catch-all \"DENY\" policy is bound.\n\nIf Session Policies restricting access methods and Authorization Policies restricting resource access are not in place, this is a finding.","fixText":"Configure the NetScaler Gateway to monitor inbound and outbound traffic for compliance with remote access security policies using Session and Authorization Policies.\n\nMethod: Procedural Control\n1. Configure Session Policies to monitor remote access methods: \n   Create and bind a Session Policy to the AAA group to control the access method (e.g., by User-Agent). (Follow the detailed procedure in the Fix for CTNS-AG-000370).\n2. Configure Authorization Policies to enforce least privilege: \n   Create and bind specific \"ALLOW\" and default \"DENY\" authorization policies to the active AAA user group. (Follow the detailed procedure in the Fix for CTNS-AG-000010).\n3. Save the configuration.","ccis":["CCI-000067"]},{"vulnId":"V-289110","ruleId":"SV-289110r1318099_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing Public Key Infrastructure (PKI)-based user authentication intermediary services must map authenticated identities to the user account.","description":"Authorization for access to any network element requires an approved and assigned individual account identifier. To ensure only the assigned individual is using the account, the account must be bound to a user certificate when PKI-based authentication is implemented.\n\nThis requirement applies to NetScaler Gateway that provides user authentication intermediary services (e.g., authentication gateway or TLS gateway). This does not apply to authentication for the purpose of configuring the device itself (device management).","checkContent":"Verify the NetScaler Gateway maps the authenticated PKI identity (from a client certificate) to the corresponding user account in the directory.\n\nNote: This requires an nFactor flow with at least two factors (using a Policy Label container) for certificate inspection and directory lookup.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Virtual Servers.\n3. Select the active AAA Virtual Server and select \"Edit\".\n4. Under the \"Advanced Authentication Policies\" section in the main panel, select \"Authentication Policies\".\n5. In the Policy Binding list, verify that a certificate-based authentication policy is bound.\n6. Verify the \"Goto Expression\" is set to \"NEXT\" and the \"Next Factor\" column for this certificate policy points to an active Policy Label (e.g., an LDAP label).\n7. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n8. Select the \"CERT\" profile link and select \"Edit\" on the active certificate action.\n9. Verify the \"Two Factor\" checkbox is selected and the \"Username Field\" is populated (e.g., \"Subject:CN\" or \"SubjectAltName:PrincipalName\") to extract and map the identity to the directory.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view policies bound to the AAA Virtual Server:\n   show authentication vserver <aaa_vserver_name>\n3. Verify the output displays a certificate-based policy bound and that its \"NextFactor name\" parameter is set to a dedicated Policy Label.\n4. Run the following command to verify the certificate action settings:\n   show authentication certAction <cert_action_name>\n5. Verify the \"Two Factor\" parameter is set to \"ON\" and the \"User Name Field\" is populated.\n\nIf a certificate policy is not configured to extract the username and map it to a directory service via a Policy Label, this is a finding.","fixText":"Configure the NetScaler Gateway to map PKI identities to directory user accounts using an nFactor flow with Policy Labels.\n\nNote: This procedure assumes a primary directory authentication policy (e.g., LDAP) has already been created.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n3. Select the \"CERT\" profile link and select \"Add\".\n4. Enter a name, select the \"Two Factor\" checkbox, and set the \"Username Field\" to \"Subject:CN\" (or the organizational standard). Select \"Create\".\n5. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Policy. Select \"Add\".\n6. Enter a name, select the certificate action created in Step 4, enter \"true\" as the expression, and select \"Create\".\n7. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Policy Label. Select \"Add\".\n8. Enter a name, select \"LSCHEMA_INT\" for the Login Schema, and select \"Continue\".\n9. Select \"Add Binding\", choose the existing directory authentication policy (e.g., LDAP), assign a unique priority, and select \"Bind\". Select \"Done\".\n10. Navigate to Security >> AAA - Application Traffic >> Virtual Servers and edit the active AAA Virtual Server.\n11. Under the \"Advanced Authentication Policies\" section, select \"Authentication Policies\" (or \"No Authentication Policies\"). \n12. Select \"Add Binding\". Select the certificate policy created in Step 6, assign a unique priority, set the \"Goto Expression\" to \"NEXT\", set the \"Next Factor\" drop-down menu to the Policy Label created in Step 8, and select \"Bind\".\n13. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create the certificate action configured to extract the username:\n   add authentication certAction <cert_action_name> -twoFactor ON -userNameField \"Subject:CN\"\n3. Run the following command to create the certificate policy:\n   add authentication Policy <cert_policy_name> -rule true -action <cert_action_name>\n4. Run the following command to create the Policy Label using the built-in invisible login schema:\n   add authentication policylabel <policy_label_name> -loginSchema LSCHEMA_INT\n5. Run the following command to bind the existing directory authentication policy inside the Policy Label:\n   bind authentication policylabel <policy_label_name> -policyName <ldap_policy_name> -priority <priority_number>\n6. Run the following command to bind the certificate policy to the AAA Virtual Server and point its next factor to the Policy Label:\n   bind authentication vserver <aaa_vserver_name> -policy <cert_policy_name> -priority <priority_number> -nextFactor <policy_label_name> -gotoPriorityExpression NEXT\n7. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000187"]},{"vulnId":"V-289111","ruleId":"SV-289111r1318102_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing user access control intermediary services must automatically terminate a user session when organization-defined conditions or trigger events that require a session disconnect occur.","description":"Automatic session termination addresses the termination of user-initiated logical sessions in contrast to the termination of network connections that are associated with communications sessions (i.e., network disconnect). A logical session (for local, network, and remote access) is initiated whenever a user (or process acting on behalf of a user) accesses an organizational information system. Such user sessions can be terminated (and thus terminate user access) without terminating network sessions.\n\nSession termination terminates all processes associated with a user's logical session except those processes that are specifically created by the user (i.e., session owner) to continue after the session is terminated.\n\nThis capability is typically reserved for specific system functionality where the system owner, data owner, or organization requires additional trigger events based on specific mission needs. Conditions or trigger events requiring automatic session termination can include, for example, targeted responses to certain types of incidents and time-of-day restrictions on information system use.\n\nThis policy only applies to gateways (e.g., identity management or authentication gateways) that provide user account services as part of the intermediary services.","checkContent":"Configure the NetScaler Gateway to automatically terminate user sessions based on inactivity or client verification failures.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab, select the active profile, and select \"Edit\".\n4. Select the \"Client Experience\" tab.\n5. Select the \"Override Global\" checkbox for \"Client Idle Time-out (mins)\" and enter an organizationally defined limit (e.g., 15). Select \"OK\".\n6. Navigate to Security >> AAA - Application Traffic >> Groups.\n7. Select the active group and select \"Edit\".\n8. Under \"Advanced Settings\", select \"Policies\" (or \"Session Policies\") if not already visible.\n9. Select \"Add Binding\" (or the \"+\" icon). For \"Choose Policy\", select \"Session\" and select \"Continue\". \n10. Select to select the target Session Policy that enforces client validation and select \"Select\".\n11. Enter an appropriate Priority, set the \"GoTo Expression\" to \"NEXT\" (or \"END\"), and select \"Bind\".\n12. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enforce the inactivity timeout trigger on the active session profile:\n   set vpn sessionAction <profile_name> -clientIdleTimeout 15\n3. Run the following command to bind a client-checking Session Policy to the AAA Group to trigger a disconnect if the client fails validation:\n   bind aaa group <group_name> -policy <policy_name> -priority 110 -gotoPriorityExpression NEXT\n4. Run the following command to save the configuration:\n   save ns config","fixText":"Configure the NetScaler Gateway to automatically terminate user sessions based on inactivity or client verification failures.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab, select the active profile, and select \"Edit\".\n4. Select the \"Client Experience\" tab.\n5. Select the \"Override Global\" checkbox for \"Client Idle Time-out (mins)\" and enter an organizationally defined limit (e.g., 15). Select \"OK\".\n6. Navigate to Security >> AAA - Application Traffic >> Groups.\n7. Select the active group and select \"Edit\".\n8. Under \"Advanced Settings\", select \"Policies\" (or \"Session Policies\").\n9. Select \"Add Binding\" and bind a Session Policy that enforces client validation to act as an automated session termination trigger.\n10. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enforce the inactivity timeout trigger on the active session profile:\n   set vpn sessionAction <profile_name> -clientIdleTimeout 15\n3. Run the following command to bind a client-checking Session Policy to the AAA Group to trigger a disconnect if the client fails validation:\n   bind aaa group <group_name> -policy <policy_name> -priority 110\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002361"]},{"vulnId":"V-289112","ruleId":"SV-289112r1318105_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing user access control intermediary services must initiate a session lock after a 15-minute period of inactivity.","description":"A session time-out lock is a temporary action taken when a user stops work and moves away from the immediate physical vicinity of the information system, but does not log out because of the temporary nature of the absence. Rather than relying on the user to manually lock their session prior to vacating the vicinity, network elements must be able to identify when a user's session has idled and take action to initiate the session lock.\n\nThe session lock is implemented at the point where session activity can be determined and/or controlled.\n\nThis policy only applies to gateways (e.g., identity management or authentication gateways) that provide user account services as part of the intermediary services.","checkContent":"Verify the NetScaler Gateway is configured to automatically terminate (lock) user sessions after 15 minutes of inactivity.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab, select the active profile bound to the users, and select \"Edit\".\n4. Select the \"Client Experience\" tab.\n5. Verify \"Client Idle Time-out (mins)\" is set to \"15\".\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view the session profile:\n   show vpn sessionAction <profile_name>\n3. Verify the output displays \"Client Idle Timeout: 15 min\".\n\nIf the client idle timeout is not set to 15 minutes, this is a finding.","fixText":"Configure the NetScaler Gateway to terminate (lock) user sessions after 15 minutes of inactivity.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab, select the active profile, and select \"Edit\".\n4. Select the \"Client Experience\" tab.\n5. Select the \"Override Global\" checkbox for \"Client Idle Time-out (mins)\" and enter \"15\". Select \"OK\".\n6. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enforce the 15-minute inactivity timeout on the active session profile:\n   set vpn sessionAction <profile_name> -clientIdleTimeout 15\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000057"]},{"vulnId":"V-289113","ruleId":"SV-289113r1318108_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing user access control intermediary services must limit the number of concurrent sessions to an organization-defined number for all accounts and/or account types.","description":"Network element management includes the ability to control the number of users and user sessions that use a network element. Limiting the number of current sessions per user is helpful in limiting risks related to denial-of-service (DoS) attacks.\n\nThis requirement addresses concurrent sessions for information system accounts and does not address concurrent sessions by single users via multiple system accounts. The maximum number of concurrent sessions must be the same as the requirements specified for the application for which it serves as intermediary.\n\nThis policy only applies to application gateways/firewalls (e.g., identity management or authentication gateways) that provide user account services as part of the intermediary services.","checkContent":"Verify the NetScaler Gateway limits the number of concurrent sessions to an organization-defined number for all nonprivileged accounts.\n\nNote: Per NetScaler design, superuser accounts (such as nsroot or accounts with superuser command policies) are exempt from this limit as an OS-level fail-safe. This is not a finding. Verification must be performed by referencing the parameter or by attempting to exceed the session limit with a nonprivileged test account.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings and select \"Change Global System Settings\".\n3. Verify \"Max number of sessions per user\" is set to the organization-defined limit (e.g., 3).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command:\n   show system parameter\n3. Verify the \"Maxsessionperuser\" parameter is set to the organization-defined limit.\n\nIf \"Maxsessionperuser\" is set to \"0\" (unlimited) or a number higher than the organizational limit, this is a finding.","fixText":"Configure the NetScaler Gateway to limit the number of concurrent sessions for nonprivileged accounts.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings and select \"Change Global System Settings\".\n3. In the \"Max number of sessions per user\" field, enter the organization-defined limit (e.g., 3).\n4. Select \"OK\".\n5. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enforce the concurrent session limit:\n   set system parameter -maxSessionperuser <number>\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000054"]},{"vulnId":"V-289114","ruleId":"SV-289114r1318111_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing user authentication intermediary services must require users to reauthenticate when organization-defined circumstances or situations require reauthentication.","description":"Without reauthentication, users may access resources or perform tasks for which they do not have authorization.\n\nIn addition to the reauthentication requirements associated with session locks, organizations may require reauthentication of individuals and/or devices in other situations, including (but not limited to) the following circumstances: \n\n1) When authenticators change.\n2) When roles change.\n3) When security categories of information systems change.\n4) When the execution of privileged functions occurs.\n5) After a fixed period of time.\n6) Periodically.\n\nWithin the DoW, the minimum circumstances requiring reauthentication are privilege escalation and role changes.\n\nThis requirement only applies to components for which this is specific to the function of the device or has the concept of user authentication (e.g., VPN or NetScaler Gateway capability). This does not apply to authentication for the purpose of configuring the device itself (i.e., device management).","checkContent":"Verify the NetScaler Gateway is configured to require user re-authentication by allowing administrative termination of sessions and enforcing client security profiles.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway. Under the \"Monitor Connections\" section in the main panel, select \"Active user sessions\".\n3. Verify active sessions can be selected and immediately terminated by selecting the \"Kill\" (or \"End\") option, forcing re-authentication.\n4. Navigate to Security >> AAA - Application Traffic >> Groups.\n5. Select the active AAA Group and select \"Edit\".\n6. Under \"Advanced Settings\", select \"Policies\" if not already visible.\n7. Verify a Session Policy is bound.\n8. Navigate to Citrix Gateway >> Policies >> Session. Select the \"Session Profiles\" tab.\n9. Select the profile associated with the bound policy and select \"Edit\".\n10. Select the \"Security\" tab. Select the \"Advanced Settings\" to reveal additional options.\n11. Verify \"Enable Client Security Logging\" is enabled (ON).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the administrative session termination capability exists:\n   help kill aaa session\n3. Run the following command to identify the bound Session Policy:\n   show aaa group <group_name>\n4. Verify a \"VPN Session Policy\" is actively bound to the group.\n5. Run the following command to view the session profile:\n   show vpn sessionAction <profile_name>\n6. Verify the output displays \"Client security log: ON\" to enforce client security state monitoring.\n\nIf administrators cannot terminate sessions, or if a Session Profile enforcing client security logging is not bound to the authentication group, this is a finding.","fixText":"Configure the NetScaler Gateway to allow administrative termination of sessions and enforce client security logging, which forces re-authentication under organization-defined circumstances.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Policies >> Session.\n3. Select the \"Session Profiles\" tab, select the active profile (or select \"Add\" to create one), and select \"Edit\".\n4. Select the \"Security\" tab.\n5. Select the \"Advanced Settings\" to reveal additional options.\n6. Select the \"Override Global\" checkbox and check \"Enable Client Security Logging\". Select \"OK\".\n7. Navigate to Security >> AAA - Application Traffic >> Groups.\n8. Select the active group and select \"Edit\".\n9. Under \"Advanced Settings\", select \"Policies\" if not already visible.\n10. Select \"Add Binding\". For \"Choose Policy\", select \"Session\" and select \"Continue\". \n11. Select the target Session Policy that applies the profile from Step 6.\n12. Enter a unique Priority, set the \"GoTo Expression\" to \"NEXT\" (or \"END\"), and select \"Bind\".\n13. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enable client security logging on the active session profile:\n   set vpn sessionAction <profile_name> -clientSecurityLog ON\n3. Run the following command to bind the Session Policy to the organizational AAA Group used for Gateway authentication:\n   bind aaa group <group_name> -policy <policy_name> -priority <priority_number> -gotoPriorityExpression NEXT\n4. Run the following command to save the configuration:\n   save ns config\n\nNote: Administrative Session Termination is an inherent capability (e.g., executing \"kill aaa session -userName <username>\" via CLI or selecting \"Active user sessions\" under \"Monitor Connections\" in the GUI). Verify administrators are trained on this procedure. In a High Availability (HA) configuration, this procedure is performed on the primary appliance and is synchronized to the secondary appliance.","ccis":["CCI-002038"]},{"vulnId":"V-289115","ruleId":"SV-289115r1318114_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing user authentication intermediary services must transmit only encrypted representations of passwords.","description":"Passwords must be protected at all times and encryption is the standard method for protecting passwords. If passwords are not encrypted, they can be plainly read (i.e., clear text) and easily compromised.\n\nThis requirement applies to NetScaler Gateway that provide user authentication intermediary services. This does not apply to authentication for the purpose of configuring the device itself (device management).","checkContent":"Verify the NetScaler Gateway is configured to transmit only encrypted representations of passwords by ensuring both the user-facing and backend authentication connections are encrypted.\n\nNote: This procedure uses LDAP as the primary example. The principle of encrypted transmission applies to other protocols such as RADIUS and TACACS+, though the specific commands and attribute names may differ.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. In the \"Basic Settings\" section, verify the \"Protocol\" is set to \"SSL\".\n5. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n6. Select \"LDAP\" (or organizationally defined protocol).\n7. Select the active authentication action and select \"Edit\".\n8. Verify the \"Security Type\" drop-down menu is set to \"SSL\" or \"TLS\" (or the port indicates secure transmission, e.g., 636).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the frontend connection:\n   show vpn vserver <gateway_vserver_name>\n3. Verify the output displays \"Protocol: SSL\".\n4. Run the following command to verify the backend connection:\n   show authentication ldapAction <action_name>\n   (Note: Use \"radiusAction\" or \"tacacsAction\" if using a different protocol).\n5. Verify the \"Secure Type\" parameter is set to \"SSL\" or \"TLS\".\n\nIf the Gateway Virtual Server protocol is not SSL, or if the backend authentication action is not configured to use an encrypted protocol, this is a finding.","fixText":"Configure the NetScaler Gateway to transmit only encrypted representations of passwords by securing both frontend and backend connections.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers. Verify the Gateway Virtual Server is created with the SSL protocol. (If it was created as HTTP, it must be deleted and recreated as SSL).\n3. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n4. Select \"LDAP\" (or organizationally defined protocol).\n5. Select the active authentication action and select \"Edit\".\n6. Set the \"Security Type\" drop-down menu to \"SSL\" or \"TLS\" and ensure the port is correct (e.g., 636). Select \"OK\".\n7. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Verify the frontend Gateway Virtual Server is created as SSL. (If it is HTTP, it must be deleted and recreated as SSL):\n   add vpn vserver <gateway_vserver_name> SSL <ip_address> 443\n3. Run the following command to secure the backend authentication connection:\n   set authentication ldapAction <action_name> -secType SSL -serverPort 636\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000197"]},{"vulnId":"V-289116","ruleId":"SV-289116r1318117_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing user authentication intermediary services must uniquely identify and authenticate nonorganizational users (or processes acting on behalf of nonorganizational users).","description":"Lack of authentication enables anyone to gain access to the network or possibly a network element that provides opportunity for intruders to compromise resources within the network infrastructure. By identifying and authenticating nonorganizational users, their access to network resources can be restricted accordingly.\n\nNonorganizational users will be uniquely identified and authenticated for all accesses other than those accesses explicitly identified and documented by the organization when related to the use of anonymous access. Authorization requires an individual account identifier that has been approved, assigned, and configured on an authentication server. Authentication of user identities is accomplished using passwords, tokens, biometrics, or in the case of multifactor authentication, some combination thereof.\n\nThis control applies to application layer gateways that provide content filtering and proxy services on network segments (e.g., DMZ) that allow access by nonorganizational users. This requirement focuses on authentication requests to the proxied application for access to destination resources and policy filtering decisions rather than administrator and management functions.","checkContent":"Verify the NetScaler Gateway is configured to uniquely identify and authenticate organizational and nonorganizational users by employing an authentication policy that extracts a unique identifier from the user's directory service.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. Verify an \"Authentication Profile\" is bound.\n5. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions >> LDAP.\n6. Locate and edit the Action associated with the active Authentication Profile.\n7. Verify the \"Server Logon Name Attribute\" field is populated with a unique identifier from the directory service (e.g., sAMAccountName).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following commands to trace the authentication configuration from the Gateway to the Action:\n   show vpn vserver <gateway_vserver_name>\n   show authentication authnProfile <profile_name>\n   show authentication vserver <aaa_vserver_name>\n   show authentication ldapAction <ldap_action_name>\n3. In the output of the final command, verify the \"Login\" parameter is set to a unique identifier (e.g., sAMAccountName).\n\nIf the Gateway is not configured to extract a unique user identifier from the authentication server, this is a finding.","fixText":"Configure the NetScaler Gateway to uniquely identify users by extracting a unique identifier from the external directory service.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions >> LDAP.\n3. Select the active LDAP Action and select \"Edit\".\n4. In the \"Server Logon Name Attribute\" field, enter the appropriate unique identifier for the directory service (e.g., sAMAccountName).\n5. Select \"OK\".\n6. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to update the LDAP Action with the correct login name attribute:\n   set authentication ldapAction <action_name> -loginName sAMAccountName\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000804"]},{"vulnId":"V-289117","ruleId":"SV-289117r1318572_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing user authentication intermediary services using Public Key Infrastructure (PKI)-based user authentication must implement a local cache of revocation data to support path discovery and validation in case of the inability to access revocation information via the network.","description":"Without configuring a local cache of revocation data, there is the potential to allow access to users who are no longer authorized (users with revoked certificates).\n\nThe intent of this requirement is to require support for a secondary certificate validation method using a locally cached revocation data, such as Certificate Revocation List (CRL), in case access to Online Certificate Status Protocol (OCSP) (required by CCI-000185) is not available. Based on a risk assessment, an alternate mitigation is to configure the system to deny access when revocation data is unavailable. \n\nThis requirement applies to NetScaler Gateways that provide user authentication intermediary services (e.g., authentication gateway or TLS gateway). This does not apply to authentication for the purpose of configuring the device itself (device management).","checkContent":"Verify the NetScaler Gateway implements a local cache of revocation data for PKI-based user authentication.\n\nNote: This requirement can be satisfied by configuring OCSP Responder Caching or by enabling CRL Auto-Refresh. This procedure verifies OCSP caching.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> SSL >> OCSP Responder.\n3. Verify that an OCSP responder for the DoW is configured. Select it and select \"Edit\".\n4. Verify the \"Cache\" checkbox is selected and note the \"Cache Timeout\" value.\n5. Navigate to Security >> AAA - Application Traffic >> Virtual Servers (or Citrix Gateway >> Virtual Servers, depending on where the CA is bound).\n6. Select the active Virtual Server used for PKI-based user authentication and select \"Edit\".\n7. In the \"Certificates\" section, select \"CA Certificates\".\n8. Verify that for the bound DoW certificate authority (CA) certificate, the \"CRL and OCSP Check\" column is set to \"Mandatory\" (or \"OCSP Mandatory\").\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the OCSP responder configuration:\n   show ssl ocspResponder\n3. Review the output list and verify that the active DoW OCSP responder shows \"Caching: ENABLED\".\n4. Run the following command to verify OCSP enforcement on the active virtual server:\n   show ssl vserver <vserver_name>\n5. In the \"CA Certificate\" bindings section, verify the \"OCSP check\" parameter is set to \"Mandatory\".\n\nIf OCSP caching (or CRL Auto-Refresh) is not enabled, or if the revocation check is not set to \"Mandatory\" on the active authentication virtual server, this is a finding.","fixText":"Configure the NetScaler Gateway to implement a local cache of revocation data by enabling OCSP Responder Caching.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> SSL >> OCSP Responder and select \"Add\".\n3. Enter a Name and the URL for the DoW OCSP service (e.g., http://ocsp.disa.mil).\n4. Select the \"Cache\" checkbox, set an appropriate timeout, and select \"Create\".\n5. Navigate to Security >> AAA - Application Traffic >> Virtual Servers (or Citrix Gateway >> Virtual Servers) and edit the active virtual server.\n6. In the \"Certificates\" section, select \"CA Certificates\".\n7. Select \"Add Binding\".\n8. On the \"CA Certificate Binding\" page, select the DoW CA certificate.\n9. From the \"CRL and OCSP Check\" drop-down menu, select \"OCSP Mandatory\" (or \"Mandatory\").\n10. Select \"Bind\".\n11. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create the OCSP responder with caching:\n   add ssl ocspResponder <responder_name> -url <ocsp_url> -cache ENABLED\n3. Run the following command to enforce the OCSP check on the virtual server's CA binding:\n   bind ssl vserver <vserver_name> -certkeyName <dow_ca_cert> -CA -ocspCheck Mandatory\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-004068"]},{"vulnId":"V-289118","ruleId":"SV-289118r1318123_rule","severity":"medium","ruleTitle":"The NetScaler Gateway providing user authentication intermediary services using PKI-based user authentication must only accept end entity certificates issued by DoW PKI or DoW-approved PKI Certification Authorities (CAs) for the establishment of protected sessions.","description":"Non-DoW approved PKIs have not been evaluated to ensure that they have security controls and identity vetting procedures in place which are sufficient for DoW systems to rely on the identity asserted in the certificate. PKIs lacking sufficient security controls and identity vetting procedures risk being compromised and issuing certificates that enable adversaries to impersonate legitimate users.\n\nThe authoritative list of DoW-approved PKIs is published at http://cyber.mil/pki-pke. DoW-approved PKI CAs may include Category I, II, and III certificates. Category I DoW-Approved External PKIs are PIV issuers. Category II DoW-Approved External PKIs are nonfederal agency PKIs cross certified with the Federal Bridge Certification Authority (FBCA). Category III DoW-Approved External PKIs are Foreign, Allied, or Coalition Partner PKIs.\n\nDeploying the ALG with TLS enabled will require the installation of DoW and/or DoW-Approved CA certificates in the trusted root certificate store of each proxy to be used for TLS traffic. \n\nThis requirement focuses on communications protection for the application session rather than for the network packet.","checkContent":"Verify the NetScaler Gateway only accepts end entity certificates issued by DoW PKI or DoW-approved PKI Certification Authorities (CAs) for the establishment of protected sessions.\n\nNote: The GUI and CLI may display the \"CRL and OCSP Check\" state as \"Optional\" on this screen. If an SSL Profile is bound to the virtual server, it overrides this display and enforces the actual revocation checking. This specific requirement only audits the identities of the bound CA certificates.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. In the main panel, under the \"Certificates\" section, select \"CA Certificates\".\n5. Review the list of bound CA certificates.\n6. Verify that the list contains only DoW-approved Root and Intermediate CA certificates.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to view certificates bound to the Gateway Virtual Server:\n   show ssl vserver <gateway_vserver_name>\n3. Review the \"CA Certificate\" binding section at the bottom of the output. \n4. Verify that it only contains the names of approved DoW CA certificates.\n\nIf any non-DoW, public, or vendor-supplied default CA certificates are bound to the Gateway Virtual Server, this is a finding.","fixText":"Configure the NetScaler Gateway to only accept end entity certificates issued by DoW PKI or DoW-approved PKI CAs.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers and edit the active Gateway Virtual Server.\n3. In the \"Certificates\" section, select \"CA Certificates\".\n4. For each non-DoW or untrusted certificate, select the checkbox next to its name and select \"Unbind\".\n5. Select \"Add Binding\" and bind the correct, approved DoW Root and Intermediate CAs to the virtual server.\n6. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Unbind any incorrect or untrusted CA certificates from the virtual server:\n   unbind ssl vserver <gateway_vserver_name> -certkeyName <untrusted_ca_name>\n3. Bind all required DoW Root and Intermediate CAs to the virtual server (repeat for each CA):\n   bind ssl vserver <gateway_vserver_name> -certkeyName <dow_ca_name> -CA\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002470"]},{"vulnId":"V-289119","ruleId":"SV-289119r1318126_rule","severity":"medium","ruleTitle":"The NetScaler Gateway that provides intermediary services for HTTP must inspect inbound and outbound HTTP traffic for protocol compliance and protocol anomalies.","description":"Application protocol anomaly detection examines application layer protocols such as HTTP to identify attacks based on observed deviations in the normal RFC behavior of a protocol or service. This type of monitoring allows for the detection of known and unknown exploits which exploit weaknesses of commonly used protocols.\n\nSince protocol anomaly analysis examines the application payload for patterns or anomalies, an HTTP proxy must be included in the ALG. This ALG will be configured to inspect inbound and outbound HTTP communications traffic to detect protocol anomalies such as malformed message and command insertion attacks. \n\nAll inbound and outbound traffic, including HTTPS, must be inspected. However, the intention of this policy is not to mandate HTTPS inspection by the ALG. Typically, HTTPS traffic is inspected either at the source, destination and/or is directed for inspection by organizationally-defined network termination point.","checkContent":"Verify the NetScaler Gateway inspects inbound and outbound HTTP traffic for protocol compliance by enforcing an HTTP Profile with strict validation.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. Scroll down to the \"Profiles\" section and note the name of the bound \"HTTP Profile\" (e.g., nshttp_default_strict_validation).\n5. Navigate to System >> Profiles >> HTTP Profiles.\n6. Select the profile noted in Step 4 and select \"Edit\".\n7. Verify the \"Drop Invalid HTTP Requests\" checkbox is selected.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to identify the bound HTTP Profile:\n   show vpn vserver <gateway_vserver_name>\n3. Verify an \"HTTP profile name\" is listed in the output.\n4. Run the following command to view the profile settings:\n   show ns httpProfile <profile_name>\n5. Verify the output displays \"Drop invalid HTTP requests: ENABLED\".\n\nIf an HTTP Profile is not bound to the Gateway Virtual Server, or if the bound profile does not have the \"Drop invalid HTTP requests\" setting enabled, this is a finding.","fixText":"Configure the NetScaler Gateway to inspect HTTP traffic for protocol compliance by binding a strict HTTP Profile.\n\nNote: Citrix provides a built-in profile named \"nshttp_default_strict_validation\" which natively satisfies this requirement, though a custom HTTP Profile may also be used.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Profiles >> HTTP Profiles.\n3. Select \"Add\" to create a new profile (or edit an existing one).\n4. Enter a name, select the \"Drop Invalid HTTP Requests\" checkbox, and select \"Create\" (or \"OK\").\n5. Navigate to Citrix Gateway >> Virtual Servers.\n6. Select the active Gateway Virtual Server and select \"Edit\".\n7. Scroll down to the \"Profiles\" section and select the pencil icon to edit.\n8. From the \"HTTP Profile\" drop-down menu, select the strict HTTP profile (e.g., \"nshttp_default_strict_validation\" or the custom profile created in Step 4).\n9. Select \"OK\" and select \"Done\".\n10. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to bind the built-in strict HTTP profile to the Gateway Virtual Server (alternatively, apply a custom profile):\n   set vpn vserver <gateway_vserver_name> -httpProfileName nshttp_default_strict_validation\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000366","CCI-001125"]},{"vulnId":"V-289120","ruleId":"SV-289120r1318129_rule","severity":"medium","ruleTitle":"The NetScaler Gateway that provides intermediary services for Transport Layer Security (TLS) must be configured to comply with the required TLS settings in NIST SP 800-52.","description":"SP 800-52 provides guidance on using the most secure version and configuration of the TLS/SSL protocol. Using older unauthorized versions or incorrectly configuring protocol negotiation makes the gateway vulnerable to known and unknown attacks which exploit vulnerabilities in this protocol.\n\nThis requirement applies to TLS gateways (also known as SSL gateways) and is not applicable to VPN devices. Application protocols such as HTTPS and DNSSEC use TLS as the underlying security protocol thus are in scope for this requirement. NIST SP 800-52 provides guidance.\n\nSP 800-52 sets TLS version 1.2 as a minimum version, thus all versions of SSL are not allowed (including for client negotiation) either on DoW-only or on public-facing servers.","checkContent":"Verify the NetScaler Gateway is configured to comply with NIST SP 800-52 by disabling weak, legacy TLS protocols and enforcing the use of TLS 1.2 and/or TLS 1.3.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. In the \"SSL Profile\" section, select the pencil icon to edit the bound profile.\n5. In the SSL Profile configuration screen that appears, verify the following:\n   a. \"SSLv3\" is unchecked.\n   b. \"TLSv1\" is unchecked.\n   c. \"TLSv1.1\" is unchecked.\n   d. \"TLSv1.2\" and/or \"TLSv1.3\" is checked.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to identify the bound SSL Profile:\n   show ssl vserver <gateway_vserver_name>\n3. Note the \"SSL Profile\" name from the output.\n4. Run the following command, replacing \"<ssl_profile_name>\" with the name noted in the previous step:\n   show ssl profile <ssl_profile_name>\n5. Review the output and verify the following parameters:\n   - SSLv3: DISABLED\n   - TLSv1.0: DISABLED\n   - TLSv1.1: DISABLED\n   - Verify that either TLSv1.2 and/or TLSv1.3 is set to \"ENABLED\".\n\nIf any legacy protocol (SSLv3, TLS 1.0, TLS 1.1) is enabled, or if both TLS 1.2 and TLS 1.3 are disabled, this is a finding.","fixText":"Configure the NetScaler Gateway to comply with NIST SP 800-52 by disabling legacy TLS protocols in the bound SSL Profile.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. In the \"SSL Profile\" section, select the pencil icon to edit the bound profile.\n5. On the SSL Profile configuration page, locate the \"Basic Settings\" section and select the pencil icon to edit it.\n6. In the \"Protocol\" section, perform the following actions:\n   a. Uncheck the box for \"SSLv3\".\n   b. Uncheck the box for \"TLSv1\".\n   c. Uncheck the box for \"TLSv1.1\".\n   d. Ensure the boxes for \"TLSv1.2\" and \"TLSv1.3\" are checked.\n7. Select \"OK\", then select \"Done\".\n8. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command, replacing \"<ssl_profile_name>\" with the name of the profile bound to the Gateway Virtual Server, to enable the strongest protocols:\n   set ssl profile <ssl_profile_name> -ssl3 DISABLED -tls1 DISABLED -tls11 DISABLED -tls12 ENABLED -tls13 ENABLED\n3. Run the following command to save the configuration changes:\n   save ns config","ccis":["CCI-000068"]},{"vulnId":"V-289121","ruleId":"SV-289121r1318132_rule","severity":"medium","ruleTitle":"The ALG must detect, at a minimum, mobile code that is unsigned or exhibiting unusual behavior, has not undergone a risk assessment, or is prohibited for use based on a risk assessment.","description":"Mobile code is defined as software modules obtained from remote systems, transferred across a network, and then downloaded and executed on a local system without explicit installation or execution by the recipient.\n\nExamples of mobile code include JavaScript, VBScript, Java applets, ActiveX controls, Flash animations, Shockwave videos, and macros embedded within Microsoft Office documents. Mobile code can be exploited to attack a host. It can be sent as an email attachment or embedded in other file formats not traditionally associated with executable code.\n\nWhile the NetScaler Gateway cannot replace the network IDS or the anti-virus and host-based IDS (HIDS) protection installed on the network's endpoints, vendor or locally created sensor rules can be implemented, which provide preemptive defense against both known and zero-day vulnerabilities. Many of the protections may provide defenses before vulnerabilities are discovered and rules or blacklist updates are distributed by anti-virus or malicious code solution vendors.\n\nTo monitor for and detect known prohibited mobile code or approved mobile code that violates permitted usage requirements, the NetScaler Gateway must implement policy filters, rules, signatures, and anomaly analysis.\n\nSatisfies: SRG-NET-000228-ALG-000108, SRG-NET-000288-ALG-000109","checkContent":"Verify the NetScaler Gateway implements Web App Firewall (WAF) protections against Cross-Site Scripting (XSS) and malicious mobile code execution.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features.\n3. Verify that \"Web App Firewall\" is checked (enabled).\n4. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n5. Select the AppFw Profile bound to the active Gateway Virtual Server and select \"Edit\".\n6. In Advanced Settings menu on the right, select \"Security Checks\".\n7. In the main panel, verify that \"Cross-Site Scripting (XSS)\" has \"Block\" enabled.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the WAF feature is enabled:\n   show ns feature\n3. Verify the output shows \"AppFw\" as \"ON\".\n4. Run the following command to identify the active WAF policy and profile:\n   show appfw global\n5. Run the following command to view the profile settings (replace \"<profile_name>\" with the active profile):\n   show appfw profile <profile_name>\n6. Verify the output displays the following parameter:\n   crossSiteScriptingAction: block\n\nIf the Web App Firewall feature is not enabled, or if Cross-Site Scripting (XSS) protection is not set to block, this is a finding.","fixText":"Configure the NetScaler Gateway WAF to protect against XSS and malicious mobile code execution.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features, check the box for \"Web App Firewall\", and select \"OK\".\n3. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n4. Select \"Add\" to create a new profile (or select an existing profile and select \"Edit\").\n5. In the \"Advanced Settings\" menu on the right, select \"Security Checks\".\n6. In the main panel, locate \"Cross-Site Scripting (XSS)\" and check the box in the \"Block\" column. Select \"OK\".\n7. Navigate to Security >> Citrix Web App Firewall >> Policies >> Firewall. Select \"Add\".\n8. Name the policy, select the profile configured in Step 6 as the action, enter \"true\" as the expression, and select \"Create\".\n9. Navigate to Security >> Citrix Web App Firewall >> Policies >> Firewall.\n10. Select \"Policy Manager\".\n11. Select \"Default Global\" from the Bind Point drop-down menu and select \"Continue\".\n12. Select \"Add Binding\", select the policy created in Step 8, assign a unique priority, and select \"Bind\".\n13. Save the running configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enable the Application Firewall feature:\n   enable ns feature AppFw\n3. Run the following command to create or update an Application Firewall profile with the required XSS inspection features:\n   add appfw profile <profile_name> -crossSiteScriptingAction block log stats\n4. Run the following command to create an AppFw policy linking to the profile:\n   add appfw policy <policy_name> true <profile_name>\n5. Run the following command to bind the AppFw policy globally:\n   bind appfw global <policy_name> <priority_number> -type REQ_DEFAULT\n6. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001166","CCI-001695"]},{"vulnId":"V-289122","ruleId":"SV-289122r1318135_rule","severity":"medium","ruleTitle":"The ALG Web App Firewall (WAF) must implement automatic updates to malicious code protection signature definitions.","description":"Malicious code protection mechanisms include, but are not limited to, antivirus and malware detection software. To minimize any potential negative impact to the organization caused by malicious code, malicious code must be identified and eradicated. Malicious code includes viruses, worms, Trojan horses, and spyware.\n\nThis requirement is limited to ALGs, web content filters, and packet inspection firewalls that perform malicious code detection as part of their functionality.\n\nSatisfies: SRG-NET-000246-ALG-000132, SRG-NET-000251-ALG-000131","checkContent":"Verify the NetScaler WAF is configured to automatically update its malicious code signature definitions.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features and check the box for \"Citrix Web App Firewall\". Select \"OK\".\n3. Navigate to Security >> Citrix Web App Firewall >> Signatures.\n4. From the \"Action\" drop-down menu, select \"Auto Update Settings\".\n5. Verify the \"Signatures Auto Update\" checkbox is selected.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check if the Application Firewall feature is active:\n   show ns feature\n3. Locate the \"AppFw\" feature in the output. If the feature is \"OFF\", this requirement is Not Applicable and no further auditing is required.\n4. If the feature is \"ON\", run the following command to verify the signature update settings:\n   show appfw settings\n5. Verify the output displays \"Signature Auto Update: ON\".\n\nIf the AppFw feature is enabled but signature auto-update is not configured to \"ON\", this is a finding.","fixText":"Configure the NetScaler WAF to automatically update its malicious code signature definitions.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> Citrix Web App Firewall >> Signatures.\n3. From the \"Action\" drop-down menu, select \"Auto Update Settings\".\n4. Select the \"Signatures Auto Update\" checkbox.\n5. Provide the organizationally defined signature update URL (or leave default if using the vendor's signature feed).\n6. Select \"OK\".\n7. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to enable automatic signature updates (Note: append the \"-signatureUrl\" parameter to point to an internal repository if the appliance does not have external internet access):\n   set appfw settings -signatureAutoUpdate ON [-signatureUrl <organization_defined_url>]\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-004965","CCI-004964"]},{"vulnId":"V-289123","ruleId":"SV-289123r1318578_rule","severity":"medium","ruleTitle":"The NetScaler must be configured to remove or disable unrelated or unneeded application proxy services.","description":"Unrelated or unneeded proxy services increase the attack vector and add excessive complexity to the securing of the NetScaler. Multiple application proxies can be installed on many NetScalers. However, proxy types must be limited to related functions. At a minimum, the web and email gateway represent different security domains/trust levels. Organizations should also consider separation of gateways that service the DMZ and the trusted network.","checkContent":"Verify the NetScaler Gateway is configured to remove or disable all unrelated or unneeded features and application proxy services.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Under \"System Settings\", select \"Configure Advanced Features\".\n4. Verify that only features required for the Gateway's operational mission (e.g., SSL, AAA) are checked. Unused features (such as Content Switching, Cache Redirection, CallHome) must be unchecked.\n5. Select \"Configure Basic Features\" under \"System Settings\" and verify only required features (such as SSLVPN and Rewrite) are checked.\n6. Navigate to Traffic Management >> Load Balancing >> Virtual Servers, and verify no unneeded or unauthorized virtual servers are enabled.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Execute the following command to view the status of all system features:\n   show ns feature\n3. Verify that only required features (e.g., SSL, SSLVPN, AAA, REWRITE) are listed as \"ON\", and all unused features are \"OFF\".\n4. Execute the following command to view all configured Load Balancing virtual servers:\n   show lb vserver\n5. Verify that no unneeded or unauthorized load balancing virtual servers are active. (Note: The message \"Warning: Feature(s) not enabled [LB]\" confirms the entire engine is disabled).\n\nIf any unrelated, unneeded, or unauthorized features or virtual servers are enabled, this is a finding.","fixText":"Configure the NetScaler Gateway to disable or remove all unrelated or unneeded features and application proxy services.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Configure Advanced Features\" and uncheck any unneeded features. Select \"OK\".\n4. Select \"Configure Basic Features\" and uncheck any unneeded basic features. Select \"OK\".\n5. Navigate to Traffic Management >> Load Balancing >> Virtual Servers.\n6. Select any unneeded or unauthorized virtual servers, select the \"Select Action\" drop-down menu, and select \"Disable\" (or \"Delete\").\n7. Save the configuration.\n8. Reboot the appliance if prompted by the system.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to disable unneeded system features using the abbreviation found via the \"show ns feature\" command (e.g., CS for Content Switching, CH for CallHome):\n   disable ns feature <feature_abbreviation>\n3. Run the following command to disable any unneeded Load Balancing virtual servers:\n   disable lb vserver <unneeded_vserver_name>\n4. Run the following command to save the configuration:\n   save ns config\n5. Reboot the appliance if prompted by the system.","ccis":["CCI-000381"]},{"vulnId":"V-289124","ruleId":"SV-289124r1318141_rule","severity":"medium","ruleTitle":"The NetScaler must protect audit tools from unauthorized access.","description":"Protecting audit data also includes identifying and protecting the tools used to view and manipulate log data. Therefore, protecting audit tools is necessary to prevent unauthorized operation on audit data.\n\nNetwork elements providing tools to interface with audit data will leverage user permissions and roles identifying the user accessing the tools and the corresponding rights the user enjoys in order make access decisions regarding the access to audit tools.\n\nAudit tools include, but are not limited to, vendor-provided and open source audit tools needed to successfully view and manipulate audit information system activity and records. Audit tools include custom queries and report generators.\n\nThis does not apply to audit logs generated on behalf of the device itself (management).","checkContent":"Verify the NetScaler Gateway protects audit tools from unauthorized access by enforcing strict Role-Based Access Control (RBAC).\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI using a nonprivileged administrative test account.\n2. Navigate to System >> Auditing >> Syslog messages.\n3. Verify that the interface is inaccessible and access is denied.\n4. Log in to the NetScaler GUI using a fully authorized administrative account.\n5. Navigate to System >> User Administration >> Groups.\n6. Verify that nonprivileged user groups do not have \"superuser\", \"sysadmin\", or overly permissive custom policies bound that would allow access to the auditing command namespace.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI using a nonprivileged administrative test account.\n2. Run the following command to attempt to access the audit tool:\n   show audit messages\n3. Verify that the appliance rejects the command and returns an \"ERROR: Not authorized to execute this command\" message.\n\nIf nonprivileged or unauthorized users are able to access audit tools via the GUI or CLI, this is a finding.","fixText":"Configure the NetScaler Gateway to protect audit tools from unauthorized access by enforcing strict RBAC.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> User Administration >> Groups.\n3. Select any nonprivileged group and select \"Edit\".\n4. Under \"Command Policies\", select and \"Unbind\" any overly permissive policies (such as \"superuser\" or \"sysadmin\").\n5. Select \"Add Binding\", choose a restrictive command policy (e.g., \"readonly\") that does not grant access to the auditing namespace, assign a unique priority, and select \"Bind\".\n6. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to unbind overly permissive policies from a nonprivileged group:\n   unbind system group <group_name> -policyName <permissive_policy_name>\n3. Run the following command to bind a restrictive command policy to the nonprivileged group:\n   bind system group <group_name> -policyName readonly -priority 100\n4. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001493"]},{"vulnId":"V-289125","ruleId":"SV-289125r1318144_rule","severity":"medium","ruleTitle":"The NetScaler must validate certificates used for Transport Layer Security (TLS) functions by performing RFC 5280-compliant certification path validation.","description":"A certificate's certification path is the path from the end entity certificate to a trusted root certification authority (CA). Certification path validation is necessary for a relying party to make an informed decision regarding acceptance of an end entity certificate. \n\nCertification path validation includes checks such as certificate issuer trust, time validity and revocation status for each certificate in the certification path. Revocation status information for CA and subject certificates in a certification path is commonly provided via certificate revocation lists (CRLs) or online certificate status protocol (OCSP) responses.","checkContent":"Verify the NetScaler Gateway validates certificates used for TLS functions by performing RFC 5280-compliant certification path validation, specifically by ensuring the server certificate chain is correctly linked.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> SSL >> Certificates >> Server Certificates.\n3. Locate the server certificate bound to the active Gateway Virtual Server.\n4. In the \"LINK STATUS\" column for that certificate, select the \"Link\" button (or select the certificate, select the \"Action\" drop-down menu, and select \"Link\").\n5. On the \"Certificate links\" page, verify the certificate is correctly linked to its issuing Intermediate or Root CA (the visual chain should display the issuing CA).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to verify the certificate chain:\n   show ssl certchain <server_cert_name>\n3. Verify the output displays the name of the correct issuing CA and indicates it is \"linked\".\n\nIf the server certificate is not correctly linked to its issuing CA to establish the certification path, this is a finding.","fixText":"Configure the NetScaler Gateway to perform RFC 5280-compliant certification path validation by linking the server certificate to its issuing CA.\n\nNote: This procedure assumes the issuing Intermediate or Root CA certificate has already been installed on the appliance under \"CA Certificates\".\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Traffic Management >> SSL >> Certificates >> Server Certificates.\n3. Locate the active server certificate. \n4. In the \"LINK STATUS\" column for that certificate, select the \"Link\" button (or select the certificate, select the \"Action\" drop-down menu, and select \"Link\").\n5. On the \"Certificate links\" page, ensure the appropriate issuing CA certificate is selected and select the \"Link Certificates\" button.\n6. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to link the server certificate to its issuing CA:\n   link ssl certkey <server_cert_name> <ca_cert_name>\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-000185"]},{"vulnId":"V-289126","ruleId":"SV-289126r1318147_rule","severity":"medium","ruleTitle":"The NetScaler providing content filtering must block outbound traffic containing known and unknown denial-of-service (DoS) attacks to protect against the use of internal information systems to launch any DoS attacks against other networks or endpoints.","description":"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.\n\nInstallation 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.\n\nThe 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.\n\nTo 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.","checkContent":"Verify that the NetScaler Gateway blocks outbound traffic containing DoS attacks if configured as an outbound proxy.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings.\n3. Select \"Configure Advanced Features\".\n4. Verify the status of the \"Forward Proxy\" and \"Cache Redirection\" checkboxes. If both are unchecked, this requirement is Not Applicable.\n5. If enabled, navigate to Traffic Management >> Content Switching >> Virtual Servers.\n6. Select the outbound proxy virtual server and select \"Edit\".\n7. Verify an active Responder policy is bound to drop or restrict traffic when rate thresholds are exceeded (similar to the inbound rate-limiting configuration).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check if \"Forward Proxy\" and \"Cache Redirection\" are active:\n   show ns feature\n3. Locate the \"Forward Proxy\" (ForwardProxy) and \"Cache Redirection\" (CR) features in the output.\n4. If these features are \"OFF\", this requirement is Not Applicable and no further auditing is required.\n5. 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:\n   show cs vserver <outbound_cs_vserver_name>\n6. Verify an active Responder policy is bound to drop or restrict traffic when rate thresholds are exceeded.\n\nIf SSL Forward Proxy is enabled and no outbound rate-limiting or DoS prevention policies are bound, this is a finding.","fixText":"Configure the NetScaler Gateway to block outbound traffic containing DoS attacks when used as an outbound SSL Forward Proxy.\n\nNote: No action is required if the NetScaler is not deployed as an outbound SSL Forward Proxy.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to AppExpert >> Rate Limiting >> Selectors and select \"Add\".\n3. Enter a name to track internal client connection rates (e.g., CLIENT.IP.SRC) and select \"Create\".\n4. Navigate to AppExpert >> Rate Limiting >> Limit Identifiers and select \"Add\".\n5. Enter a name, select the Selector created in Step 3, set the \"Threshold\" and \"Time Slice\" to organizationally defined limits, and select \"Create\".\n6. Navigate to AppExpert >> Responder >> Policies and select \"Add\".\n7. Enter a name, set the \"Action\" to \"DROP\", and in the expression box, enter \"sys.check_limit\" (\"<limit_identifier_name>\"). Select \"Create\".\n8. Navigate to Traffic Management >> Content Switching >> Virtual Servers.\n9. Select the outbound \"Content Switching Proxy Virtual Server\" and select \"Edit\".\n10. Bind the Responder policy created in Step 7.\n11. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to create an outbound Rate-Limit Selector to track internal client connection rates:\n   add stream selector <limit_selector_name> \"CLIENT.IP.SRC\"\n3. Run the following command to create a Limit Identifier:\n   add ns limitIdentifier <limit_identifier_name> -threshold <threshold_value> -timeSlice <time_slice_in_ms> -selectorName <limit_selector_name>\n4. Run the following command to create a Responder Policy to block outbound traffic exceeding the threshold:\n   add responder policy <responder_policy_name> \"sys.check_limit(\\\"<limit_identifier_name>\\\")\" DROP\n5. Run the following command to bind the Responder policy to the outbound Content Switching Proxy Virtual Server:\n   bind cs vserver <outbound_cs_vserver_name> -policyName <responder_policy_name> -priority <priority_number>\n6. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-001094"]},{"vulnId":"V-289127","ruleId":"SV-289127r1318579_rule","severity":"medium","ruleTitle":"The NetScaler providing user authentication intermediary services must uniquely identify and authenticate organizational users (or processes acting on behalf of organizational users).","description":"To assure accountability and prevent unauthenticated access, organizational users must be identified and authenticated to prevent potential misuse and compromise of the system.\n\nOrganizational users include organizational employees or individuals the organization deems to have equivalent status of employees (e.g., contractors). Organizational users (and any processes acting on behalf of users) must be uniquely identified and authenticated for all accesses except the following.\n\n1) Accesses explicitly identified and documented by the organization. Organizations document specific user actions that can be performed on the information system without identification or authentication.\n\n2) Accesses that occur through authorized use of group authenticators without individual authentication. Organizations may require unique identification of individuals in group accounts (e.g., shared privilege accounts) or for detailed accountability of individual activity.\n\nThis requirement applies to NetScalers that provide user proxy services, including identification and authentication. This service must use the site's directory service (e.g., Active Directory). Directory services must not be installed onto the gateway.","checkContent":"Verify the NetScaler Gateway is configured to uniquely identify and authenticate organizational and nonorganizational users by employing an authentication policy that extracts a unique identifier from the user's directory service.\n\nNote: This procedure uses LDAP as the primary example. The principle of uniquely identifying users applies to other protocols such as RADIUS and TACACS+, though the specific commands and attribute names may differ.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to Citrix Gateway >> Virtual Servers.\n3. Select the active Gateway Virtual Server and select \"Edit\".\n4. Verify an \"Authentication Profile\" is bound.\n5. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n6. Locate and edit the Action associated with the active Authentication Profile.\n7. Verify the \"Server Logon Name Attribute\" field is populated with a unique identifier from the directory service (e.g., sAMAccountName or userPrincipalName).\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following commands to trace the authentication configuration from the Gateway to the Action:\n   show vpn vserver <gateway_vserver_name>\n   show authentication authnProfile <profile_name>\n   show authentication vserver <aaa_vserver_name>\n   show authentication ldapAction <ldap_action_name>\n3. In the output of the final command, verify the \"Login\" parameter is set to a unique identifier (e.g., sAMAccountName).\n\nIf the Gateway is not configured to extract a unique user identifier from the authentication server, this is a finding.","fixText":"Configure the NetScaler Gateway to uniquely identify users by extracting a unique identifier from the external directory service.\n\nNote: This procedure uses LDAP as the primary example. The principle of uniquely identifying users applies to other protocols such as RADIUS and TACACS+, though the specific commands and attribute names may differ.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> AAA - Application Traffic >> Policies >> Authentication >> Advanced Policies >> Actions.\n3. Select the active \"LDAP Action\" and select \"Edit\".\n4. In the \"Server Logon Name Attribute\" field, enter the appropriate unique identifier for the directory service (e.g., sAMAccountName).\n5. Select \"OK\" and save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command:\n   set authentication ldapAction <action_name> -ldapLoginName sAMAccountName\n3. Save the configuration:\n   save ns config","ccis":["CCI-000764"]},{"vulnId":"V-289128","ruleId":"SV-289128r1318153_rule","severity":"medium","ruleTitle":"To protect against data mining, the NetScaler Gateway providing content filtering must detect code injection attacks from being launched against data storage objects, including, at a minimum, databases, database records, queries, and fields.","description":"Data mining is the analysis of large quantities of data to discover patterns and is used in intelligence gathering. Failure to detect attacks launched against organizational databases may result in the compromise of information.\n\nInjection attacks allow an attacker to inject code into a program or query or inject malware onto a computer to execute remote commands that can read or modify a database, or change data on a website. Web applications frequently access databases to store, retrieve, and update information. An attacker can construct inputs that the database will execute. This is most commonly referred to as a code injection attack. This type of attack includes XPath and LDAP injections.\n \nALGs with anomaly detection must be configured to protect against unauthorized code injections. These devices must include rules and anomaly detection algorithms to monitor for atypical database queries or accesses. Examples include a Web Application Firewalls (WAFs) or database application gateways.","checkContent":"Verify the NetScaler Gateway prevents and detects code injection attacks (such as SQL injection) by enforcing the SQL Injection security check in the active WAF profile.\n\nMethod 1: GUI Verification\n1. Log in to the NetScaler GUI.\n2. Navigate to System >> Settings >> Configure Advanced Features and check the box for \"Citrix Web App Firewall\". Select \"OK\".\n3. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n4. Select the active AppFw Profile and select \"Edit\".\n5. In \"Advanced Settings\" menu on the right, select \"Security Checks\".\n6. In the main panel, verify \"SQL Injection\" has \"Block\", \"Log\", and \"Stats\" enabled.\n\nMethod 2: CLI Verification\n1. Log in to the NetScaler CLI.\n2. Run the following command to check if the Application Firewall feature is active:\n   show ns feature\n3. Locate the \"AppFw\" feature in the output. If the feature is \"OFF\", this requirement is Not Applicable and no further auditing is required.\n4. If the feature is \"ON\", run the following command to identify the active globally bound WAF policy:\n   show appfw global\n5. Run the following command to view the profile settings:\n   show appfw profile <profile_name>\n6. Verify the output displays that the SQL Injection check is configured to block and log (e.g., SQL Injection Action: block log stats).\n\nIf the AppFw feature is enabled but the SQL Injection check is not configured to block, log, and gather stats, this is a finding.","fixText":"Configure the NetScaler Gateway to prevent and detect code injection attacks using the WAF.\n\nMethod 1: GUI Configuration\n1. Log in to the NetScaler GUI.\n2. Navigate to Security >> Citrix Web App Firewall >> Profiles.\n3. Select the active WAF profile and select \"Edit\".\n4. In the \"Advanced Settings\" menu on the right, select \"Security Checks\".\n5. In the main panel, locate \"SQL Injection\" and check the boxes in the \"Block\", \"Log\", and \"Stats\" columns.\n6. Select \"OK\" or \"Done\".\n7. Save the configuration.\n\nMethod 2: CLI Configuration\n1. Log in to the NetScaler CLI.\n2. Run the following command to update the active WAF profile to block and log code injection attacks:\n   set appfw profile <profile_name> -SQLInjectionAction block log stats\n3. Run the following command to save the configuration:\n   save ns config","ccis":["CCI-002347"]}]}