MemFun
MemFun is a custom backdoor used in the long-running cyber espionage campaign tracked as CL-STA-1087, which has targeted military organizations in Southeast Asia since at least 2020. Reporting assesses the broader campaign with moderate confidence as China-aligned or China-nexus, although no specific threat group is publicly named. MemFun was deployed alongside the AppleChris backdoor and the Getpass credential harvester in operations focused on selective intelligence collection against military environments, including C4I-related systems, domain controllers, web servers, IT workstations, and executive assets.
MemFun is described as a modular, multi-stage payload that executes entirely in memory. Its infection chain includes an initial loader disguised as GoogleUpdate.exe, an in-memory downloader, and a final DLL payload retrieved from the command-and-control server at runtime. The malware uses multiple evasion and anti-forensic techniques, including timestomping, process hollowing into dllhost.exe, reflective DLL loading, memory zeroing, anti-debugging, token impersonation, and in-memory execution to reduce disk artifacts and hinder analysis. It also used a dead drop resolver via Pastebin to dynamically resolve command-and-control infrastructure, and reporting states that AppleChris and MemFun used custom HTTP verbs for C2 communications.
Additional technical details reported for MemFun include session-specific Blowfish encryption for payload retrieval, with one description noting a downloader request pattern using the /DL1 resource, headers such as "Get: 0" and "User-Agent: MyIE," and a 24-byte Blowfish key sent in the Cookie header to decrypt the final payload. High-confidence indicators directly mentioned in the content include the loader name GoogleUpdate.exe, process hollowing into dllhost.exe, and use of Pastebin-based dead drop resolution as part of the CL-STA-1087 toolset.
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.
They deployed two backdoors, AppleChris and MemFun, both using custom HTTP verbs and a dead drop resolver (DDR) via Pastebin to dynamically reach C2 servers.
Techniques & procedures
23 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
4 techniques
Execution
They used Windows Management Instrumentation (WMI) and native Windows .NET commands to spread malware to domain controllers, web servers, IT workstations, and executive systems
The cybersecurity vendor said it detected the intrusion set after identifying suspicious PowerShell execution, allowing the script to enter into a sleep state for six hours and then create reverse shells to a threat actor-controlled command-and-control (C2) server.
The campaign leveraged Windows Management Instrumentation (WMI) and native Windows .NET commands to deploy malware across critical infrastructure, including domain controllers, web servers, IT workstations, and executive systems.
performed DLL hijacking by placing malicious DLL files inside the system32 directory, registering them through legitimate Windows services to blend in.
Persistence
2 techniques
Persistence
Attackers created new Windows services
The cyber spies maintained persistence on an unmanaged endpoint, using scripts to create reverse shells to multiple C2 servers.
Privilege Escalation
5 techniques
Privilege Escalation
MemFun is launched by means of a multi-stage chain: an initial loader injects shellcode responsible for launching an in-memory downloader... Subsequently, it injects the main payload into the memory of a suspended process associated with "dllhost.exe" using a technique referred to as process hollowing.
MemFun used timestomping, process hollowing into dllhost.exe, and reflective DLL loading to stay hidden
The downloader performs token impersonation to steal and impersonate logged-on user credentials, allowing it to inherit user proxy settings and bypass network restrictions
Attackers created new Windows services
The cyber spies maintained persistence on an unmanaged endpoint, using scripts to create reverse shells to multiple C2 servers.
Stealth
10 techniques
Stealth
MemFun is launched by means of a multi-stage chain: an initial loader injects shellcode responsible for launching an in-memory downloader... Subsequently, it injects the main payload into the memory of a suspended process associated with "dllhost.exe" using a technique referred to as process hollowing.
MemFun used timestomping, process hollowing into dllhost.exe, and reflective DLL loading to stay hidden
It runs entirely in memory, using process hollowing, reflective DLL loading, and anti-forensic techniques like timestomping and memory zeroing.
MemFun used timestomping, process hollowing into dllhost.exe, and reflective DLL loading to stay hidden
The downloader performs token impersonation to steal and impersonate logged-on user credentials, allowing it to inherit user proxy settings and bypass network restrictions
It launches dllhost.exe in a suspended state and decrypts an embedded shellcode payload using the XOR key 0x25.
To bypass automated security systems, some of the malware variants employ sandbox evasion tactics at runtime. These variants trigger delayed execution through sleep timers of 30 seconds (EXE) and 120 seconds (DLL), effectively outlasting the typical monitoring windows of automated sandboxes.
performed DLL hijacking by placing malicious DLL files inside the system32 directory, registering them through legitimate Windows services to blend in.
MemFun used timestomping, process hollowing into dllhost.exe, and reflective DLL loading to stay hidden
The MemFun in-memory downloader initializes with multiple evasion techniques, including the creation of a mutex named GOOGLE and anti-debug measures to evade analysis.
Defense Impairment
1 technique
Defense Impairment
the shellcode implements another anti-forensics measure: zeroing the first 4 KB of allocated memory, to erase DOS and PE headers. This makes the loaded module invisible to memory analysis tools that rely on header signatures.
Discovery
2 techniques
Discovery
To bypass automated security systems, some of the malware variants employ sandbox evasion tactics at runtime. These variants trigger delayed execution through sleep timers of 30 seconds (EXE) and 120 seconds (DLL), effectively outlasting the typical monitoring windows of automated sandboxes.
The MemFun in-memory downloader initializes with multiple evasion techniques, including the creation of a mutex named GOOGLE and anti-debug measures to evade analysis.
Lateral Movement
1 technique
Lateral Movement
They used a combination of Windows Management Instrumentation (WMI) and native Windows .NET commands to deploy malware to additional endpoints.
Collection
2 techniques
Collection
We observed highly selective searches for sensitive files related to: Official meeting records Joint military activities Detailed assessments of operational capabilities.
After gaining persistence, attackers collected highly sensitive files on military operations, organizational structure, and C4I systems.
Command and Control
4 techniques
Command and Control
running delayed execution scripts that connected back to multiple command-and-control (C2) servers.
They deployed two backdoors, AppleChris and MemFun, both using custom HTTP verbs and a dead drop resolver (DDR) via Pastebin to dynamically reach C2 servers.
They deployed two backdoors, AppleChris and MemFun, both using custom HTTP verbs and a dead drop resolver (DDR) via Pastebin to dynamically reach C2 servers.
which launched an in-memory downloader that fetched a final DLL payload from the C2 server.
Observables
10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.