mobile-security-audit

mobile-security-audit is a command for Claude Code from tungnk123/mobile-best-practices. It costs 14 tokens per session (1,579 once invoked), scanned A, original, MIT.

A command that checks a mobile app's source code for security weaknesses using a mobile security best-practices database.

In plain words
What is it for?
It is for auditing authentication, sessions, configuration, and other mobile security areas, then producing recommendations based on the search results.
Why use it?
It helps identify risks in Android, iOS, Flutter, and React Native projects using database-backed findings instead of guesses.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Good fit It is for auditing authentication, sessions, configuration, and other mobile security areas, then producing recommendations based on the search results.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/tungnk123/mobile-best-practices/mobile-security-audit
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.

Clone the repo
git clone --depth 1 https://github.com/tungnk123/mobile-best-practices

Made for: Claude Code.

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 mobile-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/tungnk123/mobile-best-practices/mobile-security-audit/github.svg)](https://agentmods.dev/commands/tungnk123/mobile-best-practices/mobile-security-audit)
Your own site
<a href="https://agentmods.dev/commands/tungnk123/mobile-best-practices/mobile-security-audit"><img src="https://agentmods.dev/badge/commands/tungnk123/mobile-best-practices/mobile-security-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mobile-security-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/tungnk123/mobile-best-practices/mobile-security-audit"><img src="https://agentmods.dev/badge/commands/tungnk123/mobile-best-practices/mobile-security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 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,579 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00014 $0.01579
Opus 5 $0.00007 $0.00790
Sonnet 5 $0.00003 $0.00316
Haiku 4.5 $0.00001 $0.00158

Measured 10d ago against content hash 8b43f4948ea6, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

mobile-security-audit 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 10d 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.

cli/assets/commands/mobile-security-audit.md · 112 lines

How it starts

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

Perform a comprehensive security audit of this mobile project.

IMPORTANT: You MUST run every python3 search command below and base ALL findings exclusively on the database results. Do NOT rely on training data. Every vulnerability and recommendation must come from the database output.

Step 1: Scan the Entire Project

Find all relevant source files:

  • Android: find . -name "*.kt" -o -name "*.kts" -o -name "*.xml" -o -name "*.gradle" -o -name "*.json" -o -name "*.properties" | grep -v build | grep -v .gradle
  • iOS: find . -name "*.swift" -o -name "*.plist" -o -name "*.entitlements" | grep -v .build
  • Flutter: find . -name "*.dart" -o -name "*.yaml" -o -name "AndroidManifest.xml" -o -name "*.plist" | grep -v .dart_tool
  • React Native: find . -name "*.tsx" -o -name "*.ts" -o -name "*.js" -o -name "*.json" | grep -v node_modules

Read the actual source files to understand the current security implementation.

Step 2: Search the Database — ALL Entries Required

Run ALL of the following searches. Do NOT skip any. Use the results as the authoritative source:

# Authentication & session security
python3 ~/.mobile-best-practices/scripts/search.py "authentication token session jwt biometric" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "oauth login credential" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "session management logout token revoke" --domain security -n 10

# Data storage security
python3 ~/.mobile-best-practices/scripts/search.py "keystore keychain encrypted storage" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "sharedpreferences userdefaults plaintext sensitive" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "api key secret hardcoded credential" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "encryption aes rsa cipher" --domain security -n 15

# Network security
python3 ~/.mobile-best-practices/scripts/search.py "ssl tls certificate pinning network" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "https cleartext man-in-the-middle" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "network security config trust anchor" --domain security -n 10

# Logging & data exposure
python3 ~/.mobile-best-practices/scripts/search.py "log logcat sensitive data leak" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "crash report analytics pii" --domain security -n 10
python3 ~/.mobile-best-practices/scripts/search.py "clipboard screenshot task switcher" --domain security -n 10

# Code & binary security
python3 ~/.mobile-best-practices/scripts/search.py "root jailbreak detection bypass" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "obfuscation proguard r8 minify" --domain security -n 10
python3 ~/.mobile-best-practices/scripts/search.py "tamper detection integrity" --domain security -n 10
python3 ~/.mobile-best-practices/scripts/search.py "reverse engineering decompile apk" --domain security -n 10

# Input & injection
python3 ~/.mobile-best-practices/scripts/search.py "input validation injection sql xss" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "intent deeplink url scheme" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "webview javascript interface" --domain security -n 15

# Permissions & privacy
python3 ~/.mobile-best-practices/scripts/search.py "permission runtime privacy gdpr" --domain security -n 15
python3 ~/.mobile-best-practices/scripts/search.py "location camera microphone background" --domain security -n 10

# Platform-specific security
python3 ~/.mobile-best-practices/scripts/search.py "android manifest exported broadcast" --domain security --filter-platform android -n 15
python3 ~/.mobile-best-practices/scripts/search.py "content provider sql injection cursor" --domain security --filter-platform android -n 10
python3 ~/.mobile-best-practices/scripts/search.py "ios ats app transport security" --domain security --filter-platform ios -n 15
python3 ~/.mobile-best-practices/scripts/search.py "keychain access group entitlements" --domain security --filter-platform ios -n 10
python3 ~/.mobile-best-practices/scripts/search.py "flutter dart secure storage plugin" --domain security --filter-platform flutter -n 15
python3 ~/.mobile-best-practices/scripts/search.py "react native async storage bridge" --domain security --filter-platform react-native -n 15

# OWASP Mobile Top 10 coverage
python3 ~/.mobile-best-practices/scripts/search.py "improper platform usage" --domain security -n 10
python3 ~/.mobile-best-practices/scripts/search.py "insecure data storage" --domain security -n 10
python3 ~/.mobile-best-practices/scripts/search.py "insufficient cryptography" --domain security -n 10
python3 ~/.mobile-best-practices/scripts/search.py "insecure authentication" --domain security -n 10
python3 ~/.mobile-best-practices/scripts/search.py "binary protection" --domain security -n 10

# Platform guidelines for security
python3 ~/.mobile-best-practices/scripts/search.py "security" --platform android -n 10
python3 ~/.mobile-best-practices/scripts/search.py "security" --platform ios -n 10
python3 ~/.mobile-best-practices/scripts/search.py "security" --platform flutter -n 10
python3 ~/.mobile-best-practices/scripts/search.py "security" --platform react-native -n 10

Read the full file on GitHub · 112 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. 10d ago First seen · 112 lines · 14 tokens per session scan A 8b43f4948ea6

Subscribe to this mod's changes

mobile-security-audit is a command published in the GitHub repository tungnk123/mobile-best-practices (22 stars, last pushed 6mo ago), licensed MIT. It adds 14 tokens to every session and 1,579 once invoked, about $0.0001 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-08-30.