Skip to main content
Mallory
Malware4 associated actors

BLACKCOFFEE

Tracked since Dec 5, 2025 · Updated 3 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors4Associated
ATT&CK15Techniques
IOCs0Tracked
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.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Threat actors

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.

View more details →
APT17

Axiom Derusbi 9002 RAT BLACKCOFFEE Derusbi Ghost RAT HiKit PlugX ZXShell APT17

APT41

Mr. Zeng is credited with creating a specific exploit of the public vulnerability MS08-067. This is associated with the ZoxPRC which evolved into BLACKCOFFEE malware, a hallmark of APT17 and Zeng specifically. APT41 are using this same malware in their operations.

via intrusiontruth wordpressintrusiontruth.wordpress.com
Leviathan

Tools Nanhaishu, Orz, SeDll, Cobalt Strike, GreenCrash, AIRBREAK, BlackCoffee, China Chopper, FUSIONBLAZE, HOMEFRY, MURKYTOP, Metasploit / Meterpreter, ScanBox, Derusbi Trojan, Derusbi, Metasploit

via secureworks threat profilessecureworks.com
Earth Lusca

…exploit framework ZoxRPC. ZoxRPC evolved into ZoxPNG (also known as BLACK-COFFEE), a malware which MITRE ATT&CK attributed to APT17 and APT41…

via eth zurich newsethz.ch
MITRE ATT&CK

Techniques & procedures

15 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

1 technique
T1195Supply Chain CompromiseEvidence1

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
T1059.003Windows Command ShellEvidence6

[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has the capability to create a reverse shell.(Citation: FireEye APT17)

T1203Exploitation for Client ExecutionEvidence1

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.

T1574Hijack Execution FlowEvidence1

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
T1070.004File DeletionEvidence10

[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has the capability to delete files.(Citation: FireEye APT17)

T1574Hijack Execution FlowEvidence1

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
T1057Process DiscoveryEvidence7

[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has the capability to discover processes.(Citation: FireEye APT17)

T1083File and Directory DiscoveryEvidence7

[BLACKCOFFEE](https://attack.mitre.org/software/S0069) has the capability to enumerate files.(Citation: FireEye APT17)

Lateral Movement

1 technique
T1210Exploitation of Remote ServicesEvidence2

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
T1001Data ObfuscationEvidence1

"BLACKCOFFEE has also obfuscated its C2 traffic as normal traffic to sites such as Github."

T1102Web ServiceEvidence2

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.

T1102.001Dead Drop ResolverEvidence3

[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)

T1102.002Bidirectional CommunicationEvidence3

[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)

T1102.003One-Way CommunicationEvidence1

"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"

T1104Multi-Stage ChannelsEvidence3

[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)

T1219Remote Access ToolsEvidence1

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.

Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matchingMatch every observed IP, domain, and hash against your live telemetry.
Associated threat actors4Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping15Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.