PIPEDANCE
- Type
- Backdoor
- Capabilities
- Lateral movementPost exploitationReconnaissanceScanningProcess injection
- Platforms
- Windows
PIPEDANCE is a custom Windows backdoor used by a state-sponsored threat group for post-compromise operations. It uses encrypted Windows named-pipe communications as a bidirectional internal command-and-control proxy, supporting lateral movement and deployment of additional implants. Its command set supports interactive command execution, process termination, file and directory enumeration, process discovery, working-directory changes, and writing operator-supplied content to files. PIPEDANCE can test HTTP, DNS, ICMP, and TCP connectivity to identify usable egress paths. It executes additional shellcode through process injection, including thread-execution hijacking on 32-bit systems and Heaven’s Gate and Native API-based methods on 64-bit systems. It was observed in an intrusion against a Vietnamese organization in late 2022 alongside Cobalt Strike, and associated activity involved injection into legitimate Windows utilities. Initial access and the initial loading chain were not confirmed.
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
1 technique
Reconnaissance
As adversaries pivot and move through a network, one of their objectives is understanding where the endpoint sits inside the network and determining what protocols are available for shipping data laterally or externally.
Execution
2 techniques
Execution
Function 0x2 runs a single command through cmd.exe; Function 0x3 creates a cmd.exe process with stdin/stdout redirected through named pipes.
“PIPEDANCE uses named pipes as its main channel for command and control communication.”
Persistence
1 technique
Persistence
The Suspicious Windows Service Execution behavioral rule generated the first observed events. While unconfirmed, published research describes similar techniques ... using ... DbgView.exe to load PIPEDANCE.
Privilege Escalation
5 techniques
Privilege Escalation
“Create random process with hijacked token from provided PID and inject shellcode” and “Open process from provided PID and inject shellcode.”
“Open process from provided PID and inject shellcode (32bits) — PID (thread hijack), shellcode” and the corresponding 64-bit command.
The report's observed adversary techniques list includes 'Token impersonation/theft.'
“Create random process with hijacked token from provided PID and inject shellcode.”
The Suspicious Windows Service Execution behavioral rule generated the first observed events. While unconfirmed, published research describes similar techniques ... using ... DbgView.exe to load PIPEDANCE.
Stealth
5 techniques
Stealth
PIPEDANCE then encrypts the buffer containing the previous process details with RC4 and then writes the encrypted data back to the client pipe.
“Create random process with hijacked token from provided PID and inject shellcode” and “Open process from provided PID and inject shellcode.”
“Open process from provided PID and inject shellcode (32bits) — PID (thread hijack), shellcode” and the corresponding 64-bit command.
The report's observed adversary techniques list includes 'Token impersonation/theft.'
“Create random process with hijacked token from provided PID and inject shellcode.”
Discovery
3 techniques
Discovery
“TCP connectivity check — IP, port.”
“List running processes.”
“List files in current working directory,” “Get current working directory,” and “Change current working directory.”
Lateral Movement
1 technique
Lateral Movement
The named pipe server process is run on a new victim machine, while the client instructions come from the operator from a previously compromised machine in the same network.
Command and Control
2 techniques
Command and Control
PIPEDANCE is specifically built to identify exit points on an endpoint by checking DNS, ICMP, TCP, and HTTP protocols.
PIPEDANCE leverages named pipes as a communication mechanism between different infected endpoints within a compromised network... as a bidirectional layer of command and control.
Observables
4 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.