competition-android-hooking
Skill này làm gì
Công cụ này giúp điều tra cách một ứng dụng Android (APK) hoạt động bên trong, đặc biệt trong các tình huống bảo mật. Nó cho phép quan sát và tương tác với ứng dụng khi đang chạy để hiểu các “bí mật” của nó.
Khi nào nên dùng
- ✓Khi bạn muốn xem một ứng dụng ký thông tin bí mật như thế nào.
- ✓Khi bạn cần hiểu cách ứng dụng kiểm tra thiết bị có đáng tin cậy không (tránh root hoặc jailbreak).
- ✓Khi bạn muốn tìm hiểu cách ứng dụng giao tiếp với máy chủ và dữ liệu nào nó gửi đi.
Liên kết skill
https://github.com/zhaoxuya520/reverse-skill/blob/main/CTF-Sandbox-Orchestrator/competition-android-hooking/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn tìm hiểu cách ứng dụng Android này ký các yêu cầu gửi tới máy chủ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ chèn các đoạn mã nhỏ (hook) vào những vị trí cụ thể trong ứng dụng để quan sát và thu thập dữ liệu. Nó tập trung vào các phần quan trọng như ký dữ liệu, mã hóa hoặc giao tiếp với máy chủ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Competition Android Hooking
Use this skill only as a downstream specialization after $ctf-sandbox-orchestrator is already active and has established sandbox assumptions, node ownership, and evidence priorities. If that has not happened yet, return to $ctf-sandbox-orchestrator first.
Use this skill when the decisive path runs through an Android app's live trust boundary rather than static strings alone.
Reply in Simplified Chinese unless the user explicitly requests English.
Quick Start
- Preserve the original APK, extracted resources, and decompiled output before patching or resigning.
- Start with manifest, exported components, deeplinks, native libs, prefs, local DBs, and bundled configs.
- Decide the narrowest runtime boundary to hook: signer, crypto helper, JNI bridge, WebView bridge, or request builder.
- Correlate static evidence and dynamic traces before claiming a trust edge is understood.
- Reproduce the signed request, accepted token, or gated branch from the smallest hook set.
Workflow
1. Static Triage Before Hooks
- Map package structure, exported activities, services, receivers, providers, and deeplink handlers.
- Note SSL pinning logic, root checks, feature flags, token storage, shared prefs, SQLite tables, and protobuf or RPC boundaries.
- Identify whether the sensitive logic sits in Java, Kotlin, JNI, or a bundled WebView.
2. Hook The Narrowest Boundary
- Prefer hooking request signers, crypto helpers, keystore access, protobuf encode or decode, or JNI marshaling instead of broad UI hooks.
- Record plaintext inputs, signed strings, headers, nonces, and outputs at the boundary that actually changes trust.
- If pinning or environment checks block progress, patch or hook only enough to expose the real request path.
3. Replay The Accepted Path
- Rebuild the smallest sequence that reaches the accepted server-side branch: local state, nonce, request body, signature, and headers.
- Keep hook logs, captured request shapes, and local storage paths tied to the same account or session state.
- If the challenge becomes more about transform recovery than Android runtime, switch back to the broader crypto or mobile skill.
Read This Reference
- Load
references/android-hooking.mdfor hook targets, storage checklist, and evidence packaging.
What To Preserve
- Hook points, class names, JNI symbols, signer inputs and outputs, and header names
- Shared prefs, local DB rows, deeplinks, exported components, and token storage paths
- The smallest replayable request or branch that proves the trust boundary
Câu hỏi thường gặp
“Hooking” là gì?
Nó giống như đặt một “điệp viên” vào một điểm cụ thể trong ứng dụng để xem chuyện gì đang diễn ra hoặc chặn thông tin.
“SSL pinning” là gì?
Đó là biện pháp bảo mật bổ sung mà một số ứng dụng dùng để đảm bảo chúng đang giao tiếp với đúng máy chủ. Công cụ này có thể giúp vượt qua nó để phục vụ việc phân tích.
Tôi có cần biết lập trình để dùng không?
Công cụ này dành cho những người đang điều tra ứng dụng, thường trong bối cảnh bảo mật. Dù người dùng không cần lập trình trực tiếp, hiểu các khái niệm sẽ rất có ích.
Chi tiết
Mô tả gốc của tác giả
Internal downstream skill for ctf-sandbox-orchestrator. CTF-sandbox workflow for Android APK hooking, Frida tracing, request-signing recovery, SSL pinning bypass, JNI boundary inspection, and app trust-boundary analysis. Use when the user asks to hook an APK, inspect signer logic, trace Java or native boundaries, bypass pinning or root checks, inspect shared prefs or app databases, or replay accep
Độ phổ biến
- Sao GitHub
- 42k
- Vị trí xếp hạng
- #6419
- Giấy phép
- MIT
- Cập nhật
- 22/9/2026
Bình luận
- …
Thêm skill từ kho mã này
competition-ad-certificate-abuse
42kGiúp agent phân tích các cuộc tấn công nhắm vào hệ thống chứng chỉ số. Tìm hiểu cách chứng chỉ có thể bị lạm dụng để giành quyền truy cập.
competition-agent-cloud
42kGiúp agent phân tích các thách thức bảo mật trong hệ thống AI và đám mây. Tìm hiểu cách prompt, công cụ và đám mây có thể bị khai thác.
competition-browser-persistence
42kGiúp agent phân tích cách website lưu thông tin trên trình duyệt của bạn. Điều tra cookie và dữ liệu khác để hiểu cách phiên đăng nhập hoạt động.
competition-bundle-sourcemap-recovery
42kGiúp agent tái tạo mã của website. Phân tích các file và bản đồ mã để hiểu cách một trang được xây dựng và cách nó hoạt động.
Skill tương tự
android-clean-architecture
280kGiúp agent của bạn tổ chức dự án Android hiệu quả, cấu trúc code để việc bảo trì và phát triển tính năng mới dễ dàng hơn.
compose-multiplatform-patterns
280kGiúp agent của bạn dùng các mẫu Compose Multiplatform và Jetpack Compose trong dự án KMP, gồm trạng thái, điều hướng, giao diện và hiệu năng.
dart-flutter-patterns
280kGiúp agent của bạn viết code cho ứng dụng Dart và Flutter. Agent dùng các mẫu hiện đại để tạo ứng dụng vững chắc và dễ quản lý.