Recent analysis by LevelBlue's Threat Hunt Operations & Research (THOR) team indicates that threat actors are exploiting a critical pre-authentication command injection vulnerability in Citrix NetScaler ADC and NetScaler Gateway products. The observed post-exploitation payloads are designed to establish persistence by creating superuser accounts and mapping web shells to URLs that mimic legitimate CSS files. This activity was identified across multiple customer environments, suggesting a coordinated or widespread campaign targeting these network appliances.
The core of the attack leverages a pre-authentication command injection vulnerability. This class of vulnerability allows an attacker to execute arbitrary commands on the target system without needing to authenticate first. In the context of NetScaler ADC and NetScaler Gateway, which are often exposed to the internet, such a flaw presents a significant risk as it provides an initial foothold into an organization's network perimeter. The specific mechanism of the command injection was not detailed, but it typically involves manipulating input fields or parameters that are processed by the underlying operating system without proper sanitization.
Once the initial command injection is successful, the threat actors proceed with post-exploitation activities. A key step involves the creation of a superuser account. This grants the attackers elevated privileges, often equivalent to root or administrator access, enabling them to perform a wide range of malicious actions, including modifying system configurations, installing additional malware, or accessing sensitive data. The creation of a new superuser account also serves as a persistent backdoor, allowing attackers to regain access even if the initial vulnerability is patched or the web shell is removed.
Another critical component of the post-exploitation payload is the deployment of web shells. These are malicious scripts or programs that provide remote administrative access to a web server. In this observed activity, the web shells were mapped to URLs that resemble legitimate CSS files. This technique, known as masquerading, is a common evasion tactic. By blending in with normal web traffic and legitimate file types, the web shells are less likely to be detected by traditional network monitoring tools or security analysts reviewing web server logs. The web shells likely provide a command-and-control interface, allowing the attackers to issue commands and exfiltrate data.
The primary objective of this exploitation activity appears to be the theft of configuration data. NetScaler ADC and NetScaler Gateway devices store critical network configuration information, including details about VPNs, load balancing, authentication mechanisms, and potentially sensitive credentials. Compromising this data could give attackers a comprehensive understanding of the target network's architecture, facilitate further lateral movement, or enable them to disrupt critical services.
Organizations using Citrix NetScaler ADC and NetScaler Gateway products are strongly advised to apply all available security patches immediately, especially those addressing pre-authentication vulnerabilities. Furthermore, administrators should review system logs for any signs of unauthorized superuser account creation or unusual file access patterns. Implementing robust network segmentation, strong authentication mechanisms, and continuous monitoring for anomalous network traffic and file changes can help detect and mitigate such threats. Regular security audits and penetration testing can also help identify and remediate vulnerabilities before they are exploited.
This incident underscores the ongoing challenge of securing internet-facing network infrastructure, particularly appliances that serve as critical gateways. Pre-authentication vulnerabilities in such devices are highly prized by attackers due to their low barrier to entry and high potential impact. The use of sophisticated post-exploitation techniques, such as superuser creation and web shell masquerading, highlights the need for a multi-layered security approach that extends beyond initial vulnerability patching to include robust detection and response capabilities.






