mobile-android
What it does
This guide covers security reviews of Android app packages, including their manifest settings and stored data. It is for app developers and testers authorized to review an app.
When to use it
- βWhen an authorized review needs to read an Android app's manifest for risky settings.
- βWhen you want to check an app for secrets left in its code or files.
- βWhen an app exposes components that other apps could call.
Skill link
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/mobile/android/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βPlease review our Android app package for risky manifest settings and secrets left in the code.β
5 new skills a week. 1 minute to read.
How it works
The agent unpacks the app, reads the manifest and permission settings, scans the code for embedded secrets, and reports each risky setting with its effect.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Android Pentest Playbook
1. Static β decompile + inspect
Pull APK
# Listed apps on connected device
adb shell pm list packages -3 # third-party only
adb shell pm path com.target.app # find APK path
adb pull /data/app/.../base.apk /tmp/
# Or from Google Play
gplaycli -d com.target.app -f /tmp/ # CLI Play store dump
# Or from third-party APK mirrors (apkpure / apkmirror)
Decompile
# Smali (low-level)
apktool d base.apk -o /tmp/apk-smali
# Java pseudo-code (jadx)
jadx --output-dir /tmp/apk-java base.apk
# Or jadx-gui for interactive
# Combine for full picture
MobSF automated triage
docker run -it --rm -p 8000:8000 opensecurity/mobile-security-framework-mobsf
# Upload APK via web UI, get full report
Manifest review
apkanalyzer manifest print base.apk
# OR
aapt dump xmltree base.apk AndroidManifest.xml | head -50
# Critical signals:
# - android:debuggable="true" β debugger attachable
# - android:allowBackup="true" β adb backup possible w/o root
# - android:exported="true" w/o perm β exposed component
# - <uses-permission> SMS/CAMERA/MIC reach β privacy risk
# - <intent-filter> w/ "android.intent.action.VIEW" + custom scheme β deeplink
# - networkSecurityConfig: cleartextTrafficPermitted="true" β MITM-friendly
Secrets sweep
# Hardcoded keys in smali / java code
grep -rn 'api[_-]?key\|secret\|password' /tmp/apk-java/ | head -20
# Strings + entropy
strings -a base.apk | grep -E 'eyJhbGc|^[A-Za-z0-9+/]{30,}={0,2}$' | head
# AndroGuard for deep static
androguard analyze base.apk
2. Dynamic β Frida + Objection
Setup
# Push frida-server (rooted device / emulator)
adb push frida-server-16.x.x-android-arm64 /data/local/tmp/
adb shell "chmod 755 /data/local/tmp/frida-server && /data/local/tmp/frida-server &"
# Or use Magisk module on prod devices
Bypass SSL pinning (Frida codeshare scripts)
frida -U -l https://codeshare.frida.re/@pcipolloni/universal-android-ssl-pinning-bypass-with-frida/ -f com.target.app
# Or Objection's built-in
objection -g com.target.app explore
> android sslpinning disable
Bypass root detection
objection -g com.target.app explore
> android root disable
# Or via Frida script β patches common checks (RootBeer, SafetyNet)
Intercept TLS
# Burp or mitmproxy w/ root CA installed on device (or magisk-trust-user-certs)
# Then re-launch app β traffic visible in proxy
Hook arbitrary functions
// Frida script β hook a class method
Java.perform(function() {
var Auth = Java.use("com.target.app.AuthManager");
Auth.checkLicense.implementation = function() {
console.log("checkLicense called, returning true");
return true;
};
});
3. Common Android-specific attack surface
3.1 Insecure deeplinks / intents
# Test exposed activity
adb shell am start -n com.target.app/com.target.app.MainActivity \
-a android.intent.action.VIEW -d "myapp://attacker-controlled-url"
# Test exposed service / broadcast
adb shell am startservice -n com.target.app/.ExposedService --es extra "value"
adb shell am broadcast -a com.target.app.ACTION_X --ei param 999
3.2 WebView vulnerabilities
setJavaScriptEnabled(true)+addJavascriptInterface()w/o@JavascriptInterfaceannotation β arbitrary Java method exec from JSsetAllowFileAccessFromFileURLs(true)β file:// URL XSS reads local files- Custom URL scheme handlers w/o validation
3.3 Insecure storage
# Pull app data (rooted)
adb shell run-as com.target.app cat /data/data/com.target.app/shared_prefs/Auth.xml
# SQLite DBs
adb shell run-as com.target.app sqlite3 /data/data/com.target.app/databases/main.db ".dump"
3.4 Keystore extraction
Android Keystore is supposed to be hardware-backed. On rooted devices or devices w/ keystore bugs, keys extractable via:
- Frida hooks on
KeyStore.getKey() - LockKnife-style memory dump (https://github.com/ImKKingshuk/LockKnife)
- TEE exploitation (rare, advanced)
3.5 PIN brute / passkey
Android 14+ passkey biometric flow β LockKnife exploits Android pre-A14 keystore quirks. Modern Android raises the bar significantly.
3.6 Backup-restore confusion
If allowBackup=true:
adb backup com.target.app
# Pull backup, extract w/ android-backup-extractor (abe.jar)
java -jar abe.jar unpack backup.ab backup.tar
tar xvf backup.tar
4. Tools
FAQ
What is a manifest?
It is the file that declares an Android app's components, permissions and settings.
What does backup being allowed mean?
The guide says it can let app data be copied through backup tools, so it should be reviewed.
Are exported components a risk?
The guide says a component that is exported without permission checks can be called by other apps.
Details
Original description by the author
Android APK pentest workflow β apktool/jadx static, Frida dynamic instrumentation, SSL pinning bypass, root detection bypass, intent fuzzing, keystore extraction.
Popularity
- GitHub stars
- 6.5k
- Ranking position
- #14107
- License
- Apache-2.0
- Updated
- 11/1/2026
Comments
- β¦
More skills from this repository
detector-overview
6.5kHelps your agent read code that a scanner flagged and decide which flagged spots are real security bugs and which are false alarms.
exploiter-overview
6.5kHelps your agent join several confirmed security weaknesses into one test chain and check how far that chain could reach.
llm-redteam-overview
6.5kHelps your agent find the right AI red-team guide for a test, covering 15 tactic groups from prompt injection to model abuse.
aatmf-t01-prompt-injection
6.5kExplains prompt injection, where hidden instructions try to override an AI system, so security testers can check for it.
Similar skills
android-clean-architecture
280kMakes your agent organize Android projects efficiently. It structures the code to make maintenance and new feature development easier.
compose-multiplatform-patterns
280kHelps your agent use Compose Multiplatform and Jetpack Compose patterns in KMP projects, covering state, navigation, theming, and performance.
dart-flutter-patterns
280kMakes your agent write code for Dart and Flutter apps. It uses modern patterns to create robust and manageable apps.