Skip to content
STIRUP

TECHNOLOGY INTELLIGENCE

Understand what's next.

CWPdoor Backdoor Found in Control Web Panel Server

Researchers discovered a backdoor named CWPdoor embedded in the cwpsrv web server, which allows attackers to execute commands without generating logs and uses AES-256-CBC encryption.

Share
AI-generated conceptual illustration accompanying: CWPdoor Backdoor Found in Control Web Panel Server
AI-generated editorial illustration of the article topic; not a photograph, product screenshot or measured result.

Discovery and Nature of the CWPdoor Backdoor

Researchers at QiAnXin's XLab discovered a backdoor named CWPdoor embedded within the cwpsrv web server, which is part of the Control Web Panel (CWP) used to manage Linux hosting servers. The backdoor was identified after a script posing as an updater replaced the legitimate 'cwpsrv' binary with a malicious version on June 29. The malware is distributed through a trojanized version of cwpsrv, according to the analysis. The CWPdoor backdoor allows attackers to execute arbitrary commands on the server without generating logs, as it interferes with the server’s logging module. Commands and their output are encrypted using the AES-256-CBC cipher, as noted in the technical analysis. The researchers emphasized that the backdoor's design includes a mechanism that binds three fields together with a ±300-second time window to provide replay protection and authorization control.

Infection Mechanism and Stealth Techniques

The backdoor, named cwpdoor by researchers, infects the cwpsrv web server by replacing specific versions (1.15.10 and 1.24.0) with a modified installer that masquerades as a version update. According to evidence, the installer requires root access, indicating that attackers must already have control over the server to deploy the backdoor. Once installed, the backdoor executes commands sent via web requests without recording them in access logs, making detection more difficult. To conceal its presence, the installer restores original file and directory timestamps, deletes temporary files, and wipes the command-history log. Additionally, the backdoor verifies the RSA signature of incoming commands and checks whether the timestamp falls within a five-minute window before executing them. These stealth techniques help the backdoor avoid detection while allowing attackers to maintain persistent, undetected access to the server.

Detection and Indicators of Compromise

Detection of the Linux backdoor hidden in the Control Web Panel (CWP) server requires specific checks. According to XLab, administrators should first run the command ss -axp | grep integrity to inspect open sockets. The presence of a Unix socket named ngx_http_integrity_helper is a strong indicator of infection, as noted in their research. Additionally, checking the server binary with strings /usr/local/cwpsrv/bin/cwpsrv | grep X-Ngx-Integrity can reveal the backdoor's header names, which are embedded in the compromised file. In one example, the socket check identified the backdoor even though the server's open ports appeared normal. XLab recommends looking for the Unix socket, suspicious cwpsrv helper processes, and the X-Ngx-Integrity strings in the binary. If a compromise is confirmed, administrators should replace the backdoored binary with a legitimate copy, upgrade to the latest version, rotate all control panel credentials, and investigate the host for additional malware.

Cleanup and Mitigation Steps

Cleanup and mitigation steps are critical after identifying a backdoor in a control web panel server. First, change all control panel credentials, as the backdoor can execute any command without leaving logs [The Hacker News]. Treat the entire server as compromised and conduct a thorough inspection for additional threats [The Hacker News]. If a compromise is confirmed, replace the backdoored binary with a legitimate copy, upgrade to the latest version, rotate all control panel credentials, and investigate the host for additional malware [bleepingcomputer.com]. Additionally, focus on the cleanup of traces following the discovery of the initial infection script [bleepingcomputer.com]. The researchers noted that the CWPdoor backdoor was uploaded to VirusTotal on September 30 in an archive that included the Ebury backdoor [bleepingcomputer.com]. Ebury is a Linux backdoor and credential stealer botnet operation active since at least 2009 [bleepingcomputer.com].

In addition to the Linux backdoor discovered in the control web panel server, the archive uploaded from Brazil also contained the Ebury malware, an OpenSSH backdoor and credential stealer that has been active since at least 2009, according to evidence from multiple sources. Researchers have not confirmed a direct link between the backdoor and Ebury, suggesting that different attackers may have planted them on the same server. A 2024 report from ESET indicated that Ebury had infected nearly 400,000 servers since its emergence, as stated in bleepingcomputer.com. The malware operators activate the backdoor by sending encrypted HTTP headers (X-Ngx-Integrity-Data) to execute commands. According to Xlab, the backdoor also manipulates the server’s logging module to prevent the triggering request from being recorded in access logs, as noted in bleepingcomputer.com and bleepingcomputer.com.

Sources and reporting notes

Based on published source material. No independent hands-on testing is claimed.

Read more