Perl/Calfbot
- Type
- Botnet
- Capabilities
- Exfiltration
- Platforms
- LinuxmacOSWindows
Perl/Calfbot is a Perl-based spam-sending malware component associated with Operation Windigo, a large profit-driven intrusion ecosystem centered on compromised Linux and Unix servers. Within that operation, Perl/Calfbot was used to distribute unsolicited bulk email at very large scale, with observed infrastructure supporting tens of millions of spam messages per day. It operated as one element of a broader toolset that also included Linux/Ebury, an OpenSSH backdoor and credential stealer; Linux/Cdorked, a web traffic redirection component; and Linux/Onimiki, a malicious DNS component.
Perl/Calfbot receives spam-sending jobs from command-and-control infrastructure, processes those jobs, and reports delivery statistics including successful and failed message attempts. Analysis of the wider operation linked Perl/Calfbot to shared infrastructure and overlapping compromised hosts used by other Windigo components. Spam delivered through the ecosystem was monetized alongside web redirection and drive-by malware delivery.
The malware was notable for cross-platform portability inherent to Perl deployments. It was observed affecting Linux and other Unix-like environments, and reporting also noted operation on FreeBSD, OpenBSD, macOS, and Windows when Perl was available through Cygwin. In the Windigo campaign, compromised servers hosting Perl/Calfbot were part of a long-running criminal infrastructure that relied primarily on stolen credentials rather than exploitation of novel server vulnerabilities. Perl/Calfbot is best understood as the spam bot element of that larger server-side malware operation.
Techniques & procedures
11 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
One of the main items through which the operators of Windigo are monetizing infections is by sending spam email messages.
The purpose of the operation seems to be monetary profit. This profit is gathered through various ways including redirecting web users to malicious content and sending unsolicited emails.
Execution
2 techniques
Execution
Perl/Calfbot – a Perl script used to send spam
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"
Stealth
2 techniques
Stealth
Abused legitimate processes include: /bin/hostname, /bin/sync, /sbin/auditd, /sbin/rsyslogd, /sbin/udevd...
No configuration files are kept on disk
Command and Control
5 techniques
Command and Control
The following domains are used to exfiltrate HTTP POST requests over HTTP or HTTPS.
Linux/Onimiki is a DNS server backdoor. These rules will alert on either inbound or outbound DNS requests with the specific Linux/Cdorked URL pattern... Since Perl/Calfbot uses HTTPS... these rules will match specific DNS requests.
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.
First domain of the sixth iteration of the DGA... First domain of the fifth iteration of the DGA... Below is the list of domains generated by the DGA for each seed by DGA generation.
First domain of the sixth iteration of the DGA... First domain of the fifth iteration of the DGA... First domain of the fourth iteration of the DGA.
Observables
32 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.