re-android-crypto

re-android-crypto is a skill for Claude Code from dslsdzc/rev-skills. It costs 95 tokens per session (1,875 once invoked), scanned A, original, Apache-2.0.

An Android security-audit guide for examining how an app stores and uses encryption keys, including Android Keystore, the system for protected key storage. It also covers locating encryption calls and intercepting them with Frida, a runtime inspection tool, without recording key bytes.

In plain words
What is it for?
Use it to audit Keystore keys, Cipher and KeyInfo usage, encryption call chains, and supported libraries such as BoringSSL, OpenSSL, Tink, and libsodium.
Why use it?
It helps reconstruct an app’s encryption setup when keys are hardware-protected or cannot be directly extracted.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to audit Keystore keys, Cipher and KeyInfo usage, encryption call chains, and supported libraries such as BoringSSL, OpenSSL, Tink, and libsodium.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-android-crypto
Install

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.

Any agent
npx skills add dslsdzc/rev-skills --skill re-android-crypto
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

Wrote 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.

agentmods badge for re-android-crypto

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-android-crypto/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-android-crypto)
Your own site
<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.

agentmods 80×15 button for re-android-crypto

Your own site · 80×15
<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>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,875 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 9d ago against content hash b5d96e4fa196, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

.claude/skills/re-android-crypto/SKILL.md · 99 lines

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 枚举需应用进程内执行)

操作步骤

  1. 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]])
    • 产出:别名 → 算法/用途/硬件背书 清单(不记录密钥字节)
  2. 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 结果互证

Read the full file on GitHub · 99 lines

Changes

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.

  1. 9d ago First seen · 99 lines · 95 tokens per session scan A b5d96e4fa196

Subscribe to this mod's changes

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.

Related

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…

Youngmaidainon/Agent-Level-Up · 95 tokens

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…

mukul975/Anthropic-Cybersecurity-Skills · 95 tokens

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.

Netw0rkNoob/VulnClaw · 57 tokens

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.

Netw0rkNoob/VulnClaw · 32 tokens

Reverse Engineering & Binary Analysis

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

analysis

Run Quark Engine analysis on an APK file — produces summary, detail, JSON, web, call graph, behavior map, and classification reports.

ev-flow/quark-engine · 31 tokens