Skip to main content
Mallory
MalwareUsed by 2 actors

Waterbear

WaterBear is a long-running backdoor malware family active since at least 2009 and associated with the China-linked cyber-espionage group BlackTech, also referred to in Trend Micro reporting as Earth Hundun. Reporting cited in the content states the family has had more than 10 versions, with multiple versions able to coexist in the same victim environment. WaterBear has been observed targeting organizations in the Asia-Pacific region, including technology, government, and research sectors, and it was also listed by U.S. and Japanese agencies among custom malware used in BlackTech operations targeting Cisco router environments.

The malware is described as a multifaceted stage-two implant / RAT with capabilities including file transfer and file operations, remote shell access, screenshots and screen capture, remote desktop, registry operations, and process and service manipulation. WaterBear has used DLL side-loading to import and load a malicious DLL loader, and some loaders have stored an encrypted downloader in the Windows Registry and used CryptUnprotectData so the payload is decryptable only on the infected machine. The content also states WaterBear has deleted certain Registry values to load a malicious DLL.

Observed behaviors include querying the Registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSDTC\MTxOCI to check whether the OracleOcilib value exists; finding the presence of specific security software; hooking ZwOpenProcess and GetExtendedTcpTable APIs to hide PIDs and TCP records from security products; leveraging API functions for execution; injecting decrypted shellcode into the LanmanServer service; and scrambling functions with random values after execution so they are not executed again, consistent with anti-analysis and anti-detection tradecraft.

Trend Micro reporting in the content describes WaterBear loaders as commonly using a custom salted RC4 decryption routine with obfuscation, while some variants use registry-stored encrypted downloaders. WaterBear downloader traffic uses a custom protocol with a 10-byte header and salted RC4 encryption, with configuration supporting up to three XOR-obfuscated C2 addresses. The downloader generates a 16-byte KEY_RANDOM and uses it with additional keys in a staged C2 exchange to retrieve the next-stage RAT. Additional cited indicators include a downloader sample SHA-256 6b9a14d4d9230e038ffd9e1f5fd0d3065ff0a78b52ab338644462864740c2241 and use of 192.168.11[.]2 as a C2 server in one sample.

The content also notes strong code and behavioral correlation between WaterBear and BendyBear, a related downloader assessed by Unit 42 to be strongly tied to the WaterBear family. Overall, WaterBear is characterized in the provided material as a mature espionage backdoor family with extensive anti-analysis, stealth, registry interaction, process injection, and remote access functionality.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

THREAT ACTORS

Groups observed using it

2 distinct threat actors attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
BlackTech

the agencies said they have observed multiple Cisco versions targeted with custom malware, including BendyBear, Bifrose, BTSDoor FakeDead (a.k.a. TSCookie), Flagpro, FrontShell (FakeDead’s downloader module) IconDown PLEAD, SpiderPig, SpiderSpring, SpiderStack and WaterBear.

via the record mediatherecord.media
Earth Hundun

"...including Waterbear, a malware entity that has had over 10 versions since 2009."

via trend micro researchtrendmicro.com
MITRE ATT&CK

Techniques & procedures

30 distinct techniques documented for this family, organized by ATT&CK tactic.

T1584.001DomainsEvidence1

A sophisticated hacking group tied to the government of China is exploiting routers in attacks on a variety of organizations... The group specifically targets “branch routers” — smaller appliances used at more remote branch offices to connect to a corporate headquarters.

Execution

2 techniques
T1106Native APIEvidence2
TacticExecution

“Dynamically loads the APIs through the shellcode”

T1129Shared ModulesEvidence1
TacticExecution

“Dynamically loads the DLLs through the shellcode”

Persistence

3 techniques
T1112Modify RegistryEvidence4

The content repeatedly describes threat actors and malware modifying, creating, deleting, or storing data in Windows Registry keys and values for persistence, configuration storage, defense evasion, credential access, privilege escalation, and execution.

T1547.012Print ProcessorsEvidence1

“Abuses print processors to run malicious DLLs during system”

T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

T1055Process InjectionEvidence4

The content repeatedly describes malware and threat actors injecting shellcode, DLLs, or payloads into legitimate processes such as svchost.exe, explorer.exe, iexplore.exe, cmd.exe, lsass.exe, and browser processes.

T1547.012Print ProcessorsEvidence1

“Abuses print processors to run malicious DLLs during system”

Stealth

11 techniques
T1027Obfuscated Files or InformationEvidence4
TacticStealth

The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.

T1027.001Binary PaddingEvidence1
TacticStealth

“bypass antivirus software adding a large amount of padding with 0x00 around the beginning and end to avoid detection.”

T1027.002Software PackingEvidence1
TacticStealth

Transmits payloads in modified RC4-encrypted chunks... Table 1 ... Payloads in modified RC4-encrypted chunks ... T1027.002: Obfuscated Files or Information: Software Packing

T1027.013Encrypted/Encoded FileEvidence1
TacticStealth

Examples throughout the content include 'encrypted payloads decrypted and executed in memory,' 'encrypts its configuration file,' 'AES-encrypted resource,' 'RC4 encrypted embedded scripts,' and 'payload includes an encrypted main component.'

T1036.005Match Legitimate Resource Name or LocationEvidence1
TacticStealth

“Makes the patched executable that appears legitimate or benign to users and/or security tools”

T1055Process InjectionEvidence4

The content repeatedly describes malware and threat actors injecting shellcode, DLLs, or payloads into legitimate processes such as svchost.exe, explorer.exe, iexplore.exe, cmd.exe, lsass.exe, and browser processes.

T1070Indicator RemovalEvidence2
TacticStealth

Bisonal has deleted Registry keys to clean up its prior activity. FIN8 has deleted Registry keys during post compromise cleanup activities. SUNBURST also deleted previously-created Image File Execution Options (IFEO) Debugger registry values and registry keys related to HTTP proxy to clean up traces of its activity.

T1140Deobfuscate/Decode Files or InformationEvidence4
TacticStealth

The content repeatedly describes malware and threat actors decoding, decrypting, or deobfuscating payloads, strings, configuration data, commands, and C2 traffic prior to execution or use, e.g., 'APT28 macro uses the command certutil -decode to decode contents of a .txt file storing the base64 encoded payload' and 'Action RAT can use Base64 to decode actor-controlled C2 server communications.'

T1497.003Time Based ChecksEvidence1

During execution, the code employs byte randomization... using the host’s current time as a seed... ~65 calls to Windows API kernel32!GetTickCount... T1497.003: Time Based Evasion

T1564Hide ArtifactsEvidence1
TacticStealth

Waterbear 'can hook the ZwOpenProcess and GetExtendedTcpTable APIs called by the process of a security product to hide PIDs and TCP records from detection.'

T1622Debugger EvasionEvidence1

“checks the debugger mode” and “Checking debugger mode by process time”

Defense Impairment

2 techniques
T1112Modify RegistryEvidence4

The content repeatedly describes threat actors and malware modifying, creating, deleting, or storing data in Windows Registry keys and values for persistence, configuration storage, defense evasion, credential access, privilege escalation, and execution.

T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

T1556Modify Authentication ProcessEvidence1

Specifically, upon gaining an initial foothold into a target network and gaining administrator access to network edge devices, BlackTech cyber actors often modify the firmware to hide their activity across the edge devices to further maintain persistence in the network.

Discovery

8 techniques
T1012Query RegistryEvidence4
TacticDiscovery

The content repeatedly describes malware and threat actors querying, enumerating, searching, reading, or checking Windows Registry keys and values, e.g., "ADVSTORESHELL can enumerate registry keys," "APT41 queried registry values to determine items such as configured RDP ports and network configurations," and "Reg may be used to gather details from the Windows Registry of a local or remote system at the command-line interface."

T1016.001Internet Connection DiscoveryEvidence1
TacticDiscovery

“Downloaders check for internet connectivity on compromised systems.”

T1049System Network Connections DiscoveryEvidence1
TacticDiscovery

“Waterbear RAT lists network connections… by querying for information over the network.”

T1057Process DiscoveryEvidence3
TacticDiscovery

The content repeatedly describes malware and threat actors obtaining lists of running processes, using utilities such as tasklist, ps, WMI, Get-Process, CreateToolhelp32Snapshot, EnumProcesses, and similar APIs/commands to enumerate active processes on victim systems.

T1082System Information DiscoveryEvidence2
TacticDiscovery

The shellcode begins by locating the target’s Process Environment Block (PEB) to check if it’s currently being debugged... This routine is performed 52 times... Table 1 ... T1082: System Information Discovery

T1083File and Directory DiscoveryEvidence1
TacticDiscovery

“RAT searches files and directories or in specific locations.”

T1497.003Time Based ChecksEvidence1

During execution, the code employs byte randomization... using the host’s current time as a seed... ~65 calls to Windows API kernel32!GetTickCount... T1497.003: Time Based Evasion

T1622Debugger EvasionEvidence1

“checks the debugger mode” and “Checking debugger mode by process time”

T1071.001Web ProtocolsEvidence1

“Downloaders communicate with C&C by HTTP/HTTPS” and “Deuterbear downloader enables HTTPS tunnel”

T1105Ingress Tool TransferEvidence1

The BendyBear sample was determined to be x64 shellcode for a stage-zero implant whose sole function is to download a more robust implant from a command and control (C2) server... Table 1 ... Payload transfer from remote host ... T1105: Ingress Tool Transfer

T1132.002Non-Standard EncodingEvidence1

“Encodes traffic with a non-standard RC4 to make the content of traffic more difficult to detect”

T1573Encrypted ChannelEvidence1

“Employs a RC4/RSA to conceal command and control traffic” and “The downloader… generate an RSA… [then] RC4_KEY_1 and RC4_KEY_2… encrypted by RSA”

T1573.002Asymmetric CryptographyEvidence1

Obscures its connection protocol by connecting to the C2 server over a common port (443)... Table 1 ... Command and Control ... T1573.002: Encrypted Channel: Asymmetric Cryptography

Exfiltration

1 technique
T1041Exfiltration Over C2 ChannelEvidence1

“Sends collected data to C&C”

Other

1 technique
T1562Impair DefensesEvidence1

The content repeatedly describes threat actors and malware disabling or modifying security tools, EDR/AV, logging, firewall rules, integrity checkers, and security settings; e.g., 'Agrius used several mechanisms to try to disable security tools' and 'BlackByte disabled security tools such as Windows Defender and the Raccine anti-ransomware tool during operations.'

INDICATORS OF COMPROMISE

IOCs tracked for this family

8 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
1 tracked

IPs, domains, and DNS infrastructure linked to this family.

Hashes
7 tracked

File hashes (MD5, SHA-1, SHA-256) from samples and reports.

TypeValueLatest sighting
hash.sha256●●●●●●●●●●●●View more in app2 years ago
domain●●●●●●●●●●●●View more in app5 years ago
hash.sha256●●●●●●●●●●●●View more in app5 years ago
hash.sha256●●●●●●●●●●●●View more in app5 years ago
hash.sha256●●●●●●●●●●●●View more in app5 years ago
hash.sha256●●●●●●●●●●●●View more in app5 years ago
ACTIVITY FEED

Recent activity

20 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching8

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution2

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping30

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.