Skip to content
Skillpedia
Security6.4k Β· #14220

analyze-apk

What it does

It guides a step-by-step static analysis of an Android APK file using the Androguard tool, from reading its metadata to scanning for vulnerabilities. It is for security reviewers and developers examining Android apps.

When to use it

  • βœ“When a security reviewer receives an Android app file and needs a full static review.
  • βœ“When a developer wants to check their own Android app for risky settings or exposed web addresses.
  • βœ“When an analyst needs a written report of the app's findings.

Skill link

https://github.com/androguard/androguard/blob/master/.claude/skills/analyze-apk/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/androguard/androguard/blob/master/.claude/skills/analyze-apk/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œRun a full static analysis on this Android app file and give me a written report.”

5 new skills a week. 1 minute to read.

How it works

The skill runs the Androguard tool in phases: first a basic overview, then listing classes and methods, then decompiling, searching for references and scanning for known problems. It ends with a report.

Technical content (original SKILL.md)

Original text by the author, straight from 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 from androguard -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.

FAQ

Does this run the app?

No. It is static analysis, which reads the app files without starting the app.

What does the report include?

It includes confirmed findings and notes on any scan results that were not verified.

What is needed first?

The skill needs the Androguard tool installed, with the decompiler extra for the full review.

Details

Original description by the author

Full static analysis of an Android APK with Androguard β€” metadata, decompile, findrefs, vulns, markdown report

repo: androguard/androguard

Popularity

GitHub stars
6.4k
Ranking position
#14220
License
Apache-2.0
Updated
10/25/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills