BLACKCOFFEE
- Type
- RAT
- Capabilities
- ReconnaissanceExfiltrationDefense evasionPost exploitation
- Platforms
- Windows
BLACKCOFFEE, also referred to as ZoxPNG, is a Windows malware family associated primarily with Chinese espionage activity and most consistently linked to APT17, with additional reporting connecting its use to APT41 and operations overlapping with other China-linked clusters. It has been described as part of the ZoxRPC/ZoxPNG lineage and as a recurring tool in long-running intrusion campaigns against government and enterprise targets, including activity affecting Japanese organizations.
Functionally, BLACKCOFFEE provides remote access capabilities consistent with a backdoor or remote access trojan. Reported behaviors include process discovery, file and directory enumeration, file deletion, and creation of a reverse shell for operator command execution. It has also used dead-drop resolver techniques to obtain command-and-control information from legitimate web content, including Microsoft TechNet, and has disguised command-and-control traffic as normal access to trusted services such as GitHub to blend with benign network activity and complicate detection.
The malware has appeared alongside other China-linked tooling such as Derusbi, PlugX, Ghost RAT, HiKit, and China Chopper in intrusion sets attributed to espionage operators. Reporting ties BLACKCOFFEE closely to APT17 tradecraft and infrastructure patterns, while some analyses note reuse by APT41, suggesting either tool sharing, common developers, or overlap across contractor-style ecosystems supporting Chinese state interests. Its observed behaviors align with post-compromise reconnaissance, interactive control, and operational cleanup on infected hosts.
Associated threat actors
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
…exploit framework ZoxRPC. ZoxRPC evolved into ZoxPNG (also known as BLACK-COFFEE), a malware which MITRE ATT&CK attributed to APT17 and APT41…
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
In the supply chain attack, altered files on legitimate update servers or DNAT configuration changes in iptables resulted in software update requests being redirected to an illegitimate server.
Execution
3 techniques
Execution
[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has the capability to create a reverse shell.(Citation: FireEye APT17)
The Chinese variant of MS08-067 is particularly interesting because it forms part of a hacking tool frequently used by Chinese APT groups called ZoxRPC.
altered files on legitimate update servers or DNAT configuration changes in iptables resulted in software update requests being redirected to an illegitimate server
Stealth
2 techniques
Stealth
[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has the capability to delete files.(Citation: FireEye APT17)
altered files on legitimate update servers or DNAT configuration changes in iptables resulted in software update requests being redirected to an illegitimate server
Discovery
2 techniques
Discovery
[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has the capability to discover processes.(Citation: FireEye APT17)
[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has the capability to enumerate files.(Citation: FireEye APT17)
Lateral Movement
1 technique
Lateral Movement
This report from Novetta details ZoxRPC’s incorporation in its code of specific memory addresses from the port of MS08-067 to Chinese operating systems.
Command and Control
7 techniques
Command and Control
"BLACKCOFFEE has also obfuscated its C2 traffic as normal traffic to sites such as Github."
The adversaries had communicated to both Dropbox and Pastebin. APT28 has used Google Drive for C2. APT37 leverages social networking sites and cloud platforms (AOL, Twitter, Yandex, Mediafire, pCloud, Dropbox, and Box) for C2.
[BLACKCOFFEE](https://attack.mitre.org/software/S0069) uses Microsoft’s TechNet Web portal to obtain a dead drop resolver containing an encoded tag with the IP address of a command and control server.(Citation: FireEye APT17)(Citation: FireEye Periscope March 2018)
[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has also obfuscated its C2 traffic as normal traffic to sites such as Github.(Citation: FireEye APT17)(Citation: FireEye Periscope March 2018)
"Comnie uses blogs and third-party sites (GitHub, tumbler, and BlogSpot) to avoid DNS-based blocking"; "Revenge RAT used blogpost.com as its primary command and control server"; "Turla JavaScript backdoor has used Google Apps Script as its C2 server"
[BLACKCOFFEE](https://attack.mitre.org/software/S0069) uses Microsoft’s TechNet Web portal to obtain an encoded tag containing the IP address of a command and control server and then communicates separately with that IP address for C2. If the C2 server is discovered or shut down, the threat actors can update the encoded IP address on TechNet to maintain control of the victims’ machines.(Citation: FireEye APT17)
4H RAT has the capability to create a remote shell. AuditCred can open a reverse shell on the system to execute commands. PlugX allows actors to spawn a reverse shell on a victim. QuasarRAT can launch a remote shell to execute commands on the victim’s machine.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.