Chinese hackers target Linux with new WolfsBane malware

Share:

A new Linux backdoor called ‘WolfsBane’ has been discovered, believed to be a port of Windows malware used by the Chinese ‘Gelsemium’ hacking group.

ESET security researchers who analyzed WolfsBane report that WolfsBane is a complete malware tool featuring a dropper, launcher, and backdoor, while it also uses a modified open-source rootkit to evade detection.

The researchers also discovered ‘FireWood,’ another Linux malware that appears linked to the ‘Project Wood’ Windows malware.

However, FireWood is more likely a shared tool used by multiple Chinese APT groups rather than an exclusive/private tool created by Gelsemium.

ESET says the two malware families, both appearing on VirusTotal over the last year, are part of a broader trend where APT groups increasingly target Linux platforms due to Windows security getting stronger.

“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.”

❖ ESET

WolfsBane’s stealthy howl

WolfsBane is introduced to targets via a dropper named ‘cron,’ which drops the launcher component disguised as a KDE desktop component.

Depending on the privileges it runs with, it disables SELinux, creates system service files, or modifies user configuration files to establish persistence.

The launcher loads the privacy malware component, ‘udevd,’ which loads three encrypted libraries containing its core functionality and command and control (C2) communication configuration.

WolfsBane's execution flow
WolfsBane’s execution flow
Source: ESET

Finally, a modified version of the BEURK userland rootkit is loaded via ‘/etc/ld.so.preload’ for system-wide hooking to help hide processes, files, and network traffic related to WolfsBane’s activities.

“The WolfsBane Hider rootkit hooks many basic standard C library functions such as openstatreaddir, and access,” explains ESET.

“While these hooked functions invoke the original ones, they filter out any results related to the WolfsBane malware.”

WolfsBane’s main operation is to execute commands received from the C2 server using predefined command-function mappings, which is the same mechanism as the one used in its Windows counterpart.

These commands include file operations, data exfiltration, and system manipulation, giving Gelsemium total control over compromised systems.

Command names on Linux (left) and Windows backdoors (right)
Command names on Linux (left) and Windows backdoors (right)
Source: ESET

FireWood overview

Though only loosely linked to Gelsemium, FireWood is another Linux backdoor that could enable versatile, long-term espionage campaigns.

Its command execution capabilities enable operators to perform file operations, shell command execution, library loading/unloading, and data exfiltration.

ESET identified a file named ‘usbdev.ko,’ which is suspected of operating as a kernel-level rootkit, providing FireWood with the ability to hide processes.

The malware sets its persistence on the host by creating an autostart file (gnome-control.desktop) in ‘.config/autostart/,’ while it can also include commands in this file to execute them automatically on system startup.

A comprehensive list of indicators of compromise associated with the two new Linux malware families and Gelsemium’s latest campaigns are available on this GitHub repository.

Bill Toulas

Leave a Comment

Your email address will not be published. Required fields are marked *

loader-image
London, GB
12:43 am, Feb 4, 2025
weather icon 7°C
L: 6° | H: 7°
clear sky
Humidity: 93 %
Pressure: 1023 mb
Wind: 5 mph WSW
Wind Gust: 10 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 7%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 7:34 am
Sunset: 4:54 pm
DailyHourly
Daily ForecastHourly Forecast
Today 9:00 pm
weather icon
6° | 7°°C 0.2 mm 20% 15 mph 95 % 1026 mb 0 mm/h
Tomorrow 9:00 pm
weather icon
4° | 8°°C 0 mm 0% 9 mph 86 % 1045 mb 0 mm/h
Thu Feb 06 9:00 pm
weather icon
2° | 8°°C 0 mm 0% 9 mph 86 % 1046 mb 0 mm/h
Fri Feb 07 9:00 pm
weather icon
2° | 6°°C 0 mm 0% 12 mph 92 % 1041 mb 0 mm/h
Sat Feb 08 9:00 pm
weather icon
1° | 4°°C 0.35 mm 35% 10 mph 89 % 1030 mb 0.15 mm/h
Today 3:00 am
weather icon
5° | 6°°C 0 mm 0% 6 mph 92 % 1024 mb 0 mm/h
Today 6:00 am
weather icon
6° | 6°°C 0 mm 0% 9 mph 95 % 1023 mb 0 mm/h
Today 9:00 am
weather icon
7° | 7°°C 0 mm 0% 11 mph 91 % 1022 mb 0 mm/h
Today 12:00 pm
weather icon
10° | 10°°C 0 mm 0% 13 mph 75 % 1022 mb 0 mm/h
Today 3:00 pm
weather icon
9° | 9°°C 0 mm 0% 15 mph 76 % 1021 mb 0 mm/h
Today 6:00 pm
weather icon
10° | 10°°C 0.2 mm 20% 12 mph 88 % 1022 mb 0 mm/h
Today 9:00 pm
weather icon
8° | 8°°C 0.2 mm 20% 10 mph 74 % 1026 mb 0 mm/h
Tomorrow 12:00 am
weather icon
6° | 6°°C 0 mm 0% 9 mph 82 % 1030 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€98,158.05
5.12%
Ethereum(ETH)
€2,769.47
1.56%
XRP(XRP)
€2.66
17.88%
Tether(USDT)
€0.97
0.15%
Solana(SOL)
€210.22
10.46%
USDC(USDC)
€0.97
0.00%
Dogecoin(DOGE)
€0.277536
12.79%
Shiba Inu(SHIB)
€0.000016
13.54%
Pepe(PEPE)
€0.000011
8.15%
Scroll to Top