reverser-android-malware
Skill này làm gì
Skill mô tả quy trình rà soát ứng dụng Android đáng ngờ, từ đọc quyền đến theo dõi lưu lượng mạng. Dành cho nhà phân tích bảo mật kiểm tra mẫu mã độc.
Khi nào nên dùng
- ✓Khi nhà phân tích nhận được một file APK đáng ngờ và cần biết nó xin quyền gì.
- ✓Khi đội bảo mật muốn xem ứng dụng đáng ngờ kết nối đến đâu trên mạng.
- ✓Khi nhà nghiên cứu cần giải mã một ứng dụng Android để đọc mã.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/android-malware/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
“File ứng dụng Android này có vẻ đáng ngờ. Nó xin quyền gì và kết nối đến đâu?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill đưa ra các bước giải mã ứng dụng, đọc quyền và mã, rồi theo dõi hành vi trong môi trường kiểm soát. AI ghi lại những gì mỗi bước cho thấy.
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.
Android APK Malware Analysis
Full analysis workflow for suspicious Android APKs — from static manifest review through dynamic instrumentation and C2 extraction.
Quick Reference
# Decode APK resources and smali
apktool d <TARGET>.apk -o ./decoded/
# Decompile to Java source
jadx -d ./java_src/ <TARGET>.apk
# Quick permission audit
aapt dump permissions <TARGET>.apk
# Hash and signature check
sha256sum <TARGET>.apk
apksigner verify --print-certs <TARGET>.apk
# Automated scan
docker run -p 8000:8000 opensecurity/mobile-security-framework-mobsf
# Upload APK to http://localhost:8000
# List Frida processes on device
frida-ps -U
MITRE ATT&CK Mapping
| Technique | ID | How It Appears |
|---|---|---|
| Exploitation for Privilege Escalation | T1404 | Root exploits, DirtyCOW, Magisk abuse in APK payloads |
| Software Discovery | T1418 | Enumerating installed apps to detect security tools or targets |
| Input Capture | T1417 | Keyloggers, accessibility service abuse for credential capture |
| SMS/MMS Collection | T1636.004 | Banking trojans intercepting OTP SMS messages |
| Location Tracking | T1430 | Stalkerware GPS tracking via background services |
| Obfuscated Files | T1406 | ProGuard, DexGuard, string encryption, native packer |
| Application Layer Protocol | T1437 | C2 over HTTPS, Telegram bot API, Firebase messaging |
1. Static Analysis — APK Structure
Unpack and examine the APK structure and manifest.
# Decode APK (keeps smali + resources)
apktool d <TARGET>.apk -o ./apk_decoded/
# Examine AndroidManifest.xml for suspicious permissions
cat ./apk_decoded/AndroidManifest.xml | grep -iE 'permission|receiver|service|provider'
# High-risk permissions to flag:
# SEND_SMS, RECEIVE_SMS, READ_SMS — SMS interception (banking trojans)
# READ_CONTACTS, READ_CALL_LOG — data exfiltration
# RECORD_AUDIO, CAMERA — spyware
# ACCESSIBILITY_SERVICE — overlay attacks, keylogging
# BIND_DEVICE_ADMIN — device admin abuse (ransomware)
# INSTALL_PACKAGES — dropper / sideloader
# REQUEST_IGNORE_BATTERY_OPTIMIZATIONS — persistent background service
# Check for accessibility service (major red flag for credential stealers)
grep -r "android.accessibilityservice" ./apk_decoded/AndroidManifest.xml
# List receivers (broadcast receivers for SMS, boot, etc.)
grep -A5 "receiver" ./apk_decoded/AndroidManifest.xml
# Check for native libraries
ls -la ./apk_decoded/lib/*/
# Certificate analysis
apksigner verify --print-certs -v <TARGET>.apk
# Self-signed with debug key? → highly suspicious
# Check: keytool -printcert -jarfile <TARGET>.apk
2. Decompile to Java
Recover readable source from DEX bytecode.
# jadx — best-in-class Android decompiler
jadx -d ./java_src/ --show-bad-code <TARGET>.apk
# --show-bad-code includes methods that failed to decompile cleanly
# Search for key behaviors
grep -rn "SmsManager\|sendTextMessage\|getDefault()" ./java_src/
grep -rn "HttpURLConnection\|OkHttpClient\|Retrofit\|Volley" ./java_src/
grep -rn "getDeviceId\|getSubscriberId\|getLine1Number\|IMEI" ./java_src/
grep -rn "getInstalledPackages\|getInstalledApplications" ./java_src/
grep -rn "TelephonyManager\|PackageManager" ./java_src/
grep -rn "Runtime\.exec\|ProcessBuilder\|\"su\"" ./java_src/
grep -rn "DexClassLoader\|PathClassLoader\|InMemoryDexClassLoader" ./java_src/
grep -rn "crypto\|Cipher\|SecretKey\|AES\|DES" ./java_src/
grep -rn "AccessibilityService\|onAccessibilityEvent" ./java_src/
# Extract hardcoded URLs / IPs / domains
grep -rnE 'https?://[^\s"]+|[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' ./java_src/
# Alternative: dex2jar + JD-GUI
d2j-dex2jar <TARGET>.apk -o <TARGET>.jar
# Open <TARGET>.jar in JD-GUI
3. Smali Analysis
For obfuscated samples where jadx fails, work at smali level.
# Smali is already extracted by apktool in step 1
# Navigate to entry points
find ./apk_decoded/smali* -name "*.smali" | head -20
# Find the main activity
grep -r "android.intent.action.MAIN" ./apk_decoded/AndroidManifest.xml
# Then read the corresponding smali file
# Search for reflection (used to hide API calls)
grep -rn "Ljava/lang/reflect" ./apk_decoded/smali*/
grep -rn "invoke-virtual.*Method;->invoke" ./apk_decoded/smali*/
# Search for dynamic class loading (dropper behavior)
grep -rn "DexClassLoader\|InMemoryDexClassLoader" ./apk_decoded/smali*/
# Search for crypto operations
grep -rn "Ljavax/crypto" ./apk_decoded/smali*/
# Search for command execution (root exploits)
grep -rn "Runt
Câu hỏi thường gặp
Nó có chạy ứng dụng không?
Có. Một giai đoạn mô tả phân tích động trong môi trường kiểm soát.
Phân tích tạo ra những gì?
Nó tạo ra danh sách quyền, phát hiện trong mã và các máy chủ mà ứng dụng liên lạc.
Ai là đối tượng sử dụng?
Dành cho nhà phân tích mã độc và đội bảo mật làm việc với các mẫu.
Chi tiết
Mô tả gốc của tác giả
Android APK malware analysis — manifest permission review, smali disassembly, Java decompilation with jadx, dynamic instrumentation with Frida, network traffic interception, native library analysis, and automated scanning with MobSF.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14160
- Giấy phép
- Apache-2.0
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
detector-overview
6.5kGiúp agent của bạn đọc code mà một công cụ quét đã đánh dấu, rồi quyết định điểm nào là lỗ hổng bảo mật thật và điểm nào là báo động giả.
exploiter-overview
6.5kGiúp agent của bạn ghép nhiều lỗ hổng bảo mật đã xác nhận thành một chuỗi kiểm thử và kiểm tra chuỗi đó có thể gây hậu quả đến đâu.
llm-redteam-overview
6.5kGiúp agent của bạn tìm đúng hướng dẫn red-team AI cho một bài kiểm thử, bao quát 15 nhóm chiến thuật từ prompt injection đến lạm dụng mô hình.
aatmf-t01-prompt-injection
6.5kGiải thích prompt injection, khi các chỉ dẫn ẩn cố ghi đè một hệ thống AI, để chuyên gia bảo mật có thể kiểm tra lỗi này.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.