SOMNIRECORD
- Type
- Backdoor
- Capabilities
- ExfiltrationDefense evasionReconnaissancePost exploitation
- Platforms
- Windows
SOMNIRECORD is a C++ Windows backdoor associated with the REF2924 intrusion set, a state-sponsored, espionage-motivated cluster assessed as China-nexus. It uses DNS as its command-and-control transport, retrieving queued commands from DNS TXT records and returning hex-encoded command output through DNS queries, allowing its traffic to blend with DNS and potentially bypass egress filtering and network monitoring controls. SOMNIRECORD generates a per-instance identifier, supports host discovery and running-process enumeration, executes programs already present on the compromised host, and permits operators to adjust its beacon interval. It can also write a hard-coded ASPX web shell to an operator-selected location. Its implementation has been assessed as adapted from logic resembling the open-source DNS-Persist project. SOMNIRECORD has been observed alongside SIESTAGRAPH, NAPLISTENER, and DOORME in REF2924 operations affecting government environments.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
This environment has already seen the emergence of the REF2924 intrusion set (SIESTAGRAPH, NAPLISTENER, SOMNIRECORD, and DOORME).
Techniques & procedures
7 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
“ECM” allows the malware to execute any software already present on the system, such as cmd.exe.
Persistence
1 technique
Persistence
“WS” is used to deploy an ASPX-based webshell to a specified path. The ASPX is hardcoded into the malware itself.
Discovery
2 techniques
Discovery
“PSL” is used to list all processes currently running on the infected machine by executing the system command “tasklist”.
“SYS” is used to retrieve information about the infected machine... collects information about the computer name, the number of processors, OEM ID, and processor type.
Command and Control
2 techniques
Command and Control
SOMNIRECORD communicates with command and control (C2) while masquerading as DNS... The backdoor retrieves each command individually by sending a DNS query for a TXT record.
SOMNIRECORD... encod[es] the output of executed commands as hex values... [and] performs a DNS query to the subdomain, allowing the encoded command output to be transmitted to the C2 server.
Exfiltration
1 technique
Exfiltration
The malware then performs a DNS query to the subdomain, allowing the encoded command output to be transmitted to the C2 server.
Observables
2 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.