/viperclaw:viper-mobile-api-configfrom viperclaw
Audits mobile app static configuration and API security against OWASP MASVS. Reviews AndroidManifest.xml, iOS Info.plist, Network Security Config, and deeplink handlers for exported components, cleartext traffic, and URL validation flaws.
Ships in viperclaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
viper-mobile-api-config)viper_taint_scan, viper_harvest_js, viper_verify_and_reportviperclaw taint . --db .viperclaw/graph.dbflowchart LR
Intent["Deep Link / Intent / WebView URL"] --> Validator["Host & Scheme Allowlist + AssetLinks"] --> WebView["Hardened WebView (No File/JS Bridge)"] --> Keystore["Android Keystore / iOS Keychain"]
Mobile applications expose internal activities/receivers via android:exported="true" without permission guards, load unvalidated deep-link URLs (myapp://webview?url=https://untrusted.example or file:///data/data/.../shared_prefs/) into a JavaScript-enabled WebView that attaches a native bridge (addJavascriptInterface) or authentication headers, or store tokens in plaintext SharedPreferences.
Run the following discovery commands across the target repository before manual code review:
# 1. Automated ViperClaw analysis
viperclaw taint . --db .viperclaw/graph.db
# 2. Rapid static pattern discovery (ripgrep)
rg -n "(android:exported=\"true\"|android:debuggable=\"true\"|android:allowBackup=\"true\")" AndroidManifest.xml
rg -n "(setJavaScriptEnabled\(true\)|addJavascriptInterface|setAllowFileAccessFromFileURLs)"
rg -n "(NSAllowsArbitraryLoads|CFBundleURLSchemes|kSecAttrAccessibleAlways)"
| Control ID | Audit Verification Target | Pass Criteria | Fail / Vulnerability Indicator |
|---|---|---|---|
MOB-01 | Exported Component Lockdown (AndroidManifest.xml) | All <activity>, <service>, <receiver>, and <provider> components set android:exported="false" unless required and protected by android:permission. | Internal debug or WebView activity has <intent-filter> with android:exported="true" and no permission check. |
MOB-02 | Deep Link & Universal Link URL Validation | Deep-link handlers validate scheme (https:// only) and exact host before loading URLs in a WebView or attaching Authorization headers. | myapp://open?url=https://evil.tld loads evil.tld in the app's WebView with the user's Bearer token header attached! |
MOB-03 | WebView File Access & JS Bridge Hardening | setAllowFileAccess(false), setAllowFileAccessFromFileURLs(false), and setAllowUniversalAccessFromFileURLs(false) enforced; addJavascriptInterface restricted to pinned HTTPS origins. | WebView with addJavascriptInterface loads untrusted URLs, allowing arbitrary Java/Kotlin method invocation. |
MOB-04 | Cleartext Traffic & Certificate Pinning | network_security_config.xml sets cleartextTrafficPermitted="false" with zero user-installed <certificates src="user"/> trust in release builds; iOS disables NSAllowsArbitraryLoads. | cleartextTrafficPermitted="true" or <certificates src="user"/> left enabled in production APK. |
MOB-05 | Hardware-Backed Credential Storage | Tokens and keys are stored in EncryptedSharedPreferences (Android Keystore) or iOS Keychain (kSecAttrAccessibleWhenUnlockedThisDeviceOnly). | Session JWTs stored in plaintext SharedPreferences, NSUserDefaults, or world-readable SQLite DBs. |
MOB-06 | Backup & Debug Flag Disablement | Production builds enforce android:debuggable="false" and android:allowBackup="false" (or encrypted backup rules excluding auth files). | android:allowBackup="true" allows adb backup extraction of session data. |
MOB-07 | ContentProvider SQLi & Path Traversal Guard | Exported ContentProvider implementations parameterize query()/openFile() and validate canonical file paths. | Custom ContentProvider.openFile allows content://app.provider/../../shared_prefs/auth.xml read. |
MOB-08 | Zero Hardcoded Backend Secrets in APK / IPA | strings.xml, BuildConfig.java, and React Native / Flutter bundles contain zero private cloud/API secrets. | AWS/Firebase service key or Stripe secret key embedded in BuildConfig or index.android.bundle. |
| Severity Tier | Baseline CVSS v3.1 Vector | Qualifying Security Impact |
|---|---|---|
| CRITICAL (9.3) | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N | One-click deep link loading untrusted external URL into WebView with addJavascriptInterface or leaking Bearer token. |
| HIGH (7.5) | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N | Exported ContentProvider or Activity allowing any local app to read private files/tokens. |
| MEDIUM (5.3) | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | Cleartext HTTP traffic allowed (cleartextTrafficPermitted="true") or user CA trust in release build. |
// ❌ VULNERABLE: Loads unvalidated deep-link URL into WebView with Authorization header & file access
val targetUrl = intent.data?.getQueryParameter("url") ?: return
webView.settings.javaScriptEnabled = true
webView.settings.allowFileAccess = true
webView.loadUrl(targetUrl, mapOf("Authorization" to "Bearer $userJwt"))
// ✅ HARDENED: Validates exact HTTPS origin before loading or attaching credentials; disables file access
val rawUrl = intent.data?.getQueryParameter("url") ?: return
val uri = Uri.parse(rawUrl)
require(uri.scheme == "https" && uri.host == "app.example.com") { "Untrusted deep-link destination" }
webView.settings.apply {
javaScriptEnabled = true
allowFileAccess = false
allowContentAccess = false
}
webView.loadUrl(uri.toString(), mapOf("Authorization" to "Bearer $userJwt"))
viperclaw taint and viperclaw verify to confirm zero remaining unmitigated flows in .viperclaw/graph.db.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zahidoverflow/viperclaw --plugin viperclaw72 skills in this plugin
/viper-agent-skill-supplychainAI Agent Skill, Plugin & MCP Config Supply-Chain Auditor (modeled on NVIDIA SkillSpector & OWASP Agentic Skills Top 10). Audits SKILL.md bundles and MCP JSON configs./viper-ai-llm-guardrailsAI, LLM & MCP Application Security & Guardrails Auditor (OWASP LLM Top 10). Reviews prompt boundaries, RAG data isolation, tool-call authorization, and output sanitization./viper-api-gateway-apigee-kongAPI Gateway, BFF & Rate-Tier Policy Auditor (Kong, AWS API Gateway, Apigee, Envoy Gateway). Reviews JWT authorizers, backend origin lockdown, and route-level quotas.Other plugins' skills for the same job