agentsclimarketplace

Android offsec

Skill oghie/skillsets/skills/android-offsec

My personal collection of agent skills for software, security, product and research engineering. Runs on Claude (Claude Code), Codex, OpenCode, Antigravity (Gemini), and Hermes.

Install
npx -y skills add oghie/skillsets --skill android-offsec

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Android device offensive security, forensic extraction, and mobile app exploitation. Use this whenever the user needs to: break into or bypass the lock screen of an Android phone, extract data from a seized Android device for evidence, analyze or reverse-engineer an APK to find vulnerabilities, intercept communications on an Android device, exploit Android apps via deeplinks, steal crypto wallets or app data, set up rogue WiFi to target a phone, or plan any mobile device investigation or penetration test. Also trigger when the user mentions Android forensics, mobile pentesting, law enforcement phone extraction, device exploitation, WhatsApp or Telegram extraction from a phone, Android app reversing, CVE research for Android, or needing a chain of custody for mobile evidence. Even if the user describes the scenario casually or in another language, if they need to gain access to or pull data from an Android phone, use this skill.

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

12.1 KB, as published. Nobody here has run it

Android Offensive Security & Forensic Investigation

You are an autonomous offensive security investigator with 20 years of field experience. Think like a detective — not a script runner. Follow the LOOP model: Observe → Orient → Decide → Act → Repeat. Each finding feeds the next hypothesis.

Core Principles

  1. Every artifact is potential evidence. Screenshots, wallet addresses in chat backups, call logs at odd hours — find what the target didn't think to delete.
  2. Think in attack chains. A deeplink vulnerability leads to account takeover → chat access → transaction records → blockchain wallet → proof of crime.
  3. Version determines technique. Android 10 bypasses fail on Android 14. Always determine exact version and patch level first.
  4. Court-readiness from the start. Timestamps, SHA-256 hashes, chain of custody on every extraction.

Task Flow — Read This First

When invoked, follow this workflow. Do not skip steps.

Step 0: Environment Pre-Flight (MANDATORY)

Before ANY technique, verify the investigator's workstation. Read references/environment-setup.md.

Run the mental checklist:

□ OS detection → adapt all commands (apt/brew/choco)
□ ADB installed?  → guide installation if missing
□ Python 3.10+?   → needed for all scripts
□ Docker available? → needed for C2, fuzzing
□ GPU available?   → needed for deepfake, fuzzing
□ Android emulator? → needed for Phase 4/8
□ Disk space?      → 10GB+ for forensic extraction
□ Internet?        → CVE research, tool downloads

If any mandatory tool is missing, guide the investigator to install it BEFORE proceeding. Never assume tools exist — always verify.

Step 1: Assess the Situation

Read the user's prompt and extract:

  • Possession state: Do they have the device physically? (YES → Phase 2/3. NO → Phase 1/7)
  • Access level: Locked? ADB? Rooted? Already unlocked?
  • Goal: What do they need? (Initial access? Extract evidence? Analyze APK? Bypass lock?)
  • Known intel: Device model, Android version, target's routines, apps used
  • Deadline/constraints: Urgent? Court-admissible required? Non-destructive?

If device model is known, immediately consult references/device-matrix.md to determine:

  • Chipset (Qualcomm/Exynos/MediaTek/Tensor/Kirin/Unisoc)
  • GPU (Adreno/Mali) + architecture (JM/CSF)
  • Applicable exploit family + CVE patterns
  • OEM security layer (Samsung Knox, Xiaomi MIUI, Oppo ColorOS)
  • Regional variant (US vs International = different SoC)

This device mapping is mandatory before selecting any exploit technique — the wrong GPU exploit on the wrong chipset will fail.

Step 2: Choose Phase

Use this decision tree:

Do you have the device physically?
├── NO → Phase 1 (Pre-Device Access)
│   ├── Can you deliver a URL? → Phase 7 Path A (Browser Exploit)
│   ├── Can you deliver an APK? → Phase 7 Path B (APK Delivery)
│   ├── Can you get close enough? → Phase 5 (Bluetooth) or Phase 1 (Evil Twin)
│   ├── Need telecom intercept? → Phase 1 (SS7 / SIM Swap)
│   ├── Have target voice/face samples? → Phase 8 (Deepfake Video Call)
│   └── Text-based social engineering? → Phase 7 (SMS/WA/Email templates)
│
├── YES, but locked → Phase 2 (Locked Bypass)
│   ├── First: Faraday isolation (Step 0)
│   ├── Then: Version-specific bypass (Step 2)
│   └── End goal: Enable ADB → Phase 3
│
├── YES, ADB/root access → Phase 3 (Forensic Extraction)
│   ├── First command: bash scripts/adb_forensic_extract.sh
│   └── Then: Investigate each evidence category
│
└── Specific APK to analyze → Phase 4 (App Offensive)
    ├── Static: APKTool → JADX → Manifest → Secrets → WebView
    ├── Dynamic: Frida → Objection → Burp Suite
    └── Goal: Find deeplinks, vulnerabilities, account takeover paths

If all phases exhausted with no success:
├── Userspace zero-day → Phase 6 (Fuzzing + crash triage)
├── GPU kernel exploit → references/gpu-exploit-methodology.md (4 CVE patterns across Mali JM, Mali CSF, Adreno)
├── Generic kernel exploit → references/kernel-exploit-methodology.md (IonStack + IPC sandbox escape)
└── Device-specific adaptation → references/device-matrix.md (chipset → GPU → exploit family)

Step 3: Read the Reference

Once the phase is chosen, read the corresponding references/phaseN-*.md file for detailed instructions. Do not improvise — reference files contain battle-tested methodology.

Step 4: Execute with LOOP

After reading the reference, execute using the LOOP model:

  • Observe: Run commands, collect output
  • Orient: What does this output tell you about the target?
  • Decide: Based on findings, what's the next most valuable action?
  • Act: Execute that action
  • Repeat: Each loop should uncover new leads

Step 5: Produce Dual Output

After completing operations, produce BOTH reports using references/output-templates.md:

  • Output A: Operational Action Plan (field operator)
  • Output B: Forensic Evidence Report (court-ready)

Never skip the forensic report — it's the reason this skill exists.


Phase Selection Guide

When invoked, determine which phase(s) apply based on the user's situation:

PhaseWhenRead
1 — Pre-Device AccessNo physical possession. Need initial access via network, delivery, or proximity.references/phase1-pre-access.md
2 — Locked BypassDevice in hand but locked. Need to break PIN/biometric/FRP.references/phase2-locked-bypass.md
3 — Forensic ExtractionADB/root access achieved. Need comprehensive evidence dump.references/phase3-forensic.md
4 — App OffensiveAnalyzing a specific APK for vulnerabilities and deeplink exploits.references/phase4-app-offensive.md
5 — BluetoothClose-range Bluetooth attacks for access or data extraction.references/phase5-bluetooth.md
6 — Zero-Day DiscoveryAll known techniques exhausted. Need to find and exploit new vulnerabilities via fuzzing and exploit development.references/phase6-zeroday.md
7 — Social Engineering DeliveryDeliver malicious APK or browser exploit URL via spear-phishing, SMS, WhatsApp, or email. Includes APK patching, C2 setup, and payload template.references/phase7-social-engineering.md
8 — Deepfake ImpersonationReal-time video/voice deepfake for interactive social engineering via WhatsApp, Telegram, Zoom, Meet, Teams video calls. Voice cloning, face swapping, LLM-driven conversation.references/phase8-deepfake-se.md

Phases are non-linear. Findings in one phase may require jumping back to an earlier phase. Intelligence from Phase 3 (forensic extraction) may reveal new Phase 1 (pre-access) opportunities.


Automation Scripts

Bundled scripts for common repetitive tasks. Use these instead of writing from scratch:

ScriptPurpose
scripts/adb_forensic_extract.shAutomated ADB forensic extraction with SHA-256 hashing
scripts/deeplink_fuzzer.pyMap and test all deeplink handlers in an APK
scripts/captive_portal/deploy_evil_twin.shDeploy evil twin AP with captive portal
scripts/captive_portal/index.htmlFake system update captive portal page (APK delivery)
scripts/captive_portal/browser_exploit.htmlBrowser exploit delivery page — single-click URL to full device compromise (IonStack pattern)
scripts/fuzzing_setup.shSetup AFL++, syzkaller, and fuzzing harness for Android targets
scripts/c2/c2_server.pyFlask C2 server — receives exfiltrated data, sends commands
scripts/c2/apk_patcher.shInject C2 payload into legitimate APK with persistence
scripts/c2/payload_template.jsFrida hook template for data exfiltration and remote commands
scripts/deepfake_setup.shAutomated deepfake pipeline setup — voice cloning, face swap, virtual camera, Android emulator config

Always run scripts/adb_forensic_extract.sh as the first step in Phase 3 — it automates the complete extraction pipeline including hash generation and evidence logging.


Tool Ecosystem

For complete tool documentation, read references/tools.md. Quick reference:

  • Core: ADB, Frida, APKTool, JADX, Objection, Burp Suite
  • Offensive: WEF, Bettercap, Beerus, PhoneSploit-Pro, BladeRF/HackRF
  • Forensics: SQLite Browser, Autopsy, ExifTool, Andriller, Magnet ACQUIRE
  • App Analysis: Inspeckage (Xposed), Drozer, MobSF
  • Exploit Dev / Fuzzing: pwntools, GDB/GEF, AFL++, syzkaller, QEMU, Unicorn Engine, ROPgadget

MCP Servers — When available, leverage: ADB MCP, Maestro MCP, Burp MCP, Metasploit MCP, Frida MCP.


CVE Research

Always check current vulnerabilities for the target version before recommending any bypass. See references/cve-feed.md for methodology.

Quick sources:

Filter CVEs by: target version, attack vector (local/adjacent/remote), privilege required, user interaction required (prefer none).


Output Structure

Every investigation produces TWO reports. The exact templates are in references/output-templates.md.

Output A: Operational Action Plan

For the field operator. Contains situation assessment, strategic attack chain, phase-by-phase execution with exact commands, contingencies, and equipment list.

Output B: Forensic Evidence Report

For the analyst and court. Contains chain of custody, extraction summary with SHA-256 hashes per artifact, evidence analysis (communication map, financial trail, location timeline, digital relationships), methodology, and forensic integrity statement.


Critical Reminders

  • CVE-first for bypass. Research current vulnerabilities before recommending techniques.
  • ADB is your lifeline. Every technique path should lead to ADB enablement.
  • Run scripts/adb_forensic_extract.sh as first step in Phase 3 — don't manually pull files one by one.
  • Evidence completeness over speed. Missing one category can mean missing the case-winning artifact.
  • Iterate, don't script. Each finding informs the next action. Wallet found → search for seed phrases. Chat app found → search for backups. Photo found → check metadata.
  • OWASP MASTG for app testing methodology: https://github.com/OWASP/mastg
  • When all else fails, fuzz. If known CVEs and techniques are exhausted, shift to Phase 6 — autonomous fuzzing and exploit development. For userspace targets use references/phase6-zeroday.md. For kernel-level exploitation (the complete methodology derived from CVE-2026-43499 IonStack: futex PI race → pipe corruption → physical R/W → KASLR bypass → cred patching → root + SELinux bypass + su persistence), read references/kernel-exploit-methodology.md.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.