apk-redteam-pipeline

Automates Android APK acquisition, decompilation, secret extraction, and Frida runtime instrumentation for red-team engagements.

6|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/Wyl-cmd/kxns-cli --skill apk-redteam-pipeline-wyl-cmd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apk-redteam-pipeline
Source: https://github.com/Wyl-cmd/kxns-cli/tree/main/src/kxns_cli/skills/apk-redteam-pipeline
Command: npx skills add https://github.com/Wyl-cmd/kxns-cli --skill apk-redteam-pipeline-wyl-cmd

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires frida-tools, objection.

What problem does it solve? Manually reversing Android apps during a penetration test is slow and error-prone: analysts must hunt down APKs, decompile DEX bytecode, grep for secrets, enumerate exported components, and set up runtime instrumentation by hand. This Skill provides an end-to-end pipeline that turns a target's mobile app catalogue into actionable findings such as hardcoded JWTs, internal API endpoints, and misconfigured Firebase backends. ## Core Features & Use Cases - APK Acquisition & Decompilation: Pull APKs from Play Store developer pages, APKPure, and APKMirror with fallback handling for truncated XAPK files, then decompile with jadx. - Secret & Endpoint Extraction: Run a 60-pattern grep catalog covering AWS keys, Google API keys, JWTs, Firebase configs, OAuth secrets, and internal URLs, plus pinned-certificate extraction that reveals hidden internal hosts. - Runtime Instrumentation: Use Frida and Objection templates for certificate-pinning bypass, HTTP request hooking, and mitmproxy traffic capture to map live API behavior. - Use Case: During an authorized engagement, recon surfaces seven apps under a target's Play Store developer page. The pipeline downloads each APK, decompiles them, and recovers a hardcoded JWT plus 30 internal /v1/* API endpoints from one customer-facing app, producing a report-ready finding. ## Quick Start Ask the agent to enumerate the target's Play Store developer page, download and decompile each APK, and grep the decompiled output for hardcoded secrets, JWTs, and internal API endpoints.

Frequently Asked Questions about apk-redteam-pipeline

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract hardcoded secrets from an Android APK?

Decompile the APK with jadx or extract strings from classes.dex, then grep for high-signal patterns like AKIA (AWS), AIza (Google API keys), eyJ (JWTs), and Firebase config keys. Generic password greps produce too much noise, so pattern-based matching is preferred.

How to download an APK from the Play Store for analysis?

Use APKPure's direct download endpoint with the package ID, falling back to APKMirror search if needed. XAPK files are zip archives containing split APKs that must be unzipped before decompilation, and 7z handles truncated downloads better than unzip.

How do I bypass SSL certificate pinning on Android with Frida?

Run a Frida script that hooks OkHttp CertificatePinner.check and TrustManagerImpl.verifyChain to no-op the pinning checks, then route traffic through mitmproxy. This requires a rooted emulator or test device, never a production phone.

Does this APK analysis pipeline work for iOS apps?

No, this pipeline is Android-only. iOS targets require a different toolchain such as IPA reversing, MobSF, and frida-ios-dump, and React Native or Flutter web apps are better covered by JavaScript bundle analysis.

What can I find in an APK's Firebase configuration?

The google-services.json file exposes the project_id, storage bucket, and web API key, which can be tested for publicly readable Firestore databases, Realtime Database instances, and listable Storage buckets. Public-read misconfigurations are extremely common.

Why is an expired JWT in an APK still useful?

An expired JWT still reveals the signing algorithm, payload structure, path tokens, and the API endpoint inventory of the target. In one engagement an eight-year-expired token exposed 30 internal /v1/* endpoints useful for post-foothold attack planning.