ELMER
- Type
- Backdoor
- Capabilities
- ExfiltrationPost exploitationReconnaissance
- Platforms
- Windows
ELMER is a Delphi-based Windows backdoor associated with the Chinese espionage group APT16. It has been used in intrusions targeting organizations in Japan and Taiwan, including entities in the high-technology, government, media, and financial sectors. The malware is designed for remote command execution and data theft, and communicates with its command-and-control infrastructure over HTTP, including traffic sent over TCP port 443 to blend with common web activity.
ELMER employs multiple implementation features intended to hinder analysis and improve operational reliability. Reported samples use custom code and string encryption routines, decrypt strings at runtime, and dynamically resolve Windows API functions. The malware also inspects local proxy settings before establishing outbound communications, gathers basic host identification data such as hostname and local IP address, and transmits that information during initial beaconing.
The backdoor supports a compact but capable command set for post-compromise operations. Documented functions include file upload and download, execution of commands or processes, enumeration of files and directories, exfiltration of file contents, reporting of the current directory, and process discovery. Its process-listing capability uses standard Windows snapshot APIs to enumerate running processes and return process names and identifiers to the operator. These features make ELMER suitable for reconnaissance, remote tasking, and follow-on collection within targeted espionage operations.
Associated vulnerabilities
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
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.
In this blog post, we’re presenting a detailed analysis of a backdoor known as ELMER that was used by the Chinese actor identified as APT16.
Techniques & procedures
12 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
1 technique
Execution
By parsing the response from the server to obtain the command line to be executed, there is a new process created using the CreateProcessA function.
Stealth
2 techniques
Stealth
By parsing the response from the server to obtain the command line to be executed, there is a new process created using the CreateProcessA function.
The malware opens the “Software\Microsoft\Windows\CurrentVersion\Internet Settings” registry key... The “ProxyEnable” value is extracted... This action has the purpose of verifying if the current machine is using a proxy for network communications.
Discovery
6 techniques
Discovery
The malware opens the “Software\Microsoft\Windows\CurrentVersion\Internet Settings” registry key by calling the RegOpenKeyExA API... The “ProxyEnable” value is extracted using the RegQueryValueExA function.
If “ProxyEnable” is equal to 1, the malware proceeds and extracts the value of “ProxyServer” (hostnames/IPs of the proxy server on the network).
[ELMER](https://attack.mitre.org/software/S0064) is capable of performing process listings.(Citation: FireEye EPS Awakens Part 2)
The gethostname function is used to retrieve the host name for the local machine... The inet_ntoa function is utilized to convert the IP address of the host into an ASCII string... The hostname and the IP address of the machine... are combined into a string that will be used in the upcoming network communications with the C2 server.
[ELMER](https://attack.mitre.org/software/S0064) is capable of performing directory listings.(Citation: FireEye EPS Awakens Part 2)
The malware opens the “Software\Microsoft\Windows\CurrentVersion\Internet Settings” registry key... The “ProxyEnable” value is extracted... This action has the purpose of verifying if the current machine is using a proxy for network communications.
Command and Control
3 techniques
Command and Control
Data exfiltration is performed using an HTML document that contains the information encoded using the NOT operator.
[ELMER](https://attack.mitre.org/software/S0064) uses HTTP for command and control.(Citation: FireEye EPS Awakens Part 2)
We believe that this command is responsible for downloading other malware payloads. There is only a GET request to the same C2 server.
Exfiltration
1 technique
Exfiltration
The hostname and the IP address of the local machine are exfiltrated to the C2 server using a POST request... The list of processes is exfiltrated to the CnC server... The content of the targeted file is exfiltrated to the CnC server using the send function.
Observables
7 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.