r/OperSec • • 2h ago

📱 ANDROID MALWARE 📱 Static analysis of a Chinese game lag-switch APK: repackaged Tencent QNET inside a CloudInject card-key shell

Been busy with studying, but I never stopped hunting for APKs. I've got an AI bot running 24/7 that collected a list of 111 of them in two weeks, so I finally have a backlog to work through. First up is a Chinese game cheat I found on a punycode-hosted APK directory with 7 APKs from the same "game-network-degradation" family.

It's a commercial lag switch built on Tencent WeTest's QNET, a legit weak-network testing tool.

Full writeup with screenshots (another long writeup warning): https://loop.runs-on.dev/research/chinese-game-cheat-qnet/chinese-game-cheat-qnet

Sample identifiers

Cheat APK: 魔万弱网QNET加强版 (Magic World Weak Network QNET Enhanced Edition), 8.5 MB

Outer SHA-256: ce5af80ff0a06e89fe105ba90803b8b25da6bb4b8611773412f152cef9af8cc4

Embedded plugin (an APK): assets/cloudinject (25,714 bytes)

Plugin SHA-256: 75c328022af1b7d4a613af59df5f5dc46311aa6ff7d9fbd4ae7b32ed5428bc31

Original for comparison: qnet_v8.9.27.apk, SHA-256 15bd1355e2f253f99f3599b8a88c54314afb71b0ab122d36613bbcd25ebf714f

Cheat package: jiangshaopojie.com

1. It's the original QNET engine, repointed at games

QNET builds a local VPN with LocalVpnService, routes selected apps through a userspace TCP/UDP proxy and degrades the traffic on purpose (loss, delay, jitter, bandwidth, burst). The cheat keeps all of it: 186 com.tencent.qnet.* classes, the pcap writer, and the ICMP engine in libnative-libicmp.so. Only the target and the intention changed.

2. The repack tells

  • Original is signed by a Tencent QA key (CN=Quark Zou, OU=Sgame QA, O=Tencent), the cheat by the stock AOSP test key
  • versionCode 999 vs. the original's 80927
  • Package name contains "pojie" (破解, "cracked"), and the domain goes nowhere
  • Adds READ_PHONE_STATE, MANAGE_EXTERNAL_STORAGE, REORDER_TASKS and QUERY_ALL_PACKAGES, and drops the login wall
  • Declares BIND_VPN_SERVICE as a uses-permission, which is not how a normal app gets it

3. The CloudInject (云注入) shell

assets/cloudinject looks encrypted but is a plain ZIP (PK\x03\x04) holding an unsigned plugin APK (com.cloudinject.resplugin, build 1.4.94). Its 10 KB dex is only UI: the floating menu and the card-key (卡密) dialog. A blind run of my apkinspect tooling produced a byte-identical unpack, so there's no hidden encrypted layer.

The framework in classes3.dex is fully readable:

  • DES/CBC with a string literally named default_secret_key
  • OEM shims for Huawei, MIUI, Flyme, Vivo and OPPO
  • PackageInstaller reflection shims for API 21 to 28
  • LSPosed HiddenApiBypass and InMemoryDexClassLoader
  • A pool of stub ProxyActivity classes so plugin screens don't need manifest entries
  • Telemetry to https://log-report.com/report

4. How the lag actually works

The cheater's device delays only the outgoing packets, so their own screen looks smooth while everyone else sees them teleport and rubberband. QNET's presets are named after elevators, subways and high-speed trains, so the degradation looks like real bad network. That's why packet-level detection is basically hopeless.

Also, The cloudinject skeleton also shows up in a CSDN writeup, so it's been shipped in other samples. So there is that as well.

3 Upvotes

0 comments sorted by