metaMain
- Type
- Backdoor
- Capabilities
- KeyloggingExfiltrationPersistencePost exploitationDefense evasionReconnaissanceDLL sideloadingProcess injection
- Platforms
- Windows
metaMain is a Windows backdoor used by Metador to maintain long-term access and conduct espionage. Metador operations have primarily targeted telecommunications companies, internet service providers, and universities in the Middle East and Africa. The actor's national affiliation remains unconfirmed.
The implant supports keylogging, mouse-event logging, screenshot capture, username discovery, local file collection and staging, file upload and download, and arbitrary shellcode execution. It can exfiltrate collected files and data through its command-and-control channel. Its communications capabilities include HTTP, indirect raw TCP connections, named-pipe channels, internal proxying, and encrypted communications.
metaMain supports multiple execution flows involving the Microsoft Console Debugger, HKCMD DLL side-loading, process injection, and reflective DLL loading. Its components are designed to execute in memory, with malware stored on disk in encrypted form rather than as unencrypted payloads. In observed deployments, Windows Management Instrumentation event subscriptions established persistence and triggered a debugger-assisted loading chain after system startup. A reflective loader decrypted and loaded the implant's orchestrator into memory.
The implant has distinct operational modes, including one used to decrypt and load Mafalda, a separate modular espionage backdoor, into memory. Its defense-evasion and anti-forensic capabilities include file deletion and timestamp manipulation; when running with SYSTEM privileges, it can modify file creation, last-access, and last-write times.
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.
(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
Techniques & procedures
36 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
Adversaries may buy, steal, or download malware that can be used during targeting.
Execution
3 techniques
Execution
metaMain... provides operators with extensive functionality... and the ability to execute arbitrary shellcode. ... The functionalities of the backdoor commands have a very broad scope and include credential theft, data and information theft, command execution...
[metaMain](https://attack.mitre.org/software/S1059) can execute an operator-provided Windows command by leveraging functions such as `WinExec`, `WriteFile`, and `ReadFile`.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can support an HKCMD sideloading start method.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
Persistence
3 techniques
Persistence
[metaMain](https://attack.mitre.org/software/S1059) can write the process ID of a target process into the `HKEY_LOCAL_MACHINE\SOFTWARE\DDE\tpid` Registry value as part of its reflective loading activity.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) has authenticated itself to a different implant, Cryshell, through a port knocking and handshake procedure.(Citation: SentinelLabs Metador Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) registered a WMI event subscription consumer called "hard_disk_stat" to establish persistence.(Citation: SentinelLabs Metador Sept 2022)
Privilege Escalation
2 techniques
Privilege Escalation
[metaMain](https://attack.mitre.org/software/S1059) can inject the loader file, Speech02.db, into a process.(Citation: SentinelLabs Metador Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) registered a WMI event subscription consumer called "hard_disk_stat" to establish persistence.(Citation: SentinelLabs Metador Sept 2022)
Stealth
11 techniques
Stealth
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.
[metaMain](https://attack.mitre.org/software/S1059)'s module file has been encrypted via XOR.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can inject the loader file, Speech02.db, into a process.(Citation: SentinelLabs Metador Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) has deleted collected items after uploading the content to its C2 server.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can change the `CreationTime`, `LastAccessTime`, and `LastWriteTime` file time attributes when executed with `SYSTEM` privileges.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can decrypt and load other modules.(Citation: SentinelLabs Metador Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) has authenticated itself to a different implant, Cryshell, through a port knocking and handshake procedure.(Citation: SentinelLabs Metador Sept 2022)
Among them, we noticed the use of an unusual LOLbin, the Microsoft Console Debugger cdb.exe. CDB was the root of an intricate infection chain that would yield two in-memory malware platforms... The attackers used the following command line: cdb.exe -cf c:\windows\system32\cdb.ini c:\windows\system32\defrag.exe -module fcache13.db
[metaMain](https://attack.mitre.org/software/S1059) has delayed execution for five to six minutes during its persistence establishment process.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can support an HKCMD sideloading start method.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) has reflectively loaded a DLL to read, decrypt, and load an orchestrator file.(Citation: SentinelLabs Metador Sept 2022)
Defense Impairment
1 technique
Defense Impairment
[metaMain](https://attack.mitre.org/software/S1059) can write the process ID of a target process into the `HKEY_LOCAL_MACHINE\SOFTWARE\DDE\tpid` Registry value as part of its reflective loading activity.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
Credential Access
2 techniques
Credential Access
[metaMain](https://attack.mitre.org/software/S1059) can log mouse events.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) has the ability to log keyboard events.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
Discovery
5 techniques
Discovery
[metaMain](https://attack.mitre.org/software/S1059) can collect the username from a compromised host.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can enumerate the processes that run on the platform.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can collect the computer name from a compromised host.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can recursively enumerate files in an operator-provided directory.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) has delayed execution for five to six minutes during its persistence establishment process.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
Collection
8 techniques
Collection
[metaMain](https://attack.mitre.org/software/S1059) can collect files and system information from a compromised host.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can log mouse events.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) has the ability to log keyboard events.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
The content repeatedly describes adversaries and malware storing collected data, command output, credentials, archives, or files in local temporary folders, working directories, hidden directories, registry locations, recycle bins, or specific files prior to exfiltration.
[metaMain](https://attack.mitre.org/software/S1059) has stored the collected system files in a working directory.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can take and save screenshots.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
metaMain ... Archive Collected Data: Archive via Custom Method
[metaMain](https://attack.mitre.org/software/S1059) has used XOR-based encryption for collected files before exfiltration.(Citation: SentinelLabs Metador Sept 2022)
Command and Control
8 techniques
Command and Control
That IP is utilized for command-and-control over either HTTP (metaMain, Mafalda) or raw TCP (Mafalda).
[metaMain](https://attack.mitre.org/software/S1059) can use HTTP for C2 communications.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
‘Cryshell’– a custom implant used for bouncing connections in an internal network to external command-and-control servers... When the TCP KNOCK communication method is enabled, the metaMain and Mafalda implants can establish an indirect connection to the C2 server through another implant.
[metaMain](https://attack.mitre.org/software/S1059) can create a named pipe to listen for and send data to a named pipe-based C2 server.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can establish an indirect and raw TCP socket-based connection to the C2 server.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can download files onto compromised systems.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) has authenticated itself to a different implant, Cryshell, through a port knocking and handshake procedure.(Citation: SentinelLabs Metador Sept 2022)
[metaMain](https://attack.mitre.org/software/S1059) can encrypt the data that it sends and receives from the C2 server using an RC4 encryption algorithm.(Citation: SentinelLabs Metador Sept 2022)(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
Exfiltration
1 technique
Exfiltration
[metaMain](https://attack.mitre.org/software/S1059) can upload collected files and data to its C2 server.(Citation: SentinelLabs Metador Technical Appendix Sept 2022)
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
30 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.