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-cryptogit 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-crypto)<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-android-crypto"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-android-crypto/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-android-crypto"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-android-crypto.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00095 | $0.01875 |
| Opus 5 | $0.00048 | $0.00937 |
| Sonnet 5 | $0.00019 | $0.00375 |
| Haiku 4.5 | $0.00010 | $0.00187 |
Grade A, and why
re-android-crypto 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 9d 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 — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Android 加密体系审计(crypto audit)
任务分类器(intent → 路径)
| 用户目的 | 路径 |
|---|---|
| 密钥来自 AndroidKeyStore / 硬件背书密钥 | → Keystore 审计(步骤 1) |
| 定位加密调用点 / 拦截密文与明文 | → crypto hook(步骤 2) |
| 分析第三方加密库(BoringSSL / OpenSSL / Tink / libsodium 等) | → 库分析(步骤 3) |
何时使用 / 何时不用
- 用:Android 应用加密体系审计——密钥体系(Keystore)、加解密调用链、库选型还原
- 用:
getEncoded()不可用的硬件背书密钥(须走审计而非提取密钥字节) - 用:加密拦截时需记录密钥别名与用途(不记录密钥字节——安全边界)
- 不用:JNI/so 原生逻辑逆向(走 [[re-android-native]]);通用加密算法识别(走 [[re-crypto-id]]);通用密钥提取([[re-crypto-keys]],Keystore 硬件密钥除外)
- 不用:非 Android 平台(走通用 crypto 域 [[re-protocol]] 分支)
- 边界:本技能承接 Android crypto audit 全谱——Keystore/Cipher/KeyInfo/hook 为起点,BoringSSL/OpenSSL/Tink/libsodium 等第三方库分析归入本技能(步骤 3),不塞入 re-android-native
工具准备
所有工具先验证再使用。动态 hook 默认沙箱([[platform-tips]] 最高原则);静态审计可免沙箱。
frida([[re-frida]])—— crypto hook 主力
- 安装与验证见 [[re-frida]] 工具准备;脚本模板见 [[frida-scripts]]
- 验证:
frida --version
python3 / jadx —— 静态定位加密调用点
- python3 安装与验证见 [[re-python]] 工具准备
- jadx 安装与验证见 [[re-apk]] 工具准备
设备侧命令([[re-apk]] adb 章节)
adb shell取应用运行态(KeyStore 枚举需应用进程内执行)
操作步骤
-
Keystore 审计(AndroidKeyStore 密钥体系):
// 应用进程内枚举(frida 注入或 jadx 反编译定位调用点) KeyStore ks = KeyStore.getInstance("AndroidKeyStore"); ks.load(null); java.util.Enumeration<String> aliases = ks.aliases();- 遍历:
aliases()枚举全部条目(密钥别名 = 应用内引用键) - 条目属性:算法(AES/RSA/EC)、用途(encrypt/decrypt/sign/verify)、来源——
KeyInfo.isInsideSecureHardware(硬件背书);TEE 与 StrongBox 区分需isStrongBoxBacked(API 28+) - 生物绑定:
setUserAuthenticationRequired的密钥在认证失败时不可用(绕过与检测见 [[anti-dynamic-workflow]]) - 产出:别名 → 算法/用途/硬件背书 清单(不记录密钥字节)
- 遍历:
-
crypto hook(加密调用点拦截):
// frida:拦截 Cipher 初始化,记录算法/模式/密钥别名 const Cipher = Java.use('javax.crypto.Cipher'); Cipher.init.overload('int', 'java.security.Key', 'java.security.spec.AlgorithmParameterSpec').implementation = function (opmode, key, params) { const ks = Java.use('java.security.KeyStore').getInstance('AndroidKeyStore'); const alias = ks.getKeyAlias(key); // 取别名(若有) console.log('Cipher.init', opmode, alias ? alias.toString() : '(非Keystore密钥)', params); return this.init(opmode, key, params); };- hook 目标:
Cipher.init系列(算法/模式/IV 来源)、KeyStore.getKey/getEntry(别名与用途)、Signature/Mac初始化(验签/校验链) - 记录:别名与用途,不记录密钥字节(安全边界,见坑 2)
- 静态定位辅助:jadx 搜
AndroidKeyStore/KeyStore.getInstance/Cipher.getInstance调用点,与 hook 结果互证
- hook 目标:
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.
- 9d ago First seen · 99 lines · 95 tokens per session scan A b5d96e4fa196
re-android-crypto is a skill published in the GitHub repository dslsdzc/rev-skills (50 stars, last pushed 10d ago), licensed Apache-2.0. It adds 95 tokens to every session and 1,875 once invoked, about $0.0005 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.
analysis
Run Quark Engine analysis on an APK file — produces summary, detail, JSON, web, call graph, behavior map, and classification reports.