mobile-security

mobile-security is a skill for Claude Code, Codex from ShieldNet-360/secure-vibe. It costs 94 tokens per session (2,232 once invoked), scanned A, original, MIT.

A set of rules for protecting Android and iOS apps on devices controlled by someone else. It covers stored credentials, app-to-app communication, links, network connections, server checks, screen capture, and release builds, including React Native apps.

In plain words
What is it for?
Use it when designing mobile authentication, storing credentials, exposing app components, handling deep links, configuring network security, adding server-side device checks, or preparing a release.
Why use it?
It treats the app and device as exposed to attackers, helping keep important decisions and secrets out of places an attacker can alter or read.

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/shieldnet-360/secure-vibe/mobile-security
Any agent
npx skills add ShieldNet-360/secure-vibe --skill mobile-security
Clone the repo
git clone --depth 1 https://github.com/ShieldNet-360/secure-vibe

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/shieldnet-360/secure-vibe/mobile-security.svg)](https://agentmods.dev/skills/shieldnet-360/secure-vibe/mobile-security)
Your own site
<a href="https://agentmods.dev/skills/shieldnet-360/secure-vibe/mobile-security"><img src="https://agentmods.dev/badge/skills/shieldnet-360/secure-vibe/mobile-security.svg" alt="Measured on agentmods" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,232 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.00094 $0.02232
Opus 5 $0.00047 $0.01116
Sonnet 5 $0.00019 $0.00446
Haiku 4.5 $0.00009 $0.00223

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

Security

Grade A, and why

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

skills/mobile-security/SKILL.md · 154 lines

How it starts

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

Mobile Application Security

Rules (for AI agents)

ALWAYS

  • Start from the premise that the device belongs to whoever is holding it. The app runs on hardware an attacker can root or jailbreak, instrument at runtime, and read at rest. Everything shipped in the package is extractable, every client-side check is removable, and every local check can be made to return the answer the attacker wants. What you actually control is the backend's willingness to act — so any decision that matters is made server-side, on evidence the server verified.
  • Issue short-lived, device-scoped tokens from a backend rather than shipping an API key, signing key, or backend credential in source, resources, strings.xml, BuildConfig, or Info.plist. Anyone can download the package and read it.
  • Keep credentials in the platform's hardware-backed store: Android Keystore (EncryptedSharedPreferences with a MasterKey), iOS Keychain with a …ThisDeviceOnly accessibility class — WhenUnlocked where the value is never needed in the background, AfterFirstUnlock where it is. Never SharedPreferences, UserDefaults, a plist, or a file. The store protects a key at rest on an uncompromised device; it does not protect against code running inside your process, which is why the credential should be short-lived regardless.
  • Android: give every <activity>, <service>, <receiver> and <provider> an explicit android:exported, defaulting to false. Since API 31 the attribute is mandatory when an intent filter is present — which forces the question to be asked, not answered. An exported component is a public API of your app that any installed application can call.
  • Treat data crossing an app boundary as untrusted in both directions: validate every Intent extra and incoming activity payload, send sensitive data with an explicit component rather than an implicit intent any app can register for, and create every PendingIntent as FLAG_IMMUTABLE so the recipient cannot rewrite its contents.
  • Verify deep links instead of trusting the scheme. A custom scheme (myapp://) can be claimed by any app that declares it; Android App Links (android:autoVerify) and iOS Universal Links are bound to a domain you control and are the only form carrying an ownership proof. Where the link carries an authentication callback, auth-security owns the state / PKCE check that makes it safe.
  • Keep the platform's transport defaults: ATS enabled in Info.plist, an Android networkSecurityConfig that denies cleartext, and any exception scoped to a named host rather than the whole app. Where you add certificate pinning for a backend you own, plan its rotation at the same time — a backup pin for the next certificate, a tracked expiry, and a remote kill-switch. A pin that expires bricks every installed copy until users take a store update, which takes days.
  • Decide sensitive actions on server-verified attestation — Play Integrity, App Attest, DeviceCheck — rather than a client-side root or jailbreak check. A check running on the attacker's device is removable in minutes; an attestation is worth something because your server evaluates it. Client-side detection is a speed bump worth having on high-risk apps and is never the decision.
  • Bind biometric authentication to a cryptographic operation: a Keystore key created with setUserAuthenticationRequired(true) and used through BiometricPrompt, or a Keychain item guarded by kSecAccessControlBiometryCurrentSet. A boolean returned from a "did the user authenticate" API proves nothing — it can be patched to return true.
  • Protect sensitive screens from capture: FLAG_SECURE on Android keeps a view out of screenshots and the recents thumbnail; on iOS, cover the window before the app is backgrounded, because the system snapshots the screen to render the app switcher.
  • Strip debug material from release builds — verbose logging, android:debuggable, development endpoints, test credentials. Shrinking and minification (R8, ProGuard) are worth enabling for size and dead-code removal, but treat the renaming as a delay for a reverse engineer rather than a control. Nothing in the package is secret.
  • Consult logging-security for what may be logged, with one mobile-specific twist: Logcat and oslog are readable from a connected device without root, so an HTTP logging interceptor left at body level in a release build publishes every request and its Authorization header to anyone with a cable.

Read the full file on GitHub · 154 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 154 lines · 94 tokens per session scan A cf5c89ca772b

Subscribe to this mod's changes

mobile-security is a skill published in the GitHub repository ShieldNet-360/secure-vibe (22 stars, last pushed 21d ago), licensed MIT. It adds 94 tokens to every session and 2,232 once invoked, about $0.0005 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.

Related

Other skills, from other repositories

cocos-creator-adaptation

做 Cocos Creator 多机型/多分辨率适配时使用。Canvas、Widget、安全区。.

Wade-DevCode/awesome-coding-skills-cn · 30 tokens

dart-flutter-patterns

Production-ready Dart and Flutter patterns covering null safety, immutable state, async composition, widget architecture, popular state management frameworks (BLoC, Riverpod, Provider), GoRouter navigation, Dio networking, Freezed code generation, and clean architecture.

majiang213/OpenClaw-MAS · 55 tokens

android-clean-architecture

Clean Architecture patterns for Android and Kotlin Multiplatform projects — module structure, dependency rules, UseCases, Repositories, and data layer patterns.

majiang213/OpenClaw-MAS · 34 tokens

flutter-dart-code-review

Library-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), Dart idioms, performance, accessibility, security, and clean architecture.

majiang213/OpenClaw-MAS · 56 tokens

foundation-models-on-device

Apple FoundationModels framework for on-device LLM — text generation, guided generation with @Generable, tool calling, and snapshot streaming in iOS 26+.

majiang213/OpenClaw-MAS · 38 tokens

liquid-glass-design

Patterns for implementing Apple's Liquid Glass — a dynamic material that blurs content behind it, reflects color and light from surrounding content, and reacts to touch and pointer interactions. Covers SwiftUI, UIKit, and WidgetKit integration.

majiang213/OpenClaw-MAS · 37 tokens