A rebuilt / 魔改 Frida frida-server for Android arm64.
Follows official Frida release tags. Same client, same version number, different binary.
English | 简体中文
| Official Frida | Morphida | |
|---|---|---|
| What it is | frida-server from frida.re |
The same server, rebuilt from the matching upstream tag |
| Client | frida / frida-tools |
Same — pip install frida==<ver> |
| Protocol | stock | stock (frida:rpc and the usual client/server contract) |
| Version | 17.17.0 |
17.17.0-r… — the prefix is the Frida tag |
| Artifact | frida-server |
frida-server-<ver>-android-arm64.gz |
| Extra | — | Per-build morph of static fingerprints; daily CI tracks new Frida releases |
This is not a new instrumentation framework. If you already use Frida, you keep using the official client against this server.
Morphida is a thin build pipeline around Frida: it does not vendor the Frida tree. Each CI run clones an upstream release tag, applies a small patch set, randomizes giveaway names/strings, strips symbols, and publishes an Android arm64 frida-server.
Two builds of the same Frida version do not share the same static fingerprint — that is the morph.
This is a from-scratch standalone line of work (formerly Florida standalone). It is not the old Florida mega-patch set.
| Target | Android arm64 frida-server |
| Branch | standalone (default) |
| Upstream | latest Frida release tag (daily cron + manual) |
| Assets | frida-server-<ver>-android-arm64.gz |
- Polymorphic builds — per-build random tokens for process name, memfd name, agent SO prefix, GType/
fridastring prefix, thread names, path fingerprints, etc. - Binary sanitizer (
tools/sanitize.py) — length-preserving renames across the whole file (including C-string tables parked in.text) plus nested ELF string sections; DEX blobs left intact for ART. - Symbol strip — NDK
llvm-strip --strip-alldropsgum_*/frida_*debug symbols. - CI strings gate — build fails if hard signatures remain outside DEX (
Frida./gmain/gdbus/linjector/frida-corepaths, …). - Payload-base patch — correct protection restore when the spawn anchor is an exec-only mapping (Android 10+).
- Ops helpers — version-asserting connect script and hardened listen (random port + auth token).
frida-server-<ver>-android-arm64.gz
Release notes list the random tokens used for that build.
Client and server versions must match (frida --version == device server --version).
Prefer a non-frida filename on device — many apps grep for frida in paths.
# 1) push (example deploy name)
gunzip -k frida-server-*-android-arm64.gz # or gzip -d
adb push frida-server-*-android-arm64 /data/local/tmp/art-runtime-srv
adb shell "su -c 'chmod 755 /data/local/tmp/art-runtime-srv'"
# 2) start
adb shell "su -c 'nohup /data/local/tmp/art-runtime-srv -l 0.0.0.0:27042 \
>/data/local/tmp/art-srv.log 2>&1 &'"
# 3) forward + use (-H; renamed binary is not the default USB frida-server)
adb forward tcp:27042 tcp:27042
frida-ps -H 127.0.0.1:27042
frida -H 127.0.0.1:27042 -f <package> -l hook.jstools/frida-connect.sh -s <adb-serial>
# prints READY endpoint: frida-ps / frida -H 127.0.0.1:<port>tools/run-server.sh -s <adb-serial> -b /data/local/tmp/art-runtime-srv
# then: frida -H 127.0.0.1:<port> --token <token> ...Detection / community prior art:
- hluwa/Patchs
- feicong/strong-frida
- qtfreet00/AntiFrida
- darvincisec/DetectFrida
- b-mueller/frida-detection-demo
Inspired by Ylarod/Florida and the wider anti-detection community:
@Ylarod · @hluwa · @feicong · @r0ysue · @hellodword · @qtfreet00
官方 Frida 的 Android arm64 frida-server 魔改 / 重编版。
跟随上游正式 tag。还是那套 client、同一个版本号,只换了设备上的 server 二进制。
English | 中文
| 官方 Frida | Morphida | |
|---|---|---|
| 是什么 | frida.re 的 frida-server |
用同一个上游 tag 重新编出来的同一个 server |
| Client | frida / frida-tools |
不换 — pip install frida==<版本> |
| 协议 | 官方 | 官方(含 frida:rpc 等客户端约定) |
| 版本 | 17.17.0 |
17.17.0-r… — 前缀就是 Frida tag |
| 产物 | frida-server |
frida-server-<版本>-android-arm64.gz |
| 额外 | — | 每次构建 morph 静态指纹;日构跟上游新版 |
这不是一套新的插桩框架。你已经会用 Frida,就继续用官方 client 对这个 server。
Morphida 是套在 Frida 外的薄构建流水线:仓库不 vendoring Frida 源码。CI 每次克隆上游 release tag,打一小撮补丁,随机化特征名/字符串,strip 符号,再发布 Android arm64 的 frida-server。
同一 Frida 版本的两次构建,静态指纹不同 —— 这就是 morph。
当前默认分支 standalone 为自维护产线(独立补丁集)。
| 产物 | Android arm64 frida-server |
| 分支 | standalone(默认) |
| 上游 | Frida 最新正式 tag(日构 cron + 手动) |
| 资产名 | frida-server-<版本>-android-arm64.gz |
- 多态构建 —— 每次随机进程名、memfd 名、agent so 前缀、GType/
frida串前缀、线程名、路径指纹等 - 二进制清洗(
tools/sanitize.py)—— 整文件等长重命名(含落在.text里的 C 字符串表)+ 嵌套 ELF 字符串段;DEX 原样保留以兼容 ART - 符号剥离 —— NDK
llvm-strip --strip-all去掉gum_*/frida_*调试符号 - CI 字符串门禁 —— DEX 外仍残留硬特征则构建失败
- payload-base 补丁 —— Android 10+ spawn 锚点为 exec-only 映射时的权限还原
- 运维脚本 —— 版本断言连接;随机端口 + token 硬化监听
frida-server-<版本>-android-arm64.gz
Release 说明里会列出本次随机 token。
本地 frida client 版本必须与设备上 server --version 严格一致。
设备上建议不要用带 frida 的文件名(很多 app 会扫路径)。
gunzip -k frida-server-*-android-arm64.gz
adb push frida-server-*-android-arm64 /data/local/tmp/art-runtime-srv
adb shell "su -c 'chmod 755 /data/local/tmp/art-runtime-srv'"
adb shell "su -c 'nohup /data/local/tmp/art-runtime-srv -l 0.0.0.0:27042 \
>/data/local/tmp/art-srv.log 2>&1 &'"
adb forward tcp:27042 tcp:27042
frida-ps -H 127.0.0.1:27042
frida -H 127.0.0.1:27042 -f <包名> -l hook.jstools/frida-connect.sh -s <adb-serial>tools/run-server.sh -s <adb-serial> -b /data/local/tmp/art-runtime-srv
# frida -H 127.0.0.1:<port> --token <token> ...- hluwa/Patchs
- feicong/strong-frida
- qtfreet00/AntiFrida
- darvincisec/DetectFrida
- b-mueller/frida-detection-demo
受 Ylarod/Florida 与反检测社区启发:
@Ylarod · @hluwa · @feicong · @r0ysue · @hellodword · @qtfreet00