zhima
- Type
- Proxyware
- Capabilities
- ExfiltrationPost exploitation
- Platforms
- Android
Zhima is an Android reverse-proxy malware module used to convert compromised devices into residential proxy nodes. It has been observed as a later-stage payload in a multi-stage malware chain targeting Android-based automotive head units running DoFun software, where attackers abused the legitimate TWCore update mechanism to install intermediary components that ultimately downloaded and executed zhima. The same module has also been documented on Android TV and set-top box ecosystems associated with the BADBOX operation, indicating reuse across consumer Android device classes.
On infected systems, zhima is delivered through a loader command that retrieves additional code and invokes the module dynamically. Its role is to establish outbound connections to operator-controlled relay infrastructure and forward third-party traffic through the victim device, effectively enrolling the device into a proxy botnet. Analysis of zhima variants shows support for reverse-proxy functionality including SOCKS5 and HTTP CONNECT style traffic relaying, with the infected device acting as an exit node while maintaining outbound-only connectivity to the relay. This design reduces exposure of directly reachable listening services on the victim while still enabling proxy abuse.
Zhima has been linked with monetization-focused activity attributed with high confidence to MoYu Group, an actor associated with the BADBOX ecosystem and residential proxy services such as PXYEDGE and ProxyForU. In the automotive campaign, operators also used adjacent malware stages for ad fraud, web requests, and device-information collection, while zhima specifically provided the proxy-botnet capability. Targeted platforms directly supported by the evidence are Android-based head units and Android TV or set-top box devices. The malware's operational purpose is covert traffic relaying and botnet expansion rather than destructive effects or direct interference with vehicle safety-critical functions.
Associated threat actors
3 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Stage 3 – Clicker / Reverse proxy loader : ... télécharge et exécute le module zhima (proxy inversé).
Researchers found that operators were using commands to fetch a reverse-proxy module named zhima, allowing an infected head unit to relay traffic for someone else.
The app downloads the JAR at url2, verifies it against md52, loads it with a DexClassLoader, and calls com.miyc.transfer.Client.start(…) with the relay address and ports from params. The name field, zhima, is the operator's own label for what comes next.
Techniques & procedures
24 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
2 techniques
Initial Access
Rather than tricking drivers into installing a suspicious app, attackers used the software update path already built into Android-based head units.
Le malware est distribué via TWCore ( com.tw.core ), une application système légitime responsable des mises à jour du firmware. TWCore reçoit des instructions via un broker MQTT hébergé sur cardoor[.]cn , qui lui ordonne de télécharger et d’installer des APK malveillants.
Execution
2 techniques
Execution
Stage 3 – Clicker / Reverse proxy loader : Contacte le C2 toutes les 90 minutes, reçoit des commandes ( loadlib2 , http , web , deeplink , traceroute , etc.), télécharge et exécute le module zhima (proxy inversé).
Researchers found nine commands, including ones that can change the clipboard, send HTTP requests, load web pages, and run JavaScript.
Stealth
4 techniques
Stealth
Every string literal in the module is run through a per-character Caesar shift (subtract a per-string key)...
It decrypts data stored as encrypted blocks within the Trojan’s code. Each block is XOR-encrypted with a single-byte key that shifts linearly from block to block.
the malware sends a POST request to /cpc/api/task every 90 minutes by default, containing information about the infected device (display resolution, device model, the SSID of the connected Wi-Fi network, MAC address, and so on)
The app downloads the JAR at url2, verifies it against md52, loads it with a DexClassLoader, and calls com.miyc.transfer.Client.start(…).
Credential Access
1 technique
Credential Access
allowing an infected head unit to relay traffic for someone else. This turns a car screen into part of a hidden network.
Discovery
3 techniques
Discovery
Exfiltration d’informations (résolution d’écran, modèle, SSID Wi-Fi, adresse MAC)
Exfiltration d’informations (résolution d’écran, modèle, SSID Wi-Fi, adresse MAC)
the malware sends a POST request to /cpc/api/task every 90 minutes by default, containing information about the infected device (display resolution, device model, the SSID of the connected Wi-Fi network, MAC address, and so on)
Lateral Movement
1 technique
Lateral Movement
HTTP CONNECT and UDP do not get the same check. The gap is not academic: the highest-impact local-network target, the exit device's own ADB daemon on TCP :5555, needs only a TCP tunnel to reach...
Collection
2 techniques
Collection
copy Set the contents of the clipboard.
allowing an infected head unit to relay traffic for someone else. This turns a car screen into part of a hidden network.
Command and Control
10 techniques
Command and Control
The third stage checks in at regular intervals... then receives fresh configuration data or commands.
Envoie des informations sur l’implant au C2 via POST ... Stage 3 ... Envoie toutes les 90 minutes des informations sur l’appareil infecté ... au C2 via /cpc/api/task
Researchers found that operators were using commands to fetch a reverse-proxy module named zhima, allowing an infected head unit to relay traffic for someone else.
The resulting botnet powers a so-called residential proxy service, allowing attackers to route their traffic through infected devices
Stage 3 – Clicker / Reverse proxy loader : ... télécharge et exécute le module zhima (proxy inversé).
Only loadlib2 and http were seen in use, with loadlib2 pulling down zhima, the reverse proxy module... This confirms that the attackers’ ultimate goal is building a proxy botnet.
Three ports face the relay: :9999 carries registration and the control plane, :7777 carries the bulk data plane, and :5555 is a per-job bridge for heavier sessions.
Stage 2 – Loader : Envoie des informations sur l’implant au C2 via POST, reçoit en retour un lien de téléchargement pour le stage 3.
Stage 2 – Loader : Envoie des informations sur l’implant au C2 via POST, reçoit en retour un lien de téléchargement pour le stage 3.
If the configuration is outdated, the C2 server returns an updated configuration containing new C2 addresses and new paths for sending HTTP requests.
Impact
1 technique
Impact
Création d’un botnet proxy résidentiel via le module zhima
Observables
70 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.