analyze-apk
它能做什么
它使用 Androguard 工具,引导对 Android APK 文件进行分步骤的静态分析,从读取元数据到扫描漏洞。适用于审查 Android 应用的安全审查人员和开发者。
适用场景
- ✓当安全审查人员收到一个 Android 应用文件,需要进行完整的静态审查时。
- ✓当开发者想检查自己的 Android 应用是否存在风险设置或暴露的网址时。
- ✓当分析人员需要一份关于应用发现的书面报告时。
技能链接
https://github.com/androguard/androguard/blob/master/.claude/skills/analyze-apk/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请对这个 Android 应用文件进行完整的静态分析,并给我一份书面报告。”
每周 5 个新技能,1 分钟读完。
工作原理
该技能分阶段运行 Androguard 工具:先做基础概览,然后列出类和方法,接着反编译,搜索引用,并扫描已知问题。最后生成报告。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
/analyze-apk — Androguard static analysis
Input
$ARGUMENTS — path to an APK (preferred). If only a package name is given, look under workspace/samples/ for a matching APK or ask for a path.
Set:
$APK— APK path$PKG— package name fromandroguard -i $APK(or manifest)
Phase 1 — Recon
androguard -i "$APK"
unzip -l "$APK" | head -80
unzip -l "$APK" | grep -E '\.so$|classes.*\.dex' | head -40
Record package, main activity, DEX count, permissions, signing notes, native libs.
Phase 2 — Inventory
androguard -i "$APK" --list-classes | head -200
androguard -i "$APK" --list-methods | head -200
Identify the app’s own package prefix for --only-package.
Phase 3 — Decompile (requires [decompile])
mkdir -p "workspace/output/$PKG"
androguard -i "$APK" -d "workspace/output/$PKG/" --only-package "$PKG"
If decompiler missing: pip install -e '.[decompile]' (with PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1 on 3.14+).
Phase 4 — Search & vulns
androguard -i "$APK" --findrefs string --findrefs-value http
androguard -i "$APK" --findrefs string --findrefs-value api
androguard -i "$APK" --scan-vulns
Also search decompiled tree for secrets/URLs (rg / grep on workspace/output/$PKG).
Phase 5 — Deep methods
For suspicious methods:
androguard -i "$APK" --decompile-method 'fully.qualified.Class#method'
androguard -i "$APK" --disasm --class 'ClassName' --method 'methodName' # needs [disasm]
Phase 6 — Report
Write workspace/reports/$PKG-$(date +%Y-%m-%d).md using the agent report template.
Every finding needs evidence (path or class#method) and impact — not a bare checklist.
常见问题
这会运行应用吗?
不会。这是静态分析,即在不启动应用的情况下读取应用文件。
报告包含什么?
它包含已确认的发现,以及未经验证的扫描结果说明。
首先需要什么?
该技能需要已安装 Androguard 工具,并安装反编译扩展以完成完整审查。
详情
作者的原始描述
Full static analysis of an Android APK with Androguard — metadata, decompile, findrefs, vulns, markdown report
repo: androguard/androguard
热度
- GitHub 星标
- 6.4k
- 排名
- #14220
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/25
评论
- …