svc-mobile-android

svc-mobile-android is a skill for Claude Code, Codex from s0ld13rr/pentestcode. It costs 66 tokens per session (2,959 once invoked), scanned A, original, MIT.

A static security analysis guide for Android APK files, the installable packages used by Android apps. It covers code, app components, network settings, authentication, storage, and embedded secrets.

In plain words
What is it for?
Auditing decompiled Android apps, including API calls, transport security, exported components, authentication, data storage, and build settings.
Why use it?
An APK can expose security weaknesses even when its original source code is unavailable. This helps organize the checks needed to find them.

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/s0ld13rr/pentestcode/mobile-android
Any agent
npx skills add s0ld13rr/pentestcode --skill mobile-android
Clone the repo
git clone --depth 1 https://github.com/s0ld13rr/pentestcode

Made for: Claude Code, Codex.

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 svc-mobile-android

README.md
[![agentmods](https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/mobile-android.svg)](https://agentmods.dev/skills/s0ld13rr/pentestcode/mobile-android)
Your own site
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/mobile-android"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/mobile-android.svg" alt="Measured on agentmods" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,959 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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 $0.00066 $0.02959
Opus 5 $0.00033 $0.01479
Sonnet 5 $0.00013 $0.00592
Haiku 4.5 $0.00007 $0.00296

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

Security

Grade A, and why

svc-mobile-android 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 yesterday.

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.

skills/services/mobile-android/SKILL.md · 269 lines

How it starts

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

Android APK Static Analysis — Full Methodology

Load this skill when the target is an Android APK (decompiled or not). This covers SAST — for dynamic testing (Frida, MITM), combine with playbook-webapp.

Task Decomposition — MANDATORY

An APK audit is NOT one grep job. Decompose into these independent tasks (run in parallel):

  1. API Security Audit — read ALL Retrofit/API interface files, find sensitive data in URLs
  2. Transport Security — network_security_config, certificate pinning, cleartext
  3. Auth Flow Analysis — full auth chain, session management, token handling
  4. Component Security — exported activities/receivers/providers/services, intent filters, deep links
  5. Build Hygiene — debug flags, dev tools in production, staging endpoints, logging
  6. Secrets & Crypto — hardcoded keys (but FILTER non-issues — see Known Non-Vulns below)
  7. Data Storage — SharedPreferences, Room/SQLite, file storage, backup flags
  8. Root/Tamper Detection — what's present AND what's MISSING

How to Read Decompiled Code

Smali basics (you'll see this from apktool/baksmali)

.method public someMethod(Ljava/lang/String;)V   # method signature
invoke-virtual {v0}, Lcom/example/Foo;->bar()V    # method call
const-string v1, "hardcoded_value"                # string constant
sget-object v0, Lcom/example/Config;->API_KEY:Ljava/lang/String;  # static field

Retrofit annotations in smali (THE most important pattern)

# @GET("endpoint") — HTTP method + path
.annotation runtime Lretrofit2/http/GET;
    value = "auth/password"
.end annotation

# @Query("password") — parameter goes in URL query string!
.annotation runtime Lretrofit2/http/Query;
    value = "password"
.end annotation

# @QueryMap — ALL params go in URL query string!
.annotation runtime Lretrofit2/http/QueryMap;
.end annotation

# @Body — parameter goes in request body (SAFE)
.annotation runtime Lretrofit2/http/Body;
.end annotation

# @Field — parameter goes in form body (SAFE)
.annotation runtime Lretrofit2/http/Field;
    value = "password"
.end annotation

# @Header — parameter sent as HTTP header
.annotation runtime Lretrofit2/http/Header;
    value = "Authorization"
.end annotation

Read the full file on GitHub · 269 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. yesterday First seen · 269 lines · 66 tokens per session scan A d8e1b5ca20ba

Subscribe to this mod's changes

svc-mobile-android is a skill published in the GitHub repository s0ld13rr/pentestcode (614 stars, last pushed 2d ago), licensed MIT. It adds 66 tokens to every session and 2,959 once invoked, about $0.0003 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-09-03.