Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add dslsdzc/rev-skills --skill re-android-nativegit clone --depth 1 https://github.com/dslsdzc/rev-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/dslsdzc/rev-skills/re-android-native)<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-android-native"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-android-native.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00048 | $0.03760 |
| Opus 5 | $0.00024 | $0.01880 |
| Sonnet 5 | $0.00010 | $0.00752 |
| Haiku 4.5 | $0.00005 | $0.00376 |
Grade A, and why
re-android-native scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Android 原生库(JNI/.so)逆向
入口判定(Decision Gate)
目标出现时先判形态,命中即转对应技能(自动调度分流):
目标
├── APK
│ ├── lib/*.so 存在?──是──→ 本技能(re-android-native)
│ └── 无 so(纯 Java)──→ re-apk
├── 单独 .so
│ ├── JNI 符号(Java_* / JNI_OnLoad / RegisterNatives 调用点)──→ 本技能
│ ├── 加密库 API(SSL_*/EVP_*/crypto_* 等)──→ re-android-crypto(加密语义)
│ └── 普通 ELF(无 JNI 特征)──→ re-binary-core(re-format-elf)
├── 加固 so(壳壳/熵高/导入表极小)──→ re-anti-analysis / re-mobile-pack(脱壳后回本技能)
└── 加密体系审计目标(Keystore/Cipher)──→ re-android-crypto
何时使用 / 何时不用
- 用:APK 里的
lib/*.so原生库——JNI 接口还原、注册方式(静态/动态)、native 逻辑分析 - 用:Java 层逻辑清楚但核心算法/反调试在 native(游戏、加固、加密逻辑)
- 用:Java 层只看到
System.loadLibrary+native声明,要定位与还原 native 实现 - 不用:只要 APK Java 层静态(走 [[re-apk]]);只要运行时 hook 不需要理解 .so 结构(走 [[re-frida]])
- 不用:so 是加固壳壳(先按 [[re-mobile-pack]] / [[re-anti-analysis]] 脱壳,见坑 5)
- 注意:动态插桩按 [[platform-tips]] 最高原则在受控设备 / 模拟器快照内执行
工具准备
静态分析(readelf / Ghidra 导入 .so)免沙箱;动态(frida / xhook)按 [[platform-tips]] 最高原则在受控环境执行。所有工具先验证再使用。
反编译工作台(so 加载)—— [[re-ghidra]] / [[re-ida]]
- [[re-ghidra]](默认):
File > Import File直接导入 ELF .so(arm64/arm/x86_64 都支持),Data Type Manager 载入 jni.h 类型(见 [[re-ghidra]] 工具准备) - [[re-ida]]:加载 so 后 ARM64 反编译;
Option > Load new type载入 jni.h - 验证: 导入 arm64 .so 后能反编译出
JNI_OnLoad或Java_*导出函数
jni.h —— JNIEnv 函数表结构理解(Android NDK 自带)
- 无独立发行版包,随 Android NDK 提供。官方途径:Android Studio SDK Manager 安装 NDK,或命令行:
sdkmanager "ndk;27.2.12479018" # 先确认 sdkmanager 在 PATH(Android SDK cmdline-tools) # 或 GitHub android-ndk 官方仓库下载对应版本 zip - 关键文件:
$NDK/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/jni.h(macOS 为 darwin-x86_64 路径) - 验证: 能打开 jni.h,看到
JNINativeInterface(函数表)与JNIEnv(函数表指针)定义
readelf(binutils)—— 导出表/架构识别([[re-format-elf]] 联动)
- Linux:
apt install binutils/dnf install binutils/pacman -S binutils - macOS:
brew install binutils(greadelf) - 验证:
readelf --version
frida([[re-frida]])—— JNI 运行时观察
- 主机
pip install frida-tools;设备 frida-server 推送安装见 [[re-frida]] 工具准备 - 验证:
frida-ps -U能列出设备进程
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 138 lines · 48 tokens per session scan A 893a12d367c3
re-android-native is a skill published in the GitHub repository dslsdzc/rev-skills (42 stars, last pushed 9d ago), licensed Apache-2.0. It adds 48 tokens to every session and 3,760 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
analyzing-golang-malware-with-ghidra
Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…
analyzing-golang-malware-with-ghidra
Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…
redteam-mobile-detail-pack
Domain routing and boundary guidance for authorized mobile application security testing, including insecure storage, certificate pinning bypass, exposed components, and binary reverse engineering. Use when a task belongs to the mobile testing domain and needs scope, evidence, pivot, or exit criteria.
android-pentest
A guide for authorized security testing of Android apps, covering APK inspection, runtime testing, traffic capture, code review, and function hooking. An APK is the installable package used by an Android app.
Reverse Engineering & Binary Analysis
Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.
rule-gen
Generate a Quark Engine detection rule from a behavior description and decompiled code. Validates the rule against a real APK before outputting it.