PhantomGraph
- Type
- Backdoor
- Capabilities
- Credential theftExfiltrationPersistencePost exploitationDefense evasionReconnaissance
- Delivery
- Phishing
- Platforms
- Windows
PhantomGraph is a modular Windows backdoor associated with the Head Mare threat group. It uses Microsoft OneDrive for command-and-control, receiving attacker instructions and returning execution results through an attacker-controlled account. Its architecture separates communication and command execution into two DLL modules: one retrieves commands and transmits results, while the other parses and executes instructions and stores their output. Commands are executed through the Windows command interpreter and temporary batch files. Both components are installed as Windows services for persistence. The use of a legitimate cloud-storage service allows malicious communications to blend with ordinary cloud traffic. PhantomGraph also shares partial code overlap with PhantomCore.
PhantomGraph has been deployed through web shells on compromised Windows TrueConf servers after attackers exploited server vulnerabilities to obtain privileged code execution. It provided an additional command-and-control channel alongside web-shell access. Operators have used it for system and user reconnaissance, LSASS memory dumping to obtain credentials, and reverse SSH tunneling. Its deployment has been observed in Head Mare campaigns targeting Russian organizations across instrumentation, electronics, transportation, energy, IT, and software development.
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.
C помощью веб‑шелла помимо PhantomCore злоумышленники загружают бэкдор, который мы назвали PhantomGraph, состоящий из двух модулей.
Techniques & procedures
37 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
1 technique
Resource Development
The attackers used an account on Microsoft OneDrive cloud storage as their command-and-control (C2) server.
Initial Access
4 techniques
Initial Access
the attackers exploited a chain of vulnerabilities in the TrueConf video conferencing server... The attackers connect to the TrueConf server without prior authorization via port 4307/TCP... attackers call a server function to transmit a malicious script and execute it on the server.
The attackers distribute their backdoors using various methods, including phishing, exploiting public web servers, or through a subcontractor.
The attack was mapped to multiple MITRE ATT&CK techniques, including T1190 (Exploit Public-Facing Application), T1566 (Phishing), T1199 (Trusted Relationship)
The attackers distribute their backdoors using various methods, including phishing, exploiting public web servers, or through a subcontractor.
Execution
4 techniques
Execution
[The vulnerabilities] allowed the attackers to run a malicious script ... and execute commands on the underlying operating system.
the attackers execute a Base64-encoded PowerShell command that installs SysExcSvc.dll and SysReadSvc.dll as Windows services.
%TEMP%\cmd_cmd_*.bat
Head Mare, now assessed as an APT group, exploited two vulnerabilities in unpatched TrueConf video conferencing servers to achieve SYSTEM-level code execution and deploy a web shell.
Persistence
5 techniques
Persistence
Head Mare, now assessed as an APT group, exploited two vulnerabilities in unpatched TrueConf video conferencing servers to achieve SYSTEM-level code execution and deploy a web shell.
/etc/systemd/system/omicluster.service /etc/systemd/system/schedul2-bin.service
Both components establish persistence on the server by creating services with the names SysExcSvc and SysReadSvc.
HKEY_CURRENT_USER\Software\Classes\CLSID\{0340F119-A598-4ed9-B0AC-6F6A12D3E755}\InprocServer32
Persistence was further achieved through the creation of a registry key at HKEY_CURRENT_USER\Software\Classes\CLSID{0340F119-A598-4ed9-B0AC-6F6A12D3E755}\InprocServer32
Privilege Escalation
6 techniques
Privilege Escalation
To escape the isolated environment, attackers exploit a second vulnerability... Exploiting this vulnerability allows them to bypass the restrictions of the isolated environment and proceed to execute commands in the context of the operating system... with the privileges of the NT AUTHORITY\SYSTEM account.
/etc/systemd/system/omicluster.service /etc/systemd/system/schedul2-bin.service
Both components establish persistence on the server by creating services with the names SysExcSvc and SysReadSvc.
HKEY_CURRENT_USER\Software\Classes\CLSID\{0340F119-A598-4ed9-B0AC-6F6A12D3E755}\InprocServer32
Persistence was further achieved through the creation of a registry key at HKEY_CURRENT_USER\Software\Classes\CLSID{0340F119-A598-4ed9-B0AC-6F6A12D3E755}\InprocServer32
They exploited KLCERT-26-057 to execute a malicious script in the isolated TrueConf environment, then KLCERT-26-058 to escape the sandbox and execute commands on the underlying operating system.
Stealth
2 techniques
Stealth
on *nix servers running TrueConf, the attackers install a backdoor that hides its files and, by intercepting TrueConf network functions, listens for commands sent from the attackers via the TrueConf protocol.
Persistance via services Windows installés par commande PowerShell encodée en Base64
Defense Impairment
2 techniques
Defense Impairment
Attackers then replaced legitimate TrueConf Client installers with trojanized versions containing the PhantomCore and PhantomGraph backdoors, turning the compromise into a supply-chain attack.
They then replaced the legitimate TrueConf Client installer hosted on the server with a trojanized, non-digitally signed version.
Credential Access
2 techniques
Credential Access
Commands detected: Memory dump of the lsass.exe process... Creating a memory dump of the lsass.exe process using the comsvcs.dll library.
Observed activity comprised extracting the memory of the Local Security Authority Subsystem Service (LSASS) process to extract credentials.
Discovery
2 techniques
Discovery
[They conducted] reconnaissance by executing commands such as hostname and whoami.
The attackers used the compromised server to collect infrastructure data, access the TrueConf database...
Lateral Movement
2 techniques
Lateral Movement
Launching an SSH reverse tunnel... Creating tunnels using the ssh process.
The attackers connect to the TrueConf server without prior authorization via port 4307/TCP... Once connected, attackers call a server function to transmit a malicious script and execute it on the server.
Collection
1 technique
Collection
The attackers used the compromised server to collect infrastructure data, access the TrueConf database...
Command and Control
8 techniques
Command and Control
The attackers used an account on Microsoft OneDrive cloud storage as their command-and-control (C2) server.
Exfiltration and C2 communications were conducted over both custom malicious domains and IP addresses, as well as via OneDrive cloud storage.
...и запускали обратные SSH-туннели.
Observed activity comprised ... establishing a reverse SSH tunnel.
The attackers use a Microsoft OneDrive cloud storage account as the command and control (C&C) server... on *nix systems, the attackers install a backdoor that uses GitHub as a command and control channel.
PhantomGraph ... is capable of receiving commands through a Microsoft OneDrive account, executing these commands and returning the results.
Attackers use the web shell to install a backdoor-type malicious program on the server that consists of two components
Launching an SSH reverse tunnel... Creating tunnels using the ssh process.
Exfiltration
2 techniques
Exfiltration
Exfiltration and C2 communications were conducted over both custom malicious domains and IP addresses, as well as via OneDrive cloud storage.
SysExcSvc.dll, for receiving commands and exfiltrating their results back to Microsoft OneDrive cloud storage that's used as command-and-control (C2)
Observables
41 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.