ClientKing
- Type
- Backdoor
- Capabilities
- Credential theftPersistenceLateral movementPost exploitationDefense evasionReconnaissance
- Platforms
- LinuxNetwork device
ClientKing is a Rust-based backdoor used by the China-based threat actor Jewelbug to access Linux servers and routers. Builds target x86-64 servers, ARM64 devices, and ASUSWRT routers. Its capabilities include interactive shell access, command execution, file operations, reconnaissance, SOCKS proxying for network pivoting, and loading kernel modules directly from memory.
ClientKing supports five command-and-control transports: HTTP, HTTPS, WebSocket, WebSocket Secure, and a custom DNS tunnel. Later builds use AWS API Gateway fronting. Its associated Linux toolkit includes kernel and shared-library preload rootkits, together with a malicious PAM authentication module that steals credentials through authentication operations involving su and sudo. Persistence mechanisms include startup scripts on Linux and ASUSWRT systems.
ClientKing forms part of Jewelbug’s espionage toolkit alongside the Antino Windows backdoor and malicious PDF Viewer browser extension. Its command-and-control infrastructure overlaps with the group’s XG-Web ecosystem. Researchers identified 37 builds derived from a common source tree with target-specific configurations. Some builds contained an internal proxy configuration belonging to a major U.S. industrial and aerospace manufacturer, demonstrating specific targeting without independently establishing a successful compromise.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
“ClientKing targets Linux servers and network devices. The bucket held 37 builds of this Rust implant, compiled from one source tree and differing only in a per-target configuration block.”
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
The researchers explained that the threat actor obtained write access to the webmail installation used by multiple government ministries and agencies after compromising a shared web-hosting platform operated by the state telecommunications provider and national services agency.
Execution
2 techniques
Execution
Jewelbug also uses a Rust-based implant called ‘ClientKing’ that targets Linux servers, ARM64 devices, and ASUS routers, and supports command execution
Alongside Antino, Jewelbug used a Linux and router implant known as ClientKing, which supported multiple C2 methods, including DNS tunnelling and provided remote shell access and pivoting capabilities.
Persistence
1 technique
Persistence
A companion toolkit added a kernel-module rootkit and a malicious authentication module hooked into the secure shell su and sudo to steal credentials.
Stealth
2 techniques
Stealth
"A parallel toolkit features a kernel-module rootkit..."
Jewelbug also uses a Rust-based implant called ‘ClientKing’ that targets Linux servers, ARM64 devices, and ASUS routers, and supports command execution, SOCKS proxying, DNS tunneling, and in-memory kernel module loading.
Defense Impairment
1 technique
Defense Impairment
A companion toolkit added a kernel-module rootkit and a malicious authentication module hooked into the secure shell su and sudo to steal credentials.
Credential Access
1 technique
Credential Access
A companion toolkit added a kernel-module rootkit and a malicious authentication module hooked into the secure shell su and sudo to steal credentials.
Command and Control
8 techniques
Command and Control
"Both missions are administered from a single control panel, XG-Web, a browser-centric remote-access and information-stealing framework that turns a victim's browser into a full remote-control channel..."
Finally, the group also abused Google Docs for payload delivery and C2. When operators launched a campaign, the backend created public Google documents containing obfuscated payloads, which implants would retrieve and execute.
"ClientKing, a Rust implant that targets Linux servers and routers, and uses five C&C channels, including a DNS tunnel..."
"The group's separate Linux and router implant enables it to extend its reach into network infrastructure, with a couple of builds configured to beacon through the internal corporate proxy..."
"ClientKing... uses five C&C channels, including a DNS tunnel, to facilitate interactive shell, SOCKS pivoting..."
The hackers used public Google Docs to host obfuscated payloads retrieved and executed by their implants, helping the malicious traffic blend in with legitimate Google services.
ClientKing... supported five C&C transports, including a custom domain-name-system (DNS) tunnel.
The malware supported multiple covert command-and-control (C2) methods, including Microsoft Graph/Outlook APIs, DNS tunnelling and ICMP tunnelling.
Exfiltration
1 technique
Exfiltration
researchers found more than 580,000 full browser cookie jars, 2,300 fully exfiltrated email bodies, and several thousand login credentials in Jewelbug's coffers
Observables
14 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.