Merlin
- Type
- Backdoor
- Capabilities
- Post exploitationReconnaissanceCredential theftExfiltrationPersistenceDLL sideloadingDefense evasion
- Delivery
- SpearphishingLure
- Platforms
- WindowsLinuxmacOS
Merlin is an open-source command-and-control and post-exploitation framework written in Go and first published in 2017. Its agent can be compiled for Windows, Linux, and macOS and is abused as a backdoor in espionage operations. Merlin supports HTTP/1.1, HTTP/2, and HTTP/3 over QUIC communications, and agents compatible with the Mythic framework have also been deployed by attackers.
Merlin provides remote command execution and host profiling, including collection of operating-system, hostname, username, architecture, network, and process information. Its functionality can be extended through external offensive-tool modules. These can download and execute PowerShell tools such as Invoke-Mimikatz for credential access or retrieve, compile, and execute Seatbelt for reconnaissance. Observed agents have used AES-encrypted command-and-control traffic and downloaded additional payloads, including Loki 2.0.
Attackers have deployed Merlin through DLL side-loading of legitimate applications and established persistence using registry and service mechanisms. A Russian campaign used targeted phishing emails impersonating human-resources personnel, nested archives, a malicious shortcut, and PowerShell to launch an agent disguised as an image while displaying a decoy résumé. That chain used a legitimate Windows console utility for indirect, headless execution.
Merlin has been used by Tropic Trooper, the Mythic Likho activity cluster, and the Chinese state-aligned Cluster Alpha intrusion set tracked as STAC1248. Documented targets include a Southeast Asian government organization and Russian industrial and telecommunications-related companies. Its public availability and use by multiple unrelated operators make its presence insufficient for threat-actor attribution.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“Deployment of the Merlin Agent ... and the Pinkman Agent was performed in a similar manner as the same side-loading chain including vmnat.exe and shfolder.dll was used.”
Mythic Likho (Arcane Werewolf) ... Merlin agent (Go), совместимый с фреймворком Mythic
...has been used in the past to fetch next-stage payloads like Cobalt Strike Beacon or Merlin agent for the Mythic framework.
Techniques & procedures
22 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
В январе 2025 года к нам обратились с просьбой оценить опасность одной подозрительной ссылки из письма. Письмо было адресовано отделу кадров машиностроительного завода...
Execution
6 techniques
Execution
attackers need to take advantage of techniques more similar to those we see in Windows systems, such as Cron Jobs
Execution matrix 1 Technique Count Frameworks PowerShell 9/10
Execution matrix 1 Technique Count Frameworks Windows Command Shell 10/10
Merlin wscript %AppData%:<random file name>.vbs
Execution matrix 2 Technique Count Frameworks Native API 4/10
Если пользователь откроет файл Rez_ZelibRV.lnk, то запустится прописанная в нем команда... && powershell -ExecutionPolicy Bypass -File Passport\20.ps1
Persistence
3 techniques
Persistence
attackers need to take advantage of techniques more similar to those we see in Windows systems, such as Cron Jobs
Following the deployment in March of a copy of a legitimate version of vmnat.exe ... the actor was observed creating registry keys to establish persistence.
Persistence matrix 1 Technique Count Frameworks Registry Run Key/Startup Folder 9/10
Privilege Escalation
3 techniques
Privilege Escalation
attackers need to take advantage of techniques more similar to those we see in Windows systems, such as Cron Jobs
Following the deployment in March of a copy of a legitimate version of vmnat.exe ... the actor was observed creating registry keys to establish persistence.
Persistence matrix 1 Technique Count Frameworks Registry Run Key/Startup Folder 9/10
Stealth
4 techniques
Stealth
...переименовывает файл 3(1).jpg в Rez_ZelibRV.pdf... запускает бэкдор Merlin из файла 19.jpg...
the HUI loader (msedge_elf.dll), which de-obfuscated the file log.ini to reveal a Cobalt Strike reflective Loader
the actor frequently abused endpoint protection software binaries to sideload their malicious payloads.
Merlin uses Alternate Data Streams
Discovery
2 techniques
Discovery
...а также информацию о процессе, в котором запущен Merlin.
После установления контакта бэкдор отправляет на сервер данные о системе: IP-адрес, версию ОС, имя хоста и имя пользователя, архитектуру процессора...
Collection
1 technique
Collection
По адресу ... мы нашли архив с вредоносными файлами... Внутри Резюме_ЗелибРВ.rar был еще один архив Резюме.rar...
Command and Control
5 techniques
Command and Control
Cross-platform post-exploitation HTTP Command & Control agent written in golang ... This implementation uses Mythic's Default HTTP Command and Control profile
This implementation uses Mythic's Default HTTP Command and Control profile
Many frameworks can utilize external tools as modules Pattern Download external tools • Merlin
Those that simply provided minimal functionality and provided remote access were labeled as a Backdoor, while fully featured Remote Access Trojans were labeled as such.
Коммуникация с C&C шифруется при помощи алгоритма AES с ключом из поля конфигурации main.psk...
Exfiltration
1 technique
Exfiltration
Throughout the intrusion, the actor in Cluster Alpha leveraged the PhantomNet implants ... to establish C2 communications and load additional payloads... PowHeartBeat ... now known to be an exfiltration domain.
Observables
17 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
9 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.