analyze-apk

analyze-apk is a command for Claude Code from TheQmaks/areclaw-plugin. It costs 16 tokens per session (1,614 once invoked), scanned A, original, MIT.

A command for carrying out a five-phase security review of an Android application package, or APK. An APK is the installable file used to distribute an Android app.

In plain words
What is it for?
It is for obtaining an APK, identifying protections and frameworks, examining its code and behavior, and producing a security report.
Why use it?
It organizes app acquisition, reconnaissance, static analysis, dynamic analysis, and reporting into one workflow that adapts to the app's protections and framework.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the areclaw plugin — 1 skill, 6 commands shipped together

Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add TheQmaks/areclaw-plugin
Claude Code
/plugin install areclaw

Made for: Claude Code.

Or install areclaw, the plugin that ships this one along with the rest of its 1 skill, 6 commands.

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 analyze-apk

README.md
[![agentmods](https://agentmods.dev/badge/commands/theqmaks/areclaw-plugin/analyze-apk.svg)](https://agentmods.dev/commands/theqmaks/areclaw-plugin/analyze-apk)
Your own site
<a href="https://agentmods.dev/commands/theqmaks/areclaw-plugin/analyze-apk"><img src="https://agentmods.dev/badge/commands/theqmaks/areclaw-plugin/analyze-apk.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,614 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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.00016 $0.01614
Opus 5 $0.00008 $0.00807
Sonnet 5 $0.00003 $0.00323
Haiku 4.5 $0.00002 $0.00161

Measured 5d ago against content hash 75254a46196c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

analyze-apk scanned grade A with 1 finding 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 5d 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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

# adb shell chmod 755 /data/local/tmp/<NAME>-server && adb shell /data/local/tmp/<NAME>-server -D &

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

plugins/areclaw/commands/analyze-apk.md · 153 lines

How it starts

The opening of the file, as written. The whole thing — 153 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/analyze-apk

Perform a comprehensive security analysis of an Android application. This covers APK acquisition, reconnaissance, static analysis, dynamic analysis, and report generation. The workflow adapts its strategy based on what protections and frameworks the app uses.

Instructions

1. Parse input and acquire the APK

If the user provided a file path (contains / or \ or ends in .apk), use it directly. If the user provided a package name, acquire the APK:

# Option A: Pull from connected device
adb shell pm path <package-name>
adb pull <device-path> workspace/samples/

# Option B: Download from store (no device needed)
justapk download <package-name> -o workspace/samples/

Set $APK to the path to the APK file and $PKG to the package name for all subsequent steps.

2. Perform reconnaissance to determine analysis strategy

Run protection and framework detection to decide how to approach the app. Do not skip this phase — it determines everything that follows.

# Protection detection
apkid $APK

# Check native libraries
unzip -l $APK | grep '\.so' | head -20

# Detect framework (Flutter, React Native, Unity, etc.)
unzip -l $APK | grep -E 'flutter|react|index\.android\.bundle|il2cpp|global-metadata'

# Quick manifest extraction
apktool d -s -f -o /tmp/apk_quick $APK

Read AndroidManifest.xml from the extracted output. Based on findings, decide the approach:

  • Flutter — Focus on network interception; limited static analysis of Dart.
  • React Native — Extract and analyze the JS bundle; check for Hermes bytecode.
  • Unity/IL2CPP — Run tools/il2cppdumper/Il2CppDumper.exe libil2cpp.so global-metadata.dat output/ then analyze with Ghidra using recovered symbols.
  • Packed — Use clsdumper to dump DEX first, then proceed with static analysis.
  • Native Java/Kotlin — Full static and dynamic analysis.
  • Heavy obfuscation — Identify the obfuscator, try simplify first, then java-deobfuscator or threadtear.

Read the full file on GitHub · 153 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. 5d ago First seen · 153 lines · 16 tokens per session scan A 75254a46196c

Subscribe to this mod's changes

analyze-apk is a command published in the GitHub repository TheQmaks/areclaw-plugin (1 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 1,614 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.