WellMess is a cross-platform remote access trojan observed in intrusions since at least January 2018. It has Go-based variants compiled for Windows and Linux, including 32-bit and 64-bit builds, and a Windows variant implemented in .NET. Its core capabilities include arbitrary shell command execution, file upload and download, and exfiltration of files and system information. Windows variants can also execute PowerShell scripts received from command-and-control servers. WellMess collects host details such as the current username, user domain, and IP address and transmits information to its operators.
WellMess uses HTTP, HTTPS, and DNS for command-and-control communications. It supports decoding and decrypting incoming commands and uses Base64 encoding and cryptographic mechanisms involving RC6, AES, and RSA to protect communication data. Some variants encrypt dynamically generated AES keys with an embedded RSA public key.
WellMess infections have been identified in Japanese organizations. In 2020, the United Kingdom, Canada, and United States governments attributed WellMess intrusions targeting COVID-19 vaccine development organizations to APT29, a cyberespionage group associated with Russia's Foreign Intelligence Service. WellMess and WellMail were used in operations aimed at stealing vaccine-related intellectual property in the United States, United Kingdom, and Canada. In these operations, WellMess was typically deployed after initial compromise through an unpatched, publicly known vulnerability, with subsequent activity targeting vaccine research repositories and Active Directory servers.
5 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
How WellMess malware has been used to target COVID-19 vaccines.
The WellMess malware is an excellent example of how examination of infrastructure and the techniques used in an attack can lead to different conclusions.
The WellMess malware is an excellent example of how examination of infrastructure and the techniques used in an attack can lead to different conclusions.
The WellMess malware is an excellent example of how examination of infrastructure and the techniques used in an attack can lead to different conclusions.
“…deployment of custom malware known as WellMess, WellMail, and Sorefang to target organizations involved in COVID-19 vaccine development.”
35 distinct techniques documented for this family, organized by ATT&CK tactic.
TLS-сертификаты Digital Certificates T1596.003... Сертификаты - одна из самых сильных pivot-точек для картирования инфраструктуры хакеров.
За это время аналитик может обнаружить сервер через сканирование баз данных Scan Databases (T1596.005, Reconnaissance)
When a client connects to the malicious server, it automatically downloaded and executed the new trojanized version of the VPN client.
The group also known as “The Dukes” or “Cozy Bear” used Citrix and VPN vulnerabilities to attack various companies connected to vaccine development.
the attacker exploited a vulnerability in the Sangfor SSL VPN Server ... to replace the SangforUD.exe client binary with a trojanized version. When a client connects to the malicious server, it automatically downloaded and executed the new trojanized version of the VPN client.
Specifically, APT29 uses a variety of tools and techniques, including spear phishing and custom malware known as “WellMess” and “WellMail”, according to the NCSC.
The malware may perform the following functions when receiving commands from a C&C server. Execute arbitrary shell command
[WellMess](https://attack.mitre.org/software/S0514) can execute PowerShell scripts received from C2.(Citation: PWC WellMess July 2020)(Citation: CISA WellMess July 2020)
[WellMess](https://attack.mitre.org/software/S0514) can execute command line scripts received from C2.(Citation: PWC WellMess July 2020)
In this attack, an attacker exploited a vulnerability in the Sangfor SSL VPN Server ... to replace the SangforUD.exe client binary with a trojanized version. When a client connects to the malicious server, it automatically downloaded and executed the new trojanized version of the VPN client.
When a client connects to the malicious server, it automatically downloaded and executed the new trojanized version of the VPN client.
When a client connects to the malicious server, it automatically downloaded and executed the new trojanized version of the VPN client.
Results of command execution are send in HTTP POST request data, which is RSA-encrypted. The data in Cookie header is RC6-encrypted.
Company Name Microsoft Corporation File Description Power Settings Command-Line Tool Internal Name powercfg.exe Original Filename powercfg.exe
Based on our observations, Russian state-attributed actors often use better operational security for C2 infrastructure... We also observe that when their C2 infrastructure is publicly reported upon, it is often quickly dispensed with.
When a client connects to the malicious server, it automatically downloaded and executed the new trojanized version of the VPN client.
[WellMess](https://attack.mitre.org/software/S0514) can decode and decrypt data received from C2.(Citation: PWC WellMess July 2020)(Citation: PWC WellMess C2 August 2020)(Citation: CISA WellMess July 2020)
These artifacts create detection opportunities for defenders, and include software versions deployed on the server, the login panel, TLS certificate patterns...
[WellMess](https://attack.mitre.org/software/S0514) can identify the IP address and user domain on the target machine.(Citation: PWC WellMess July 2020)(Citation: CISA WellMess July 2020)
[WellMess](https://attack.mitre.org/software/S0514) can collect the username on the victim machine to send to C2.(Citation: CISA WellMess July 2020)
Both collect the state of system privileges (disabled or enabled) from the infected system
[WellMess](https://attack.mitre.org/software/S0514) can identify domain group membership for the current user.(Citation: CISA WellMess July 2020)
[WellMess](https://attack.mitre.org/software/S0514) can identify the computer name of a compromised host.(Citation: PWC WellMess July 2020)(Citation: CISA WellMess July 2020)
The program is capable of encrypting, decrypting, uploading and downloading files... It performs functions based on the received commands: File upload File download
"...accept and execute shell scripts from a remote operator."; "...receive scripts compressed (tar files)... decompress them before executing the embedded script."
[WellMess](https://attack.mitre.org/software/S0514) can send files from the victim machine to C2.(Citation: PWC WellMess July 2020)(Citation: CISA WellMess July 2020)
[WellMess](https://attack.mitre.org/software/S0514) can use junk data in the Base64 string for additional obfuscation.(Citation: CISA WellMess July 2020)
Most cyber activity by malicious actors requires infrastructure like servers on the internet. Some APT groups used several thousand Command and Control (C2) servers over the years. | Also, this article covers only HTTP(S) based infrastructure.
[WellMess](https://attack.mitre.org/software/S0514) can use HTTP and HTTPS in C2 communications.(Citation: PWC WellMess July 2020)(Citation: PWC WellMess C2 August 2020)(Citation: CISA WellMess July 2020)(Citation: NCSC APT29 July 2020)
[WellMess](https://attack.mitre.org/software/S0514) has the ability to use DNS tunneling for C2 communications.(Citation: PWC WellMess July 2020)(Citation: NCSC APT29 July 2020)
When the file is executed, it attempts to create a C2 connection to one of the following IP addresses: 141.98.212.55 over Transmission Control Protocol(TCP) Port 53 209.58.186.196 over TCP Port 443
[WellMess](https://attack.mitre.org/software/S0514) can write files to a compromised host.(Citation: PWC WellMess July 2020)(Citation: CISA WellMess July 2020)
ADVSTORESHELL C2 traffic is encrypted, then encoded with Base64 encoding. APT19 HTTP malware variant used Base64 to encode communications to the C2 server. APT33 has used base64 to encode command and control traffic.
[WellMess](https://attack.mitre.org/software/S0514) has used Base64 encoding to uniquely identify communication to and from the C2.(Citation: CISA WellMess July 2020)
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
[WellMess](https://attack.mitre.org/software/S0514) can encrypt HTTP POST data using RC6 and a dynamically generated AES key encrypted with a hard coded RSA public key.(Citation: PWC WellMess July 2020)(Citation: PWC WellMess C2 August 2020)(Citation: CISA WellMess July 2020)
[WellMess](https://attack.mitre.org/software/S0514) can communicate to C2 with mutual TLS where client and server mutually check certificates.(Citation: PWC WellMess July 2020)(Citation: PWC WellMess C2 August 2020)(Citation: CISA WellMess July 2020)(Citation: NCSC APT29 July 2020)
The malware exfiltrates information regarding the system that it infected... and the exfiltration of additional data.
63 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
52 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.