Skip to main content
Mallory
MalwareUsed by 4 actors

DKnife

DKnife is a modular Linux-based gateway-monitoring and adversary-in-the-middle (AitM) malware framework used by China-nexus threat actors since at least 2019. Cisco Talos reported it comprises seven Linux ELF implants designed to compromise routers and edge devices, persist on gateway hardware, and inspect, manipulate, and exfiltrate traffic transiting the device. Reported components include dknife.bin (core deep-packet inspection and attack logic), postapi.bin (data/C2 relay), sslmm.bin (reverse proxy/TLS interception), mmdown.bin (malicious Android APK delivery), yitiji.bin (bridged TAP/LAN traffic injection), remote.bin (P2P VPN remote access), and dkupdate.bin (updater/watchdog).

High-confidence capabilities described in the source material include deep packet inspection, DNS hijacking, traffic manipulation, reverse proxying, credential harvesting, phishing support, packet forwarding, data reporting, and malware delivery to downstream endpoints. DKnife can hijack Windows binary downloads and Android application updates, replacing legitimate content with malicious payloads, and has been used to deliver the ShadowPad and DarkNimbus backdoors. It can also intercept POP3/IMAP traffic via sslmm.bin to extract email credentials, host phishing pages for Chinese email services, exfiltrate data from Chinese applications such as WeChat and QQ, monitor activity including WeChat and Signal usage, and disrupt traffic from security products such as 360 Total Security and Tencent PC Manager, including via crafted TCP reset behavior.

The framework primarily appears to target Chinese-speaking users, based on observed phishing pages, exfiltration modules for Chinese apps, code/configuration references to Chinese services and media domains, and Simplified Chinese comments and labels in artifacts. Talos assessed with high confidence that DKnife is operated by China-nexus actors, and linked the activity to infrastructure and tooling associated with Earth Minotaur, WizardNet, the Spellbinder AitM framework, MOONSHINE, and DarkNimbus. Related activity and infrastructure were noted in connection with the Philippines, Cambodia, and the United Arab Emirates, though Talos noted some targeting conclusions were based on configuration from a single C2 server.

The malware targets Linux-based routers and edge devices, including CentOS/RHEL-like environments, and can place any downstream device at risk, including Windows systems, Android devices, and potentially IoT devices behind the compromised gateway. Reported persistence and host artifacts include storage under /dksoft/update/, modification of /etc/rc.local, a bridged TAP interface at 10.3.3.3, and use of self-signed certificates associated in reporting with Sichuan Qiyu Network Technology. Reported hardcoded C2 endpoints include 47.93.54[.]134:8005 and 43.132.205[.]118:81. Talos stated DKnife command-and-control infrastructure remained active as of January 2026.

Share:
For your environment

Hunt this family in your stack

Mallory pivots from this family to the IOCs, detections, and named campaigns that touch your stack, and pages you when something new lands.

THREAT ACTORS

Groups observed using it

4 distinct threat actors attributed by public researchers. Open in Mallory to see the full evidence chain and overlapping campaigns.

View more details
TheWizards

A sophisticated gateway-monitoring and adversary-in-the-middle (AitM) framework known as DKnife has been identified, operated by China-nexus threat actors since at least 2019.

via scworldscworld.com
Earth Minotaur

A sophisticated gateway-monitoring and adversary-in-the-middle (AitM) framework known as DKnife has been identified, operated by China-nexus threat actors since at least 2019.

via scworldscworld.com
china_nexus_threat_actors

"China-Linked DKnife AitM Framework Targets Routers for Traffic Hijacking, Malware Delivery" ... "dubbed DKnife" ... "comprises seven Linux-based implants" designed to "perform deep packet inspection, manipulate traffic, and deliver malware via routers and edge devices."

via cloudatg insightscloudatg.com
china_nexus_apt_groups

"The DKnife Linux toolkit represents a significant escalation in adversary-in-the-middle (AitM) threats targeting network infrastructure... engineered to compromise Linux-based routers and edge devices, enabling attackers to intercept, manipulate, and exfiltrate network traffic at the gateway level."

via rescana blogrescana.com
MITRE ATT&CK

Techniques & procedures

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

Initial Access

6 techniques
T1078Valid AccountsEvidence2

"...begins with the compromise of a Linux-based router or edge device, either via... credential reuse (T1078)..."

T1190Exploit Public-Facing ApplicationEvidence2

"The exploitation lifecycle typically begins with the compromise of a Linux-based router or edge device, either via exploitation of public-facing services (MITRE ATT&CK T1190)..."

T1195Supply Chain CompromiseEvidence4

"...hijacking binary downloads and Android application updates." / "Hijacking and replacing Android application updates... by intercepting their update manifest requests"

T1195.002Compromise Software Supply ChainEvidence1

DKnife hijacks software downloads and Android app updates... It redirects update requests to a local malicious server and replaces legitimate downloads with malware.

T1200Hardware AdditionsEvidence1

"DKnife toolkit abuses routers to spy and deliver malware since 2019"

T1566.002Spearphishing LinkEvidence1

"DKnife can harvest credentials from a major Chinese email provider and host phishing pages for other services"

Execution

1 technique
T1053Scheduled Task/JobEvidence1

"Abuse of startup services (e.g., init scripts, cron-like schedulers)"

Persistence

3 techniques
T1053Scheduled Task/JobEvidence1

"Abuse of startup services (e.g., init scripts, cron-like schedulers)"

T1078Valid AccountsEvidence2

"...begins with the compromise of a Linux-based router or edge device, either via... credential reuse (T1078)..."

T1547Boot or Logon Autostart ExecutionEvidence1

The DKnife downloader... enables persistence at boot... downloads the DKnife package, and launches all components automatically.

T1053Scheduled Task/JobEvidence1

"Abuse of startup services (e.g., init scripts, cron-like schedulers)"

T1078Valid AccountsEvidence2

"...begins with the compromise of a Linux-based router or edge device, either via... credential reuse (T1078)..."

T1547Boot or Logon Autostart ExecutionEvidence1

The DKnife downloader... enables persistence at boot... downloads the DKnife package, and launches all components automatically.

Stealth

2 techniques
T1027Obfuscated Files or InformationEvidence1
TacticStealth

The tool loads encrypted hijacking rules, decrypts them with a QQ TEA–based key, and deletes them after use.

T1078Valid AccountsEvidence2

"...begins with the compromise of a Linux-based router or edge device, either via... credential reuse (T1078)..."

T1601Modify System ImageEvidence1

"Configuration hijacking (NVRAM or equivalent)"

Credential Access

4 techniques
T1040Network SniffingEvidence4

"...terminates and decrypts POP3/IMAP connections, and inspects the plaintext stream to extract usernames and passwords."

T1056.003Web Portal CaptureEvidence1

The malware also steals credentials by intercepting encrypted email connections and hosting phishing pages.

T1555Credentials from Password StoresEvidence1

“The toolkit… steals credentials from Chinese services”

T1557Adversary-in-the-MiddleEvidence4

"Manipulate routing or DNS (traffic redirection, MITM)"

Discovery

1 technique
T1040Network SniffingEvidence4

"...terminates and decrypts POP3/IMAP connections, and inspects the plaintext stream to extract usernames and passwords."

Collection

2 techniques
T1056.003Web Portal CaptureEvidence1

The malware also steals credentials by intercepting encrypted email connections and hosting phishing pages.

T1557Adversary-in-the-MiddleEvidence4

"Manipulate routing or DNS (traffic redirection, MITM)"

T1071.001Web ProtocolsEvidence2

"Encrypted communications over HTTP(S) or DNS-like patterns"

T1071.004DNSEvidence1

"Encrypted communications over HTTP(S) or DNS-like patterns"

T1090ProxyEvidence1

"Proxy attacks into internal networks"

T1090.002External ProxyEvidence1

"sslmm.bin - A reverse proxy module modified from HAProxy that performs TLS termination..."

T1105Ingress Tool TransferEvidence3

"Deploy additional payloads against downstream hosts"

T1572Protocol TunnelingEvidence1

remote.bin – P2P VPN client Builds a peer-to-peer communication tunnel to the remote C2 using a customized N2N VPN.

Exfiltration

1 technique
T1567Exfiltration Over Web ServiceEvidence1

“…exfiltrate data from popular apps like WeChat and QQ.”

Impact

1 technique
T1565.001Stored Data ManipulationEvidence4
TacticImpact

"...can perform DNS hijacking for malicious redirects."

Other

1 technique
T1562.001Disable or Modify ToolsEvidence3

"Interfering with communications from antivirus and PC-management products, including 360 Total Security and Tencent services"

What this page doesn’t show

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 matching

Match every observed IP, domain, and hash against your live telemetry.

Threat actor attribution4

Named campaigns wielding this family, with evidence pinned to each claim.

Exploited vulnerabilities

CVEs this family uses for access and lateral movement.

Detection signatures

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

MITRE ATT&CK mapping23

Every documented technique, ranked by evidence weight.

Researcher chatter

Reddit, Mastodon, and CTI community discussion around this family.