Linux/Cdorked
- Type
- Backdoor
- Capabilities
- Defense evasionPost exploitation
- Platforms
- Linux
Linux/Cdorked is a stealthy HTTP backdoor for Apache web servers that was used to hijack legitimate websites and redirect visitors to malicious content, including exploit kits. It is associated with Operation Windigo, a profit-driven server-side malware ecosystem that also included Linux/Ebury, Linux/Onimiki, and Perl/Calfbot. The malware targeted Linux and Unix hosting environments, with reporting repeatedly noting impact on Apache deployments running cPanel, although that did not by itself demonstrate exploitation of a cPanel vulnerability.
Linux/Cdorked modifies the Apache httpd binary and keeps operational state in shared memory, minimizing forensic artifacts on disk and complicating detection. Its configuration can be delivered through obfuscated HTTP requests that do not appear in normal Apache logs. The in-memory payload can be cleared by rebooting, but the altered web-server binary remains a durable sign of compromise. Its primary function was web-traffic redirection: visitors to compromised legitimate sites were selectively sent to attacker-controlled infrastructure serving exploit kits such as Blackhole and later Neutrino. In the Windigo operation, these redirects were used to deliver Windows malware to downstream victims, including Glupteba and Boaxxe variants, with payload selection varying by geography.
The initial root-compromise vector for affected servers was not conclusively established. Contemporary assessments considered stolen credentials, phishing against administrators, and brute-force access plausible paths, and broader Windigo reporting concluded the operation expanded primarily through credential theft rather than novel Linux vulnerabilities. Linux/Cdorked was notable for its stealth, selective redirection logic, and role in monetizing compromised servers through drive-by malware delivery and traffic brokerage.
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Trojanized httpd (Apache), nginx or lighttpd.
Initial Access
2 techniques
Initial Access
web visitors accessing pages hosted on websites infected with Linux/Cdorked can be redirected to exploit kits. These exploit kits, if successful, install two different malware families, depending on the visitor’s geographic location. | Web servers infected with Linux/Cdorked redirect users to exploit kit servers, which in turn attempt to infect users with malware.
web visitors accessing pages hosted on websites infected with Linux/Cdorked can be redirected to exploit kits.
Execution
3 techniques
Execution
One can use the following command to determine if the server he is on is compromised: ssh -G 2>&1 | grep -e illegal -e unknown > /dev/null && echo "System clean" || echo "System infected"
Ebury uses an abstract UNIX socket to communicate with an external process that will be responsible for data exfiltration.
Trojanized sshd, ssh, ssh-add and the target of the libkeyutils.so.1 symbolic link.
Persistence
2 techniques
Persistence
The redirection is not automatic and depends on certain conditions set by the operators through a series of Linux/Ebury infected servers.
ESET and Sucuri simultaneously blogged about the discovery of Linux/CDorked, a backdoor impacting Apache servers running cPanel.
Stealth
3 techniques
Stealth
The redirection is not automatic and depends on certain conditions set by the operators through a series of Linux/Ebury infected servers.
No configuration files are kept on disk
Trojanized sshd, ssh, ssh-add and the target of the libkeyutils.so.1 symbolic link.
Credential Access
1 technique
Credential Access
This rule matches the configuration commands that are sent to Linux/Cdorked. Any external host contacting properly identified Web servers on HTTP ports with Linux/Cdorked’s specific cookie and URL will trigger the alert.
Lateral Movement
1 technique
Lateral Movement
The gang practices good operational security. They never directly connect to any of the compromised servers to perform an operation. They use one of the anonymizing tunnel services running on another compromised server part of the malicious infrastructure.
Command and Control
5 techniques
Command and Control
This rule matches the configuration commands that are sent to Linux/Cdorked. Any external host contacting properly identified Web servers on HTTP ports with Linux/Cdorked’s specific cookie and URL will trigger the alert. | The following domains are used to exfiltrate HTTP POST requests over HTTP or HTTPS.
Any external host contacting properly identified Web servers on HTTP ports with Linux/Cdorked’s specific cookie and URL will trigger the alert.
This server is the entry-point of a chain of reverse proxy servers terminating on an exploit serving machine.
First, the complete source code of the targeted web server is downloaded, along with a malicious “diff patch” coming from a server under the attacker’s control.
The redirection is not automatic and depends on certain conditions set by the operators through a series of Linux/Ebury infected servers.
Observables
36 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.