deep-analysis
यह क्या करती है
यह किसी प्रोग्राम के एक हिस्से को गहराई से समझने का सावधान, चरण-दर-चरण तरीका बताती है। यह उन रिवर्स इंजीनियरों के लिए है जिन्होंने पहले ही वह हिस्सा ढूँढ लिया है जिसे वे पढ़ना चाहते हैं।
कब इस्तेमाल करें
- ✓जब विश्लेषक को कोई संदिग्ध फ़ंक्शन मिल गया हो और उसे ठीक से जानना हो कि वह क्या करता है।
- ✓जब शोधकर्ता को प्रोग्राम में एन्क्रिप्शन तरीके या डेटा संरचनाएँ पहचाननी हों।
- ✓जब टीम को मैलवेयर सैंपल का संचार प्रोटोकॉल ट्रेस करना हो।
Skill का लिंक
https://github.com/BitterSecurity/Decepticon/blob/main/packages/decepticon/decepticon/skills/standard/reverser/deep-analysis/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“बताइए कि प्रोग्राम में यह फ़ंक्शन चरण-दर-चरण ठीक क्या करता है।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
यह स्किल AI को एक स्पष्ट सवाल पूछने, फिर बार-बार कोड को डीकम्पाइल, नाम बदलने, स्पष्ट करने और टिप्पणी करने को कहती है। यह पिछले चरणों का रिकॉर्ड रखती है ताकि सिलसिला न टूटे।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
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 |
|---|
अक्सर पूछे जाने वाले सवाल
यह त्वरित triage से कैसे अलग है?
Triage व्यापक रूप से संकेत खोजता है, जबकि यह तरीका एक हिस्से में तब तक गहराई से जाता है जब तक वह पूरी तरह समझ न आए।
इसके क्या लक्ष्य हैं?
यह सैंपल में एन्क्रिप्शन, कमांड संरचना और संचार प्रोटोकॉल पहचानने में मदद करती है।
क्या इसके लिए खास टूल चाहिए?
यह रिवर्सिंग वातावरण द्वारा दिए गए decompiler का इस्तेमाल करती है।
जानकारी
लेखक का मूल विवरण
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'.
लोकप्रियता
- GitHub स्टार
- 6.5k
- रैंकिंग में स्थान
- #14163
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 1/11/2026
कमेंट
- …
इस repository की और skills
detector-overview
6.5kयह आपके एजेंट को स्कैनर से चिह्नित कोड पढ़ने और तय करने में मदद करती है कि कौन सी जगहें असली सुरक्षा बग हैं और कौन सी गलत चेतावनी।
exploiter-overview
6.5kयह आपके एजेंट को कई पक्की सुरक्षा कमज़ोरियों को एक परीक्षण श्रृंखला में जोड़ने और जाँचने में मदद करती है कि वह श्रृंखला कितनी दूर तक पहुँच सकती है।
llm-redteam-overview
6.5kयह आपके एजेंट को परीक्षण के लिए सही AI रेड-टीम गाइड खोजने में मदद करती है, प्रॉम्प्ट इंजेक्शन से लेकर मॉडल के दुरुपयोग तक 15 रणनीति समूहों में।
aatmf-t01-prompt-injection
6.5kसमझाती है कि प्रॉम्प्ट इंजेक्शन क्या है, जिसमें छिपे निर्देश AI सिस्टम के नियम बदलने की कोशिश करते हैं, ताकि सुरक्षा परीक्षक उसकी जाँच कर सकें।
मिलती-जुलती skills
reverse-engineer-anything
422kयह आपके एजेंट को REA टूल से शिप हुई ऐप्स और पैकेज को अंदर से समझने, वर्ज़न की तुलना करने या दोबारा बनाने में मदद करती है।
1password
394kयह आपके एजेंट को 1Password CLI सेट करने, साइन इन करने और सीक्रेट्स की वैल्यू चैट में छापे बिना उन्हें पढ़ने या इस्तेमाल करने में मदद करती है।
healthcheck
394kयह आपके एजेंट को उस कंप्यूटर या सर्वर का सुरक्षा ऑडिट करने देती है जिस पर OpenClaw चलता है, जिसमें SSH, firewall, अपडेट और बैकअप शामिल हैं, और फिर सुरक्षित सुधार सुझाती है।