Skip to main content
Meet us at Black Hat USA 2026— Las Vegas, August 1–6Book a Meeting
Mallory
MalwareUsed by 4 actors

DKnife

DKnife is a modular Linux-based gateway-monitoring and adversary-in-the-middle (AitM) malware framework discovered by Cisco Talos and assessed with high confidence to be operated by China-nexus threat actors since at least 2019, with command-and-control infrastructure still active as of January 2026. It is designed to compromise routers and edge devices and consists of seven Linux ELF implants, including dknife.bin, postapi.bin, sslmm.bin, yitiji.bin, remote.bin, mmdown.bin, and dkupdate.bin. The framework performs deep-packet inspection, DNS hijacking, traffic manipulation, reverse proxying, TLS termination, credential harvesting, phishing, malware delivery, VPN-based remote access, and component updating/persistence.

Talos reported that DKnife targets routers and edge devices running Linux-based firmware and can affect downstream PCs, mobile devices, and IoT devices by manipulating traffic at the gateway. Observed capabilities include hijacking Windows binary downloads and Android application updates, forging HTTP 302 redirects for files such as .exe, .rar, .zip, and .apk, intercepting Android update manifests and returning forged JSON responses, and serving malicious payloads from a local attacker-controlled interface at 10.3.3.3 created by yitiji.bin. The framework also decrypts POP3 and IMAP over TLS to extract usernames and passwords from at least one major Chinese email provider, hosts phishing pages, forwards harvested credentials labeled PASSWORD to remote C2 servers, and monitors user activity including WeChat, Signal, voice/video calls, text messages, shopping, news, maps, gaming, dating, rideshare requests, and email checks. Talos also observed DKnife disrupting antivirus and PC-management traffic, including 360 Total Security and Tencent-related domains, by sending crafted TCP RST packets.

DKnife has been used to deliver the ShadowPad and DarkNimbus backdoors by intercepting Windows binary downloads and Android app updates. Talos found an install.exe payload with SHA-256 2550aa4c4bc0a020ec4b16973df271b81118a7abea77f77fec2f575a32dc3444 in the DKnife archive; it was a RAR self-extracting package containing ShadowPad and DarkNimbus components. In one observed chain, TosBtKbd.exe sideloaded TosBtKbd.dll, which then loaded the DarkNimbus DLL TosBtKbdLayer.dll. Talos also reported that delivered DarkNimbus samples contacted 1.1.1.1 and DKnife intercepted that request to provide the real C2 IP. ShadowPad samples delivered by DKnife were reported as signed with certificates issued to 四川奇雨网络科技有限公司 in Chengdu, Sichuan, China.

The framework shows strong China-focused targeting. Talos cited Simplified Chinese code comments, configuration language, telemetry labels, a default China Telecom IMSI value, code references to Chinese media domains, and modules tailored for Chinese mail services, WeChat, and numerous Chinese-language mobile applications. Talos found 185 JSON files under /bin/html/dkay-scripts configured to hijack Android applications, mostly targeting popular Chinese-language services. Although observed targeting was primarily Chinese-speaking users, Talos noted infrastructure and tradecraft overlap with WizardNet and the Spellbinder AitM framework, suggesting shared development or operational lineage and possible broader regional targeting.

Persistence and infrastructure details directly reported in the content include modification of /etc/rc.local with commands inserted between #startdianke and #enddianke markers, use of /dksoft/conf/server.conf, /dksoft/conf/rules.aes, and /dksoft/html/app/, and hardcoded/default URLs including http://47.93.54[.]134:8005, https://47.93.54[.]134:8003, http://117.175.185[.]81:8003/, and host 43.132.205[.]118. The remote.bin component creates a virtual device named edge0 and joins a hardcoded community named dknife. Talos also published detection references including ClamAV signatures Win.Trojan.Shadowpad-10010830-1, Win.Loader.WizardNet-10044819-0, Win.Trojan.DarkNimbus-10059255-0, Win.Trojan.DKnife-10059257-0, Unix.Trojan.DKnife-10059259-0, and Win.Trojan.DKnife-10059260-0, as well as Snort rule 65533.

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

28 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)..."

T1195Supply Chain CompromiseEvidence3

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

T1566PhishingEvidence1

DKnife can also serve phishing pages. The phishing routes are defined in url.cfg, and several phishing templates were discovered under /dkay-scripts/.

T1566.002Spearphishing LinkEvidence1

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

Execution

1 technique
T1574.013KernelCallbackTableEvidence1

It delivers and interacts with the ShadowPad and DarkNimbus backdoors by hijacking binary downloads and Android application updates.

Persistence

4 techniques
T1037Boot or Logon Initialization ScriptsEvidence1

The code establishes persistence by modifying the /etc/rc.local file, a script commonly used to execute commands and scripts after the system boots and initializes services.

T1078Valid AccountsEvidence2

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

T1205Traffic SignalingEvidence1

For the Android variants, the backdoor attempts to contact a Baidu URL "http[:]//fanyi.baidu[.]com/query_config_dk" to retrieve its C2 information. This URL does not return any response from Baidu itself; rather, it serves as a recognizable trigger for DKnife, which intercepts the request and injects the C2 response.

T1547Boot or Logon Autostart ExecutionEvidence1

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

Privilege Escalation

3 techniques
T1037Boot or Logon Initialization ScriptsEvidence1

The code establishes persistence by modifying the /etc/rc.local file, a script commonly used to execute commands and scripts after the system boots and initializes services.

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

4 techniques
T1027Obfuscated Files or InformationEvidence1

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

T1205Traffic SignalingEvidence1

For the Android variants, the backdoor attempts to contact a Baidu URL "http[:]//fanyi.baidu[.]com/query_config_dk" to retrieve its C2 information. This URL does not return any response from Baidu itself; rather, it serves as a recognizable trigger for DKnife, which intercepts the request and injects the C2 response.

T1574.013KernelCallbackTableEvidence1

It delivers and interacts with the ShadowPad and DarkNimbus backdoors by hijacking binary downloads and Android application updates.

Credential Access

5 techniques
T1040Network SniffingEvidence5

DKnife inspects traffic to monitor and report user’s network activity to its remote C2 in real time.

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

Cisco Talos uncovered “DKnife,” a fully featured gateway-monitoring and adversary-in-the-middle (AitM) framework comprising seven Linux-based implants that perform deep-packet inspection, manipulate traffic, and deliver malware via routers and edge devices.

T1649Steal or Forge Authentication CertificatesEvidence1

For harvesting email credentials, the sslmm.bin component presents its own TLS certificate to clients, terminates and decrypts POP3/IMAP connections, and inspects the plaintext stream to extract usernames and passwords.

Discovery

1 technique
T1040Network SniffingEvidence5

DKnife inspects traffic to monitor and report user’s network activity to its remote C2 in real time.

Collection

2 techniques
T1056.003Web Portal CaptureEvidence1

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

T1557Adversary-in-the-MiddleEvidence5

Cisco Talos uncovered “DKnife,” a fully featured gateway-monitoring and adversary-in-the-middle (AitM) framework comprising seven Linux-based implants that perform deep-packet inspection, manipulate traffic, and deliver malware via routers and edge devices.

Command and Control

8 techniques
T1071.001Web ProtocolsEvidence3

When an HTTP request’s Host and URI match the configured rule, DKnife evaluates the rule’s duration and interval timers to determine whether to trigger. If the rule fires and the requested filename has a matching extension (e.g., “.exe”, “.rar”, “.zip”, or “.apk”), DKnife forges an HTTP 302 redirect whose Location URL is taken from the rule’s data field.

T1071.004DNSEvidence1

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

T1090ProxyEvidence2

This component acts as the reverse proxy server for the AitM attack and is implemented as a pre-configured, customized build of HAProxy.

T1090.002External ProxyEvidence1

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

T1105Ingress Tool TransferEvidence4

After creating the folders for DKnife deployment, the downloader fetches the DKnife archive from the C2 and launches every binary in /dksoft/bin/ using nohup [filepath] 2>/dev/null 1>/dev/null &.

T1205Traffic SignalingEvidence1

For the Android variants, the backdoor attempts to contact a Baidu URL "http[:]//fanyi.baidu[.]com/query_config_dk" to retrieve its C2 information. This URL does not return any response from Baidu itself; rather, it serves as a recognizable trigger for DKnife, which intercepts the request and injects the C2 response.

T1219Remote Access ToolsEvidence1

This component functions as an N2N peer-to-peer VPN client. When executed it creates a virtual network device named “edge0” and attaches it to a P2P overlay, automatically joining the hardcoded community dknife and registering with the embedded supernode.

T1572Protocol TunnelingEvidence1

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

Exfiltration

2 techniques
T1041Exfiltration Over C2 ChannelEvidence1

Postapi.bin loads the configuration file server.conf to obtain the address of the remote C2 server used for data exfiltration... The component uses libcurl to send different types of exfiltrated and reporting data via HTTP POST requests to specific API endpoints.

T1567Exfiltration Over Web ServiceEvidence1

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

Impact

1 technique
T1565.001Stored Data ManipulationEvidence5

DKnife supports both IPv4 and IPv6 DNS hijacking.

Other

2 techniques
T1562.001Disable or Modify ToolsEvidence2

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

T1562Impair DefensesEvidence1

The DKnife traffic inspection module actively identifies and interferes with communications from antivirus and PC-management products... When a match is found, the module drops or otherwise disrupts the traffic with the crafted TCP RST packet.

INDICATORS OF COMPROMISE

IOCs tracked for this family

21 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Full values are available in Mallory.

View more in app
Network
4 tracked

IPs, domains, and DNS infrastructure linked to this family.

Hashes
4 tracked

File hashes (MD5, SHA-1, SHA-256) from samples and reports.

Other
13 tracked

Other indicator types observed in public reporting.

TypeValueLatest sighting
ip.v4●●●●●●●●●●●●View more in app5 months ago
ip.v4●●●●●●●●●●●●View more in app5 months ago
hash.sha256●●●●●●●●●●●●View more in app5 months ago
uri●●●●●●●●●●●●View more in app5 months ago
uri●●●●●●●●●●●●View more in app5 months ago
uri●●●●●●●●●●●●View more in app5 months ago
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 matching21

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 mapping28

Every documented technique, ranked by evidence weight.

Researcher chatter

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