A new Linux backdoor called CWPdoor is targeting servers running the Control Web Panel (CWP) management interface, remaining dormant until triggered by a specially crafted request carrying an encrypted command, researchers at XLab, the cybersecurity arm of QiAnXin Technology Group, have reported.
The researchers discovered the malware on June 29 after capturing a script posing as an updater that replaced the legitimate 'cwpsrv' binary with a malicious version. The script targets cwpsrv versions 1.15.10 and 1.24.0, taking steps to hide the swap by restoring timestamps, deleting temporary files and wiping the command-history log.
CWP, formerly known as CentOS Web Panel, is an open-source web hosting administration solution similar to cPanel and Plesk. According to XLab, more than 340,000 CWP instances have been exposed on the public web over the past month.
XLab describes CWPdoor as "exceptionally stealthy" due to its passive triggering and log suppression. The backdoor activates when it receives a command in the form of an encrypted HTTP header (X-Ngx-Integrity-Data), accompanied by headers for a timestamp and an RSA signature. The command and its output are encrypted using AES-256-CBC. The backdoor checks the timestamp falls within a five-minute window and verifies the RSA signature before executing the command. "Changing either the timestamp or the ciphertext independently invalidates the signature," XLab explains. The backdoor also prevents the triggering request from appearing in access logs.
After finding the initial infection script, researchers saw CWPdoor uploaded to VirusTotal on September 30 in an archive that included the Ebury backdoor. The malicious cwpsrv file in the archive had zero detections. “This indicates that the campaign was not merely experimental: real victims already exist in the wild,” the researchers said, adding the connection between Ebury and CWPdoor remains unclear. Ebury is a Linux backdoor and credential-stealer botnet operation that cybersecurity company ESET reported in May 2024 had infected nearly 400,000 servers since it emerged.
XLab recommends administrators check for the ngx_http_integrity_helper Unix socket, suspicious cwpsrv helper processes, and X-Ngx-Integrity strings in the server binary. If compromise is confirmed, they advise replacing the backdoored binary, upgrading to the latest CWP version, rotating all control panel credentials, and investigating the host for additional malware.
Analysis
Why This Matters
- Over 340,000 CWP instances are publicly exposed, creating a broad potential attack surface.
- The malware's stealth features, passive activation, log suppression and encrypted communications, make detection difficult for standard tools.
- The unknown link to the long-running Ebury botnet raises concerns about a larger, coordinated campaign.
Background
Control Web Panel is an open-source web hosting control panel used to manage servers, domains, email and databases. Researchers at Chinese cybersecurity firm XLab discovered the CWPdoor campaign in mid-2024. The malware is distributed through a trojanised version of the panel's web server binary.
Key Perspectives
What to Watch
- Whether administrators find the indicators XLab identified: the
ngx_http_integrity_helper socket, suspicious cwpsrv processes or X-Ngx-Integrity strings.
- Any increase in CWPdoor detections on VirusTotal or new samples linking it to the Ebury botnet.
- Official CWP updates that patch the vulnerability used to replace the binary.
Checked
12 claims in this story checked against 1 source: 11 supported.
Show each claim
- SupportedCWPdoor is a stealthy backdoor targeting Control Web Panel servers.BleepingComputer: “CWPdoor acts as a passive backdoor that sits dormant on the compromised system until the attacker sends a specially crafted request.”
- SupportedThe malware uses encrypted commands and log suppression to remain hidden.BleepingComputer: “Researchers at XLab, the cybersecurity research arm of QiAnXin Technology Group, describe CWPdoor as "exceptionally stealthy" due to its passive triggering and log suppression feature.”
- Partly supportedXLab is the cybersecurity arm of QiAnXin Technology Group.BleepingComputer: “Researchers at XLab, the cybersecurity research arm of QiAnXin Technology Group”
- SupportedCWPdoor remains dormant until triggered by a specially crafted request carrying an encrypted command.BleepingComputer: “CWPdoor acts as a passive backdoor that sits dormant on the compromised system until the attacker sends a specially crafted request.”
- SupportedResearchers discovered CWPdoor on June 29 after capturing an updater-like script that replaced the legitimate cwpsrv binary with a malicious version.BleepingComputer: “The researchers discovered the CWPdoor malware on June 29 after capturing a script posing as an updater that replaced the legitimate 'cwpsrv' binary with a malicious version.”
- SupportedThe script replaces cwpsrv versions 1.15.10 and 1.24.0 and hides the swap by restoring timestamps, deleting temporary files and wiping the command-history log.BleepingComputer: “The script replaces cwpsrv versions 1.15.10 and 1.24.0, and takes several steps to hide the switch, like restoring file and directory timestamps, deleting temporary files, and wiping the command-history log.”
- SupportedXLab says more than 340,000 CWP instances were exposed on the public web over the past month.BleepingComputer: “According to XLab, more than 340,000 CWP instances have been exposed on the public web over the past month.”
- SupportedXLab describes CWPdoor as “exceptionally stealthy” because of its passive triggering and log suppression.BleepingComputer: “Researchers at XLab, the cybersecurity research arm of QiAnXin Technology Group, describe CWPdoor as "exceptionally stealthy" due to its passive triggering and log suppression feature.”
- SupportedThe backdoor uses an encrypted HTTP command header, checks a timestamp against a five-minute window, verifies an RSA signature, and encrypts commands and output using AES-256-CBC.BleepingComputer: “Commands and their output are encrypted using the AES-256-CBC cipher to keep them protected. The backdoor checks whether the timestamp falls within a five-minute window and verifies the RSA signature”
- SupportedXLab says, “Changing either the timestamp or the ciphertext independently invalidates the signature.”BleepingComputer: ““Changing either the timestamp or the ciphertext independently invalidates the signature,” XLab explains .”
- SupportedResearchers saw CWPdoor uploaded to VirusTotal on September 30 in an archive that included Ebury; the malicious cwpsrv file had zero detections.BleepingComputer: “the researchers saw CWPdoor uploaded to VirusTotal on September 30 in an archive that included the Ebury backdoor. What caught their attention was that the malicious cwpsrv file ( cwpsrv.suspeito ) in the archive had zero detections.”
- SupportedThe researchers said, “This indicates that the campaign was not merely experimental: real victims already exist in the wild,” while adding that the connection between Ebury and CWPdoor remains unclear.BleepingComputer: “"This indicates that the campaign was not merely experimental: real victims already exist in the wild," the researchers say, adding that the connection between Ebury and CWPdoor remains unclear.”