Unveiling WolfsBane: Gelsemium’s Linux counterpart to Gelsevirine

ESET ResearchUnveiling WolfsBane: Gelsemium’s Linux counterpart to Gelsevirine=================================================================ESET researchers analyzed previously unknown Linux backdoors that are connected to known Windows malware used by the China-aligned Gelsemium group, and to Project Wood [![Viktor Šperka](https://web-assets.esetstatic.com/tn/-x45/wls/2023/2023-8/viktor-1.jpeg)](/en/our-experts/viktor-sperka1/ ‘Viktor Šperka’) [**Viktor Šperka**](/en/our-experts/viktor-sperka1/ ‘Viktor Šperka’)21 Nov 2024 • , 18 min. read ![Unveiling WolfsBane: Gelsemium’s Linux counterpart to Gelsevirine](https://web-assets.esetstatic.com/tn/-x700/wls/2024/11-2024/wolfsbane/wolfsbane-gelsemium-gelsevirine-linux.jpeg) ESET researchers have identified multiple samples of Linux backdoor, which we have named WolfsBane, that we attribute with high confidence to the Gelsemium advanced persistent threat (APT) group. This China-aligned threat actor has a known history dating back to 2014 and until now, there have been no public reports of Gelsemium using Linux malware. Additionally, we discovered another Linux backdoor, which we named FireWood. However, we cannot definitively link FireWood to other Gelsemium tools, and its presence in the analyzed archives might be coincidental. Thus, we attribute FireWood to Gelsemium with low confidence, considering it could be a tool shared among multiple China-aligned APT groups.The most notable samples we found in archives uploaded to VirusTotal are two backdoors resembling known Windows malware used by Gelsemium. WolfsBane is the Linux counterpart of Gelsevirine, while FireWood is connected to Project Wood. We also discovered other tools potentially related to Gelsemium’s activities. The goal of the backdoors and tools discovered is cyberespionage targeting sensitive data such as system information, user credentials, and specific files and directories. These tools are designed to maintain persistent access and execute commands stealthily, enabling prolonged intelligence gathering while evading detection.The trend of APT groups focusing on Linux malware is becoming more noticeable. We believe this shift is due to improvements in Windows email and endpoint security, such as the widespread use of endpoint detection and response (EDR) tools and Microsoft’s decision to disable Visual Basic for Applications (VBA) macros by default. Consequently, threat actors are exploring new attack avenues, with a growing focus on exploiting vulnerabilities in internet-facing systems, most of which run on Linux.In this blogpost, we provide technical analysis of the Linux malware, mainly focusing on the two different backdoors.> **Key points of the blogpost:**>> * ESET researchers found archives with multiple Linux samples, containing two previously unknown backdoors.> * The first backdoor, WolfsBane, is a Linux version of Gelsevirine, a Windows backdoor used by Gelsemium.> * Its dropper is the equivalent of the Gelsemine dropper, and features a hider based on an open-source userland rootkit.> * The second backdoor, which we have named FireWood, is connected to Project Wood. The Windows version of the Project Wood backdoor was previously used by the Gelsemium group in Operation TooHash.> * Alongside the backdoors, we found additional tools, mainly web shells based on publicly available code.Overview——–In 2023, we found these samples in archives uploaded to VirusTotal from Taiwan, the Philippines, and Singapore, probably originating from an incident response on a compromised server. Gelsemium has [previously](https://www.welivesecurity.com/2021/06/09/gelsemium-when-threat-actors-go-gardening/) targeted entities in Eastern Asia and the Middle East.The first backdoor is a part of a simple loading chain consisting of the dropper, launcher, and backdoor. We named this malware WolfsBane. As explained in the [*Attribution and connection*](#Attribution and connection) and *[Technical analysis](#Technical analysis)* sections, WolfsBane is a Linux equivalent of Gelsemium’s Gelsevirine backdoor and the WolfsBane dropper is analogous to the Gelsemine dropper. Our name for Gelsemium comes from one possible translation of the name we found in the report from [VenusTech](https://www.venustech.com.cn/uploads/2018/08/231401512426.pdf), who dubbed the group 狼毒草. It’s the name of a genus of flowering plants in the family Gelsemiaceae, and *Gelsemium elegans* is the species that contains toxic compounds like Gelsemine, Gelsenicine, and Gelsevirine, which we chose as names for the three components of this malware family. We previously analyzed Gelsevirine and Gelsemine in [this white paper](https://web-assets.esetstatic.com/wls/2021/06/eset_gelsemium.pdf). Part of the analyzed WolfsBane attack chain is also a modified open-source userland rootkit, a type of software that exists in the user space of an operating system and hides its activities.The second backdoor, which we named FireWood, is connected to a backdoor tracked by ESET researchers under the name Project Wood, previously analyzed in the *Project Wood* section of [this blogpost](https://www.welivesecurity.com/en/eset-research/nspx30-sophisticated-aitm-enabled-implant-evolving-since-2005/). We have traced it back to 2005 and observed it evolving into more sophisticated versions.The archives we analyzed also contain several additional tools, mostly webshells, that allow remote control to a user once they are installed on a compromised server, and simple utility tools.Attribution and connection————————–In this section, we explain the similarities that led us to attribute the WolfsBane malware to the Gelsemium APT group and establish a connection between the FireWood backdoor and the Project Wood malware.### WolfsBane links to Windows GelsevirineBased on the following similarities, we assess that the WolfsBane backdoor is the Linux version of [Gelsevirine](https://www.welivesecurity.com/2021/06/09/gelsemium-when-threat-actors-go-gardening/). Therefore, we attribute WolfsBane to the Gelsemium APT group with high confidence:* **Custom libraries for network communication:** Both the Linux and Windows versions load an embedded custom library for network communication, with a different library for each communication protocol used. The backdoor accesses the library’s functions by calling its create_seesion export/symbol; notably, the typo seesion is the same in both versions (as shown in Figure 1).![Figure 1. Accessing the create_seesion export in Linux and Windows versions of backdoor](https://web-assets.esetstatic.com/wls/2024/11-2024/wolfsbane/figure-1.jpeg ‘Figure 1. Accessing the create_seesion export in Linux (left) and Windows (right) versions of backdoor’) *Figure 1. Accessing the* create_seesion*export in Linux (left) and Windows (right) versions of backdoor** **Command execution mechanism:** Both versions use the same mechanism for executing commands received from the C-&C server. The backdoor creates a table with hashes (derived from the command name) and corresponding pointers to functions that handle those commands (Figure 2). We provide more details in the *[Technical analysis](#Technical analysis)* section.![Figure 2. Comparison of plugin command names](https://web-assets.esetstatic.com/wls/2024/11-2024/wolfsbane/figure-2.jpeg ‘Figure 2. Comparison of plugin command names found in the Linux Wolfsbane (left) and Windows Gelsevirine (right) backdoors’) *Figure 2. Comparison of plugin command names found in the Linux Wolfsbane (left) and Windows Gelsevirine (right) backdoors** **Configuration structure:** Both backdoors use a very similar configuration structure. While the Linux version has some omitted fields and some extra ones, most of the field names are consistent. For example, the value of pluginkey found in the configuration is the same as in all Windows Gelsevirine samples from 2019. Additionally, the controller_version values in the Linux version configuration match those in the Gelsevirine samples.* **Domain Usage:** The domain dsdsei-[.-]com, used by the Linux version, was previously flagged by ESET researchers as an indicator of compromise (IoC) associated with the Gelsemium APT group.### FireWood connection to Project WoodWe have found code similarities between the FireWood sample and the backdoor used in Operation TooHash (SHA-1: ED5342D9788392C6E854AAEFA655C4D3B4831B6B), as [described by G DATA](https://paper.seebug.org/papers/APT/APT_CyberCriminal_Campagin/2014/GDATA_TooHash_CaseStudy_102014_EN_v1.pdf), who consider it to be a part of the DirectsX rootkit. ESET researchers later named this backdoor [Project Wood](https://www.welivesecurity.com/en/eset-research/nspx30-sophisticated-aitm-enabled-implant-evolving-since-2005/). Those similarities include:* **Naming conventions:** Both use the ‘Wood’ string in naming. For example, the FireWood backdoor configuration structure is referenced by the symbol WoodConf, and Win32 versions use the mutex name IMPROVING CLIENT Want Wood To Exit?.* **File extensions:** Both samples share specific filename extensions such as .k2 and .v2.* **TEA encryption algorithm:** The implementation of the TEA encryption algorithm with a variable number of rounds is the same in both samples.* **C-&C communication strings:** Both samples use the same strings in the code responsible for C-&C communications, XORed with the same single-byte key (0x26).* **Networking code:** The networking code in both samples is very similar.Based on these findings, we assess with high confidence that the FireWood backdoor is the Linux continuation of the Project Wood backdoor. A connection between the FireWood backdoor to other Gelsemium tools cannot be proved and its presence in the archives analyzed could be coincidental. So, we make our attribution to Gelsemium only with low confidence and acknowledge the possibility that it is a tool shared by multiple Chinese APT groups, perhaps through a common digital quartermaster as we have seen with other China-aligned groups.Technical analysis——————The [first archive](https://www.virustotal.com/gui/file/3aa8a5afa686e6b21fcc268760ea1f344560607abe9a3edb3f23d14a6032597b) was uploaded to VirusTotal on March 6^th^, 2023, from Taiwan. Subsequent archives were uploaded also from the Philippines and Singapore. Based on the folder structure (Figure 3), the target was probably an Apache Tomcat webserver running an unidentified Java web application.![Figure 3. Example of archive structure](https://web-assets.esetstatic.com/wls/2024/11-2024/wolfsbane/figure-3-1.png ‘Figure 3. Example of archive structure’) *Figure 3. Example of archive structure*#### Initial accessAlthough we lack concrete evidence regarding the initial access vector, the presence of multiple webshells (as shown in Table 1 and described in the *[Webshells](#Webshells)*section) and the tactics, techniques, and procedures (TTPs) used by the Gelsemium APT group in recent years, we conclude with medium confidence that the attackers exploited an unknown web application vulnerability to gain server access.*Table 1. Webshells found in analyzed archives*
**SHA-1** **Filename** **Description** 238C8E8EB7A732D85D8A7F7CA40B261D8AE4183D login.jsp Modified [AntSword JSP](https://github.com/AntSwordProject/AntSword-JSP-Template/blob/master/web/shell.jsp) webshell. 9F7790524BD759373AB57EE2AAFA6F5D8BCB918A yy1.jsp [icesword](https://github.com/tennc/webshell/blob/master/jsp/icesword.jsp) webshell. FD601A54BC622C041DF0242662964A7ED31C6B9C a.jsp Obfuscated JSP webshell.
### Toolset#### WolfsBaneWolfsBane components and chain of execution are depicted in Figure 4.![Figure 4. WolfsBane execution chain](https://web-assets.esetstatic.com/wls/2024/11-2024/wolfsbane/figure-4.jpeg ‘Figure 4. WolfsBane execution chain’) *Figure 4. WolfsBane execution chain*##### Stage 1: WolfsBane dropperThe dropper for WolfsBane was found in a file named cron, mimicking the [legitimate command scheduling tool](https://en.wikipedia.org/wiki/Cron). Upon execution, it first places the launcher and the primary backdoor in the $HOME/.Xl1 hidden directory (note the use of the letter l), created by the dropper. The directory is most likely deliberately named to resemble X11 — a commonly used folder name in the [X Window System](https://en.wikipedia.org/wiki/X_Window_System).The dropper then establishes persistence based on the system’s configuration and execution context:If executed as root:* Checks for the presence of the systemd suite.* If systemd is present, writes the file /lib/systemd/system/display-managerd.service with the path to the next stage (WolfsBane launcher) as the ExecStart entry (see Figure 5). This ensures the launcher runs as a system service, because .service files in this folder are parsed during system startup.* Disables the [SELinux](https://www.redhat.com/en/topics/linux/what-is-selinux) security module by changing the SELINUX entry in the SELinux configuration file from enforcing to disabled. [Unit] Description=Display-Manager [Service] Type=simple ExecStart= [Install] WantedBy=multi-user.targetComment*Figure 5. Content of the* display-managerd.service*file*If systemd is not present, the dropper writes a simple bash script that executes the launcher (Figure 6), to a file named S60dlump into all rc-[1-5-].d startup folders. #!/bin/bash /usr/bin/.Xl1/kde*Figure 6. Script executing WolfsBane launcher*If executed as an unprivileged user on a Debian-based system, it:* writes a similar bash script to the profile.sh file, and* adds the command /home/www/.profile.sh 2->/dev/null to .bashrc and .profile files in the user’s home folder, ensuring that the Wolfsbane launcher starts automatically after the victim logs in.For other Linux distributions it creates the same profile.sh file but adds its path only to .bashrc.Additionally, if the dropper is executed with root privileges, it drops the WolfsBane Hider rootkit as /usr/lib/libselinux.so and adds this command to /etc/ld.so.preload, ensuring that the rootkit library loads into all processes.Finally, the dropper removes itself from the disk and executes the next stage — the launcher.##### Stage 2: WolfsBane launcherA small binary named kde is used to maintain persistence, cleverly disguised as a legitimate [KDE desktop component](https://en.wikipedia.org/wiki/KDE) to avoid detection and maintain persistence. Regardless of establishment method, the aim is to execute this binary, whose main function is to parse its embedded configuration and initiate the next stage — the WolfsBane backdoor — from the specified file in the configuration.##### Stage 3: WolfsBane backdoorThe WolfsBane backdoor, stored in a file named udevd, begins by loading an embedded library and calling its main_session export, which contains the main backdoor functionalities. This library, named by its authors as libMainPlugin.so, is analogous to the MainPlugin.dll used in the Windows version of the Gelsevirine backdoor.Similar to its Windows version, the WolfsBane backdoor uses other embedded libraries for network communication. In the samples we’ve collected, they are named libUdp.so and libHttps.so, and both export the symbol create_seesion (the spelling mistake is exactly the same as in the Windows version of the Gelsevirine TCP module). These shared libraries provide C-&C communications via UDP and HTTPS protocols, respectively.The backdoor encrypts the libMainPlugin.so library using the RC4 algorithm (with the key obtained from the pluginkey value in the configuration) and saves it to -/X1l/data/gphoto2. On subsequent executions, the backdoor first checks for this file: if it exists, the file is decrypted and loaded instead of the embedded libMainPlugin.so. This mechanism allows the backdoor to be updated by overwriting the file.The WolfsBane backdoor uses a similar approach to its Windows counterpart for executing commands received from its C-&C server.##### WolfsBane Hider rootkitWolfsBane backdoor uses a modified open-source [BEURK](https://github.com/unix-thrust/beurk/tree/dev) userland rootkit to hide its activities. Located in /usr/lib/libselinux.so, this rootkit abuses the operating system’s preload mechanism to load into new processes before other libraries by adding its path to the /etc/ld.so.preload file, thus enabling its functions to hook the original ones.The WolfsBane Hider rootkit hooks many basic standard C library functions such as open, stat, readdir, and access. While these hooked functions invoke the original ones, they filter out any results related to the WolfsBane malware. Unlike the original BEURK rootkit, which uses an embedded configuration file for filtering, the WolfsBane developers retained the default configuration but modified the source code to exclude information related to the hardcoded filenames of the malware executables udevd and kde. Additionally, the original BEURK rootkit’s network traffic-hiding features are absent.#### FireWood backdoorThe FireWood backdoor, in a file named dbus, is the Linux OS continuation of the Project Wood malware, as noted in the [*Attribution and connection*](#Attribution and connection) section. The analyzed code suggests that the file usbdev.ko is a kernel driver module working as a rootkit to hide processes. The FireWood backdoor communicates with the kernel drivers using the [Netlink protocol](https://en.wikipedia.org/wiki/Netlink).FireWood uses a configuration file named kdeinit that is XOR encrypted with the single-byte key 0x26. The configuration file’s structure is detailed in Table 2.*Table 2. Selected offsets and their corresponding values from the FireWood backdoor configuration file*
**Offset** **Value** **Meaning** 0x00 20190531110402 Unknown timestamp. 0x28 AAAAAAAAAA Placeholder for backdoor working directory. 0x3C 0.0.0.0 C-&C IP address (if 0.0.0.0, the backdoor uses the C-&C domain). 0x66 asidomain-[.-]com C-&C domain. 0xCC -[scsi_eh_7-] Spoofed process name. 0x164 0x072BA1E6 TEA encryption key. 0x1E0 4 Connection day (backdoor connects every fourth day of the month). 0x1E4 5 Delay time. 0x1E8 0x0474 Connection time (in minutes).
FireWood renames its process based on the value in the configuration.To establish persistence on the system, it creates a file named /.config/autostart/gnome-control.desktop. During startup, all files with a .desktop extension in the /.config/autostart/ directory are parsed, and any commands listed in the Exec entry are executed. The contents of the gnome-control.desktop file can be seen in Figure 7. [Desktop Entry] Type=Application Exec= Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en_US]=gnome-calculator Name=gnome-control Comment[en_US]=*Figure 7. Contents of the* gnome-control.desktop*file used for persistence by the FireWood backdoor*FireWood communicates with its C-&C server via TCP, as specified in its configuration. All data is encrypted using the TEA encryption algorithm with a variable number of rounds. The encryption key and number of rounds are provided in the FireWood configuration file, as shown back in Table 2.The structure of sent and received messages is shown in Figure 8. The outcome of executing a command varies depending on the command type, but typically, 0x10181 indicates success, while 0x10180 denotes an error. struct data{ DWORD commandID_or_return_code_value ; BYTE data []; }*Figure 8. Data. structure for C-&C communications used by FireWood backdoor*This backdoor is capable of executing several commands, as described in Table 3.*Table 3. FireWood backdoor commands*
**Command ID** **Description** 0x105 Download an executable file from the C-&C to -/tmpWood and execute it with the ‌-UPDATE parameter. 0x110 Execute a shell command using the popen function. 0x111 Change connection time value in the configuration. 0x112 Hide a process using the usbdev.ko kernel module. 0x113 Change delay time in configuration. 0x114 Change connection day value in configuration. 0x132 Clean up and exit. 0x181 List contents of the specified directory. 0x182 Exfiltrate specified file to C-&C server. 0x183 Delete specified file. 0x184 Rename specified file. 0x185 Execute specified file using the system function. 0x186 Download file from C-&C server. 0x189 Exfiltrate specified folder to C-&C server. 0x193 Load specified kernel module or shared library. 0x194 Unload specified kernel module or shared library. 0x19F Modify specified file timestamp. 0x200 Delete specified directory. 0x201 Read content of the specified file and send it to the C-&C server. 0x1018F Search for the specified file in the folder defined in the command.
#### Other toolsWe discovered two additional tools in the archives, which could be related to Gelsemium activity: the SSH password stealer and a small privilege escalation tool.The SSH password stealer is an SSH client based on the open-source [OpenSSH](https://www.openssh.com/) software, modified to collect users’ SSH credentials necessary for authenticating the user’s access to a server. The adversaries replaced the original SSH client binary in /usr/bin/ssh with a trojanized version. While it functions as a normal SSH client, it saves all login data in the format -@—t- into the file /tmp/zijtkldse.tmp.The privilege escalation tool is a small binary, named ccc, that just escalates user privileges by setting UID and GUID of the execution context to 0 and executes a program at a path received as an argument. To perform this technique, the user must have root privileges to add SUID permission to this executable in advance, making it a tool for maintaining privileges rather than for obtaining them.#### WebshellsThe login.jsp is a modified [AntSword JSP](https://github.com/AntSwordProject/AntSword-JSP-Template) webshell that executes Java bytecode from attackers. The payload, a Java class file, is base64 encoded in the tiger parameter of an HTTP POST request. The original webshell also supports remote terminal, file operations, and database operations.The yy1.jsp webshell, which we identified as icesword JSP, is sourced from internet forums, primarily those in Chinese. The icesword JSP webshell features a complete graphical user interface within its server-side code, allowing it to render a GUI in the attacker’s browser. It is not obfuscated and collects system information, executes system commands, and performs file operations. It also connects to SQL databases on the compromised host and executes SQL queries.The a.jsp webshell, similar to login.jsp but obfuscated, carries a binary Java payload that is AES encrypted with the key 6438B9BD2AB3C40A and then base64 encoded. The payload is provided in the Tas9er parameter. The obfuscation includes garbage comments, –u-escaped Unicode strings (which are made harder to read), and random string variables and function names. The result, base64 encoded and inserted into the string 1F2551A37335B564-8EF53BE997851B95, is sent to the attackers in the response body.Conclusion———-This report describes the Linux malware toolset and its connections with Windows malware samples utilized by the Gelsemium APT group. We have focused on capabilities of WolfsBane and FireWood backdoors, and analyzed WolfsBane execution chain and its utilization of the userland rootkit. This is the first public report documenting Gelsemium’s use of Linux malware, marking a notable shift in their operational strategy.The trend of malware shifting towards Linux systems seems to be on the rise in the APT ecosystem. From our perspective, this development can be attributed to several advancements in email and endpoint security. The ever-increasing adoption of EDR solutions, along with Microsoft’s default strategy of disabling VBA macros, are leading to a scenario where adversaries are being forced to look for other potential avenues of attack.As a result, the vulnerabilities present in internet-facing infrastructure, particularly those systems that are Linux-based, are becoming increasingly targeted. This means that these Linux systems are becoming the new preferred targets for these adversaries.> *For any inquiries about our research published on WeLiveSecurity, please contact us at [threatintel@eset.com](mailto:threatintel@eset.com?utm_source=welivesecurity.com&utm_medium=referral&utm_campaign=autotagging&utm_content=eset-research&utm_term=en).* > *ESET Research offers private APT intelligence reports and data feeds. For any inquiries about this service, visit the [ESET Threat Intelligence](https://www.eset.com/int/business/services/threat-intelligence/?utm_source=welivesecurity.com&utm_medium=referral&utm_campaign=wls-research&utm_content=unveiling-wolfsbane-gelsemiums-linux-counterpart-to-gelsevirine&sfdccampaignid=7011n0000017htTAAQ) page.*IoCs—-A comprehensive list of indicators of compromise (IoCs) and samples can be found in [our GitHub repository](https://github.com/eset/malware-ioc/tree/master/gelsemium).### Files
**SHA-1** **Filename** **Detection** **Description** 0FEF89711DA11C550D3914DEBC0E663F5D2FB86C dbus Linux/Agent.WF FireWood backdoor. 44947903B2BC760AC2E736B25574BE33BF7AF40B libselinux.so Linux/Rootkit.Agent.EC WolfsBane Hider rootkit. 0AB53321BB9699D354A032259423175C08FEC1A4 udevd Linux/Agent.WF WolfsBane backdoor. 8532ECA04C0F58172D80D8A446AE33907D509377 kde Linux/Agent.WF WolfsBane launcher. B2A14E77C96640914399E5F46E1DEC279E7B940F cron Linux/Agent.WF WolfsBane dropper. 209C4994A42AF7832F526E09238FB55D5AAB34E5 ccc Linux/Agent.WF Privilege escalation helper tool. F43D4D46BAE9AD963C2EB05EF43E90AA3A5D88E3 ssh Linux/SSHDoor.IC Trojanized SSH client. FD601A54BC622C041DF0242662964A7ED31C6B9C a.jsp Java/Agent.BP JSP webshell. 9F7790524BD759373AB57EE2AAFA6F5D8BCB918A yy1.jsp Java/JSP.J icesword webshell. 238C8E8EB7A732D85D8A7F7CA40B261D8AE4183D login.jsp Java/Webshell.AM Modified AntSword JSP webshell. F1DF0C5A74C9885CB5934E3EEE5E7D3CF4D291C0 virus.tgz Linux/Agent.WF VirusTotal archive. B3DFB40336C2F17EC74051844FFAF65DDB874CFC virus-b.tgz Linux/Agent.WF VirusTotal archive. 85528EAC10090AE743BCF102B4AE7007B6468255 CHINA-APT-Trojan.zip Java/Agent.BP VirusTotal archive. CDBBB6617D8937D17A1A9EF12750BEE1CDDF4562 CHINA-APT-Trojan.zip Linux/Rootkit.Agent.EC VirusTotal archive. 843D6B0054D066845628E2D5DB95201B20E12CD2 CHINA-APT-Trojan.zip Linux/Rootkit.Agent.EC VirusTotal archive. BED9EFB245FAC8CFFF8333AE37AD78CCFB7E2198 Xl1.zip Linux/Rootkit.Agent.EC VirusTotal archive. 600C59733444BC8A5F71D41365368F3002465B10 CHINA-APT-Trojan.zip Linux/Rootkit.Agent.EC VirusTotal archive. 72DB8D1E3472150C1BE93B68F53F091AACC2234D virus.tgz Linux/Agent.WF VirusTotal archive.
### Network
**IP** **Domain** **Hosting provider** **First seen** **Details** N/A dsdsei-[.-]com N/A 2020 – 08 – 16 WolfsBane backdoor C-&C server. N/A asidomain-[.-]com N/A 2022 – 01 – 26 FireWood backdoor C-&C server.
MITRE ATT-&CK techniques————————This table was built using [version 15](https://attack.mitre.org/resources/versions/) of the MITRE ATT-&CK framework.
**Tactic****ID****Name****Description****Resource Development**[T1583.001](https://attack.mitre.org/versions/v15/techniques/T1583/001)Acquire Infrastructure: DomainsGelsemium has registered domains through commercial providers.[T1583.004](https://attack.mitre.org/versions/v15/techniques/T1583/004)Acquire Infrastructure: ServerGelsemium most likely acquires VPS from commercial providers.[T1587.001](https://attack.mitre.org/versions/v15/techniques/T1587/001)Develop Capabilities: MalwareGelsemium develops its own custom malware.**Execution**[T1059.004](https://attack.mitre.org/versions/v15/techniques/T1059/004)Command-Line Interface: Unix ShellGelsemium malware is capable of executing Linux shell commands.**Persistence**[T1037.004](https://attack.mitre.org/versions/v15/techniques/T1037/004)Boot or Logon Initialization Scripts: RC ScriptsThe WolfsBane launcher remains persistent on the system by using RC startup scripts.[T1543.002](https://attack.mitre.org/versions/v15/techniques/T1543/002)Create or Modify System Process: Systemd ServiceThe WolfsBane dropper can create a new system service for persistence.[T1574.006](https://attack.mitre.org/versions/v15/techniques/T1574/006)Hijack Execution Flow: Dynamic Linker HijackingThe WolfsBane Hider rootkit abuses the ld.so.preload preload technique.[T1547.013](https://attack.mitre.org/versions/v15/techniques/T1547/013)Boot or Logon Autostart Execution: XDG Autostart EntriesThe FireWood backdoor persists on the system by creating the gnome-control.desktop autostart file.**Privilege Escalation**[T1546.004](https://attack.mitre.org/versions/v15/techniques/T1546/004)Event Triggered Execution: .bash_profile and .bashrcThe WolfsBane dropper tampers with various shell configuration files to achieve persistence.[T1548.001](https://attack.mitre.org/versions/v15/techniques/T1548/001)Abuse Elevation Control Mechanism: Setuid and SetgidGelsemium uses a simple tool abusing setuid and setguid for keeping escalated privileges.**Defense Evasion**[T1070.004](https://attack.mitre.org/versions/v15/techniques/T1070/004)Indicator Removal: File DeletionThe WolfsBane dropper removes itself.[T1070.006](https://attack.mitre.org/versions/v15/techniques/T1070/006)Indicator Removal: TimestompThe FireWood backdoor has a command for modifying the MAC time of files.[T1070.009](https://attack.mitre.org/versions/v15/techniques/T1070/009)Indicator Removal: Clear PersistenceThe WolfsBane dropper removes itself from disk.[T1564.001](https://attack.mitre.org/versions/v15/techniques/T1564/001)Hide Artifacts: Hidden Files and DirectoriesBoth the WolfsBane and FireWood backdoors are located/installed in hidden folders.[T1222.002](https://attack.mitre.org/versions/v15/techniques/T1222/002)File Permissions Modification: Linux and Mac File and Directory Permissions ModificationThe WolfsBane dropper uses Linux chmod commands to modify permissions of dropped executables.[T1027.009](https://attack.mitre.org/versions/v15/techniques/T1027/009)Obfuscated Files or Information: Embedded PayloadsThe WolfsBane dropper has all its payloads compressed and embedded.[T1014](https://attack.mitre.org/versions/v15/techniques/T1014)RootkitBoth WolfsBane and FireWood malware utilize rootkits for evasion.[T1036.005](https://attack.mitre.org/versions/v15/techniques/T1036/005)Masquerading: Match Legitimate Name or LocationGelsemium often names its malware to match legitimate files and folders.**Discovery**[T1082](https://attack.mitre.org/versions/v15/techniques/T1082)System Information DiscoveryThe WolfsBane dropper enumerates system information.[T1083](https://attack.mitre.org/versions/v15/techniques/T1083)File and Directory DiscoveryThe FireWood backdoor is capable of searching in the machine file system for specified files and folders.**Collection**[T1056](https://attack.mitre.org/versions/v15/techniques/T1056)Input CaptureThe SSH password stealer captures user credentials.**Exfiltration**[T1041](https://attack.mitre.org/versions/v15/techniques/T1041)Exfiltration Over C2 ChannelThe FireWood backdoor exfiltrates collected data utilizing C-&C communications.
![](https://web-assets.esetstatic.com/wls/2023/2023-12/welivesecurity-eset-threat-intelligence.jpeg) *** ** * ** ***Let us keep youup to date—————————–Sign up for our newsletters Ukraine Crisis newsletter Regular weekly newsletter Subscribe #### Related Articles*** ** * ** ***[ESET ResearchESET Research Podcast: Gamaredon![ESET Research Podcast: Gamaredon](https://web-assets.esetstatic.com/tn/-x145/wls/2024/11-2024/cyberespionage-gamaredon-way.jpeg)ESET ResearchESET Research Podcast: Gamaredon](/en/podcasts/eset-research-podcast-gamaredon/ ‘ESET Research Podcast: Gamaredon’) *** ** * ** ***[ESET ResearchLife on a crooked RedLine: Analyzing the infamous infostealer’s backend![Life on a crooked RedLine: Analyzing the infamous infostealer’s backend](https://web-assets.esetstatic.com/tn/-x145/wls/2024/11-2024/redline/redline-stealer-infostealer-malware.jpeg)ESET ResearchLife on a crooked RedLine: Analyzing the infamous infostealer’s backend](/en/eset-research/life-crooked-redline-analyzing-infamous-infostealers-backend/ ‘Life on a crooked RedLine: Analyzing the infamous infostealer’s backend’) *** ** * ** ***[ESET Research, Threat ReportsESET APT Activity Report Q2 2024–Q3 2024![ESET APT Activity Report Q2 2024-Q3 2024](https://web-assets.esetstatic.com/tn/-x145/wls/2024/10-2024/eset-apt-activity-report-q22024-q32024.jpeg)ESET Research, Threat ReportsESET APT Activity Report Q2 2024–Q3 2024](/en/eset-research/eset-apt-activity-report-q2-2024-q3-2024/ ‘ESET APT Activity Report Q2 2024-Q3 2024’) ### Similar Articles[ESET researchNSPX30: A sophisticated AitM-enabled implant evolving since 2005![NSPX30: A sophisticated AitM-enabled implant evolving since 2005](https://web-assets.esetstatic.com/tn/-x82/wls/2024/1-2024/nspx30/nspx30-aitm-implant-blackwood-apt-eset-threat-research.jpeg)](/en/eset-research/nspx30-sophisticated-aitm-enabled-implant-evolving-since-2005/ ‘NSPX30: A sophisticated AitM-enabled implant evolving since 2005’)*** ** * ** ***[ESET researchOperation NightScout: Supply-chain attack targets online gaming in Asia![Operation NightScout: Supply-chain attack targets online gaming in Asia](https://web-assets.esetstatic.com/tn/-x82/wls/2021/02/operation-nightscout-gaming-asia-supply-chain.jpg)](/2021/02/01/operation-nightscout-supply-chain-attack-online-gaming-asia/ ‘Operation NightScout: Supply-chain attack targets online gaming in Asia’)*** ** * ** ***[ESET researchGelsemium: When threat actors go gardening![Gelsemium: When threat actors go gardening](https://web-assets.esetstatic.com/tn/-x82/wls/2021/06/gelsemium-apt-eset-malware-research.jpg)](/2021/06/09/gelsemium-when-threat-actors-go-gardening/ ‘Gelsemium: When threat actors go gardening’)*** ** * ** ***### Share Article[](https://www.facebook.com/sharer/sharer.php?u=https://www.welivesecurity.com/en/eset-research/unveiling-wolfsbane-gelsemiums-linux-counterpart-to-gelsevirine/ ‘Facebook’) [](https://www.linkedin.com/shareArticle?mini=true&url=https://www.welivesecurity.com/en/eset-research/unveiling-wolfsbane-gelsemiums-linux-counterpart-to-gelsevirine/ ‘LinkedIn’) [](https://twitter.com/intent/tweet?url=https://www.welivesecurity.com/en/eset-research/unveiling-wolfsbane-gelsemiums-linux-counterpart-to-gelsevirine/ ‘Twitter’) [](mailto:?&subject=I wanted you to see this site&body=https://www.welivesecurity.com/en/eset-research/unveiling-wolfsbane-gelsemiums-linux-counterpart-to-gelsevirine/ ‘mail’) [](https://www.welivesecurity.com/en/eset-research/unveiling-wolfsbane-gelsemiums-linux-counterpart-to-gelsevirine/ ‘copy’) ![Apt Activity Report](https://www.welivesecurity.com/build/assets/eset-apt-activity-report-q2-2024-q3-2024-d75a59c4.webp) ### Discussion

Related Tags:
NAICS: 54 – Professional

Scientific

Technical Services

NAICS: 541 – Professional

Scientific

Technical Services

Gelsemine

Gelsenicine

Gelsemium

Gelsevirine

TA0042 – Resource Development

TA0010 – Exfiltration

TA0005 – Defense Evasion

Associated Indicators:
85528EAC10090AE743BCF102B4AE7007B6468255

F43D4D46BAE9AD963C2EB05EF43E90AA3A5D88E3

F1DF0C5A74C9885CB5934E3EEE5E7D3CF4D291C0

ED5342D9788392C6E854AAEFA655C4D3B4831B6B

BED9EFB245FAC8CFFF8333AE37AD78CCFB7E2198

0FEF89711DA11C550D3914DEBC0E663F5D2FB86C

238C8E8EB7A732D85D8A7F7CA40B261D8AE4183D

CDBBB6617D8937D17A1A9EF12750BEE1CDDF4562

asidomain.com