mobile-pentest
하는 일
이 스킬은 Android나 iOS 앱의 보안 문제를 테스트하는 방법을 에이전트에게 가르칩니다. 같은 백엔드 API는 웹 대상처럼 테스트하는 경우가 많으므로, 앱의 일반 네트워크 트래픽을 먼저 관찰합니다.
사용하는 경우
- ✓테스터가 Android APK나 iOS 앱의 API 약점을 확인해야 할 때.
- ✓버그 바운티 프로그램에 모바일 앱과 백엔드 API가 포함된 경우.
- ✓테스터의 프록시가 앱 트래픽을 보지 못해 디컴파일이 필요할 때.
스킬 링크
https://github.com/awarexone/Agentic-Bug-Hunter/blob/main/skills/mobile-pentest/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 Android 앱의 API를 테스트하도록 도와주세요. 트래픽은 제 Burp 프록시로 보낼 수 있습니다.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 앱을 설치하고 트래픽을 프록시로 보낸 뒤 주요 흐름을 직접 실행합니다. 트래픽이 보이고 재생 가능하면 일반 웹 대상처럼 API를 테스트합니다. 디컴파일은 필요할 때만 사용합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
MOBILE APP PENTEST (ANDROID / iOS)
Mobile apps talk to the same backend as the web app — but they ship a different, less-hunted attack surface: base URLs, API endpoints, header schemes, and hardcoded secrets that web recon never sees. Most hunters skip mobile. That's the edge.
The whole point: the APK/IPA is a copy of the client. Decompile it once and you get every endpoint the web JS never references, every staging/internal base URL, and often a live API key sitting in
strings.xml. Then you attack the backend like any web target.
RUNTIME-FIRST — THE ONE RULE THAT MATTERS
Do NOT start by decompiling. Decompiling first burns hours recovering crypto you may never need. Default order:
1. Install the app on a device/emulator (in scope confirmed via /scope)
2. Point it at Burp / mitmproxy
3. Drive the real business flows by hand (login, pay, edit profile, share)
4. After each action, check the proxy: are requests visible and replayable?
5. Traffic visible + replayable → STOP. Test the API like a web target.
6. Traffic pinned / encrypted / absent → THEN escalate to apktool/jadx/Frida.
Most of your paid mobile bugs (IDOR, auth bypass, business logic) come from step 5 — plain HTTP traffic you replay in Burp. Reversing (apktool/jadx/Frida) is a support step to get traffic flowing or to recover a request signer, not the goal.
If Burp already has a stable, replayable request, you are done reversing. Switch to server-side testing.
0. SCOPE CHECK FIRST
Mobile has its own scope traps. Before touching the binary:
- Is the app itself in scope, or only the web domains? Many programs list the app package (
com.target.app) explicitly. If only*.target.comis listed, the API endpoints the app calls are usually in scope — but the app binary analysis may not be. Run/scope. - Third-party SDKs (analytics, ads, crash reporters) bundled in the APK are out of scope — they belong to Firebase/Sentry/AppsFlyer, not the target.
- Don't report "app is debuggable" / "no root detection" / "no obfuscation" — these are N/A on almost every program (no real-world attacker impact). See the Never-Submit list below.
1. SETUP (one-time)
# Android device/emulator over adb
adb devices
adb install target.apk # or pull a live install: adb shell pm path com.target.app
# Proxy — route device traffic through Burp or mitmproxy
# Android: Settings > Wi-Fi > proxy = <laptop-ip>:8080, install Burp CA as a *system* cert
# (user certs are ignored by apps targeting API 24+ — push to /system/etc/security/cacerts on a rooted device,
# or use objection patchapk to inject a network_security_config that trusts user certs)
mitmproxy --listen-port 8080 # CLI alternative to Burp; mitmweb for a UI
# Reversing toolchain
apktool d target.apk -o target_src # smali + resources + manifest (recompilable)
jadx-gui target.apk # DEX -> readable Java (best for reading logic)
jadx -d target_jadx target.apk # CLI batch decompile
# Runtime instrumentation
pip install frida-tools objection
# Pin a compatible gadget version — Frida 17 broke older flows; 16.7.x is the stable bug-bounty pick (2025)
frida --version
iOS needs a jailbroken device (Apple ships no emulator that defeats pinning). Same flow: install IPA, proxy, drive UI, escalate to frida/objection only if pinned.
2. STATIC SWEEP — SECRETS + ENDPOINTS WEB RECON MISSES 🔑
This is the highest-ROI 5 minutes in mobile hunting. Decompile, then grep. The quick check (no rooted device needed):
apktool d target.apk -o target_src
# Hardcoded secrets — strings.xml is where lazy devs stash keys
grep -rn "api_key\|secret\|password\|token\|Authorization\|Bearer\|client_secret\|private_key" \
target_src/ --include="*.smali" --include="*.xml"
# Base URLs + endpoints — the gold. Strip framework noise:
grep -rn "https://" target_src/ | grep -v "schema\|xmlns\|android\|google\|w3.org\|apache" | sort -u | head -80
# Firebase / cloud creds frequently shipped in resources
grep -rniE "firebaseio\.com|amazonaws\.com|s3\.|googleapis|cloudfront|\.blob\.core" target_src/
# Use jadx output (Java) for readability when smali is unreadable
jadx -d target_jadx target.apk
grep -rnE "https?://[a-z0-9.-]+" target_jadx/sources/ | grep -viE "android|google|w3\.org" | sort -u
Automate it with apkleaks (regex pack for URIs + secrets) when installed:
자주 묻는 질문
왜 디컴파일 대신 트래픽부터 보나요?
스킬은 디컴파일에 몇 시간이 걸릴 수 있으며, 보통 트래픽이 피닝되었거나 암호화되었거나 없을 때만 필요하다고 설명합니다.
디컴파일로 무엇을 찾을 수 있나요?
숨겨진 엔드포인트, 스테이징 기본 주소, 때로는 하드코딩된 비밀 값을 찾을 수 있습니다.
어떤 도구를 언급하나요?
Burp, mitmproxy, apktool, jadx, Frida, objection을 언급합니다.
상세 정보
작성자의 원본 설명
Mobile app pentest for bug bounty (Android APK + iOS IPA) — runtime-first workflow: install app, proxy through Burp/mitmproxy, drive the UI, capture packets, then test the API exactly like a web target; escalate to decompile (apktool/jadx) and Frida/objection only when traffic is SSL-pinned, encrypted, or absent. Covers APK/IPA decompile for hardcoded secrets + hidden API endpoints + base URLs the web app never exposes, exported-activity and deeplink intent injection, WebView addJavascriptInterface bridge abuse, SSL pinning bypass (objection patchapk / Frida CertificatePinner + checkServerTrus
인기도
- GitHub 스타
- 5.5k
- 순위
- #14793
- 라이선스
- MIT
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
bug-bounty
5.5k에이전트가 범위 확인, 자산 매핑, 취약점 테스트, 영향 검증, 보고서 작성까지 버그 바운티 점검을 단계별로 계획하도록 돕습니다.
agentic-app-audit
5.5k에이전트가 운영 중인 AI 어시스턴트를 외부에서 점검해 도구 호출 탈취, 메모리 오염, 과도한 권한 사용 같은 위험을 찾도록 돕습니다.
argus
5.5k에이전트가 웹 앱과 API의 흔한 취약점을 찾는 여섯 가지 자동 스캐너를 실행하도록 돕습니다.
bb-methodology
5.5k에이전트가 버그 바운티 세션을 단계별로 계획하고, 다음 단계와 적절한 점검을 고르며, 실제 피해를 낼 수 없는 아이디어는 버리도록 돕습니다.