android-pentest

A penetration-testing workflow for Android applications, including APK inspection, runtime testing, traffic capture, and dynamic analysis. An APK is the installable package used by an Android app.

In plain words
What is it for?
Exploring installed apps on devices or emulators, capturing and replaying requests, inspecting decompiled code, testing authentication and authorization, examining sensitive data flows, and recording evidence for a security report.
Why use it?
It starts with real app behavior and network traffic, escalating to code inspection or function hooking only when normal observation cannot reveal the data flow.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/fb0sh/pentester/android-pentest
Any agent
npx skills add fb0sh/pentester --skill android-pentest
Clone the repo
git clone --depth 1 https://github.com/fb0sh/pentester

Made for: Claude Code, Codex.

Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 670 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.00032 $0.00670
Opus 5 $0.00016 $0.00335
Sonnet 5 $0.00006 $0.00134
Haiku 4.5 $0.00003 $0.00067

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

Security

Grade A, and why

android-pentest 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 2d 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.

Origin

This is a copy

100% identical to android-pentest — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.agents/skills/third-party/android-pentest/SKILL.md · 61 lines

What it actually says

安卓应用渗透测试 Skill

针对安卓应用的专项渗透测试,遵循 runtime-first 原则:先运行态驱动、先抓包,最后才逆向。

需要更深入的客户端逆向知识? 使用 client-reverse Skill,包含完整的签名恢复、加密还原、Burp 重放工作流。

核心原则

不要先逆向 APK。默认操作顺序:

  1. 确认目标 App 已安装在连接设备上
  2. 准备好 Burp 或 Charles 抓包
  3. 用 scrcpy_vision 驱动真实业务流程
  4. 每个关键动作后检查抓包状态
  5. 包可见且可重放 → 直接做 Web/API 安全测试
  6. 只有抓不到包/包被加密时 → 升级到 jadx/frida/ida

1. 环境准备

  • 通过 adb-mcp 连接设备/模拟器
  • 通过 jadx 反编译目标 APK
  • 通过 burp-mcp 配置代理抓包

2. 自动化探索

  • 启动 APP,通过 adb-mcp 自动截图
  • 通过 frida-mcp Hook 关键函数
  • 通过 burp-mcp 捕获和分析数据流
  • 自动点击 UI 元素,遍历功能点
  • 模拟用户行为,识别敏感数据流

3. 深度分析

  • 通过 jadx 审计源码(硬编码密钥、弱加密等)
  • 通过 frida 动态 Hook(SSL Pinning 绕过、参数篡改)
  • 通过 burp 修改重放请求(鉴权绕过、越权测试)

4. 漏洞验证

  • 构造恶意输入,验证漏洞
  • 截图记录漏洞证据
  • 生成 PoC

5. 输出

  • 安卓专项渗透报告
  • 包含截图、流量、代码审计结果

参考文档

  • references/android-authorized-app-pentest-sop.md — 安卓 App 渗透 SOP
  • references/android-external-url-runtime-first-workflow.md — 安卓外部 URL 测试
  • references/android-ui-driven-observation-and-packet-loop.md — UI 驱动观察循环
  • references/android-network-layer-testing-quick-reference.md — 网络层测试速查
  • references/android-signing-and-crypto-workflow.md — 签名与加密工作流
  • references/android-static-triage-and-callflow.md — 静态分层与调用链
  • references/android-dynamic-hooking-and-replay.md — 动态 Hook 与重放
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. 2d ago First seen · 61 lines · 32 tokens per session scan A cd6fe4453d74

Subscribe to this mod's changes

android-pentest is a skill published in the GitHub repository fb0sh/pentester (23 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 670 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to android-pentest, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

mobile-security

Mobile application security testing (Android + iOS) mapped to OWASP MASVS/MASTG — static reversing (Flutter AOT, Unity IL2CPP, React Native/Hermes, native ARM64, Mach-O/Swift), SAST (manifest/IPC, storage, crypto, signing), dynamic analysis (Frida/objection, TLS-pinning + root/jailbreak bypass, traffic interception)…

transilienceai/communitytools · 90 tokens

transilience-report-style

Threat Intelligence Report Design System — ReportLab-based PDF generation for A4 reports with Transilience branding, typography, and layout standards.

transilienceai/communitytools · 31 tokens

firewall-review

Evidence-safe firewall ruleset audit reference specification — 22 documented detector patterns (17 vendor-agnostic plus 5 FortiGate-specific), a 15-check semantic catalogue, CIS Fortinet FortiGate Benchmark guidance, a custom customer-policy benchmark, and consolidated network-team Excel profiles including grouped…

transilienceai/communitytools · 100 tokens

pentest-engagement

Run a professional penetration engagement OR a network vulnerability scan from a scope. WEB mode (apex domains / app URLs) — mandatory surface expansion, systematic OWASP attack-class coverage, reversible active exploitation, authoritative validation, Transilience PDF. NETWORK mode (a list of IPs/CIDRs, e.g. 1500…

transilienceai/communitytools · 140 tokens

attack-path-stitcher

Stitches confirmed single-asset findings into multi-hop attack paths across the organization. Builds a graph where nodes are assets and edges are confirmed exploit hops citing the findings that enable them.

transilienceai/communitytools · 42 tokens

coordination

Pentest coordination — orchestrates executor and validator agents with context-controlled spawning. Entry point for all engagements.

transilienceai/communitytools · 24 tokens