deep-analysis
Skill này làm gì
Skill mô tả phương pháp cẩn thận, từng bước để hiểu sâu một vùng cụ thể của chương trình. Dành cho kỹ sư dịch ngược đã tìm được phần họ muốn nghiên cứu.
Khi nào nên dùng
- ✓Khi nhà phân tích đã tìm được một hàm đáng ngờ và muốn biết chính xác nó làm gì.
- ✓Khi nhà nghiên cứu cần xác định phương pháp mã hóa hoặc cấu trúc dữ liệu trong chương trình.
- ✓Khi một đội muốn truy vết giao thức truyền thông mà một mẫu mã độc sử dụng.
Liên kết skill
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/deep-analysis/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
“Giải thích chính xác hàm này trong chương trình làm gì, từng bước một.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill yêu cầu AI đặt một câu hỏi rõ ràng, rồi lặp lại việc giải mã, đổi tên, làm rõ và ghi chú mã. Skill giữ ghi chú để không quên các bước trước.
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.
Deep Binary Analysis Loop
Depth-first RE for full understanding of a specific target area. Distinct from
breadth-first triage (reverser/triage) — here you don't stop at a signal,
you keep iterating until the function is fully understood.
Core Principle: Narrow → Deep
Triage finds the surface; deep-analysis excavates one shaft. Commit to one question at a time. Context-rot (losing track of what you've already renamed or retyped) is the primary failure mode — guard against it explicitly.
1. Entry Point
Before decompiling anything, state the question in writing:
kg_add_node("hypothesis", "deep-analysis target",
props={"question": "<exact question, e.g. 'what does sub_401A20 do'>",
"binary": "/workspace/target",
"entry_function": "<hex addr or name>",
"key": "deep-analysis:entry"})
Commit to one question. Do not pivot mid-session unless the current function is fully annotated and the answer is "it delegates to X".
2. Decompile→Rename→Retype→Comment Loop
For each function under analysis, follow this cycle exactly:
2a. Decompile
In hosted runs, use ghidra_find_tools(query="decompile") to discover the
native decompiler tool and its argument schema, then pass the imported program
and target function. Do not infer a decompiler call from a local-only example.
Read the full output before touching anything.
2b. Rename all locals and parameters
As soon as you understand a variable's purpose, rename it. Collect related
renames and use the native rename tool discovered with
ghidra_find_tools(query="rename"); inspect its schema before calling it.
Do not leave a decompiled function with placeholder names (param_1,
local_8, uVar1) if you know what they are.
2c. Retype parameters and locals
Correct types catch bugs in decompiler reasoning. Discover the native type
editing operation with ghidra_find_tools(query="type") and use the returned
schema for the active program.
Pay special attention to: size_t vs int (sign confusion), pointer-as-int
patterns, struct pointer vs void*, callback function pointers.
2d. Add inline comments
At every branch point whose purpose is now understood, add a comment with the
native annotation tool discovered by ghidra_find_tools(query="comment").
2e. Re-read the decompilation
After rename+retype, decompile again. The output will often look dramatically cleaner and reveal previously hidden logic.
Repeat 2a–2e until the function's purpose is unambiguous.
3. On-Task Check (every 3–5 tool calls)
After each batch of tool calls, answer explicitly:
- Is the current function still the right place to dig?
- Have I renamed every local/param I now understand?
- Have I documented what this function does (even partially) in the KG?
- Am I still working toward the original question, or have I drifted?
If you've called into a callee 3+ levels deep without updating the KG, that's context-rot — surface the findings upward before going deeper.
kg_add_node("note", "deep-analysis progress",
props={"function": "decrypt_config_blob",
"finding": "RC4 variant — XOR stream cipher, 16-byte key from .rdata:0x40D0C0",
"status": "complete",
"key": "deep-analysis:decrypt_config_blob"})
4. Per-Question Strategies
"What does function X do?"
- Decompile X.
- List callees with the registered
ghidra_get_xrefs_fromtool for the imported program; useghidra_find_toolswhen another reference view is needed. - For each callee, check if it's a library stub (look up import table) or custom code. Library stubs → infer semantics from function name. Custom code → recurse one level.
- Draw the call path as a KG
callsedge chain. - Answer: input/output contract, side effects, return value semantics.
"Identify crypto primitive"
High-entropy constants are the fastest path:
# Search for known crypto constants (AES S-box, RC4 init, ChaCha sigma, etc.)
grep -r "0x63636363\|0x6B617479\|0xE2280613\|0xDB3D18\|0x61707865\|0x3320646E" \
/workspace/target.bin 2>/dev/null || true
# Capa identifies crypto more reliably
capa /workspace/target --json > /workspace/capa_crypto.json
cat /workspace/capa_crypto.json | python3 -c "
import json, sys
d = json.load(sys.stdin)
for r in d.get('rules', {}).values():
if 'crypto' in r.get('rule',{}).get('namespace','').lower():
print(r['rule']['name'])
"
Constants to recognize:
| Constant | Algorithm |
|---|
Câu hỏi thường gặp
Cách này khác gì với phân loại nhanh?
Phân loại nhanh tìm tín hiệu trên diện rộng, còn phương pháp này đi sâu vào một vùng cho đến khi hiểu hoàn toàn.
Nó phục vụ những mục tiêu nào?
Nó giúp xác định mã hóa, cấu trúc lệnh và giao thức truyền thông trong một mẫu.
Có cần công cụ đặc biệt không?
Nó dùng trình giải mã có sẵn trong môi trường dịch ngược.
Chi tiết
Mô tả gốc của tác giả
Depth-first RE investigation loop for a single binary or function cluster: decompile→rename→retype→comment→re-read, with context-rot guards and on-task checks. Use when triage has already identified the interesting area and the goal is full understanding: what does function X do, identify cryptographic primitives, locate C2 protocol, recover data structures. Triggers on: 'deep analysis', 'understand function', 'recover struct', 'crypto identification', 'C2 protocol', 'reverse this binary fully', 'what does this function do'.
Độ phổ biến
- Sao GitHub
- 6.5k
- Vị trí xếp hạng
- #14163
- 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.