360 Secure SkillHub
360 安全技能中心

Dr.Binary

该 Skill 将本地二进制文件上传至远程沙箱,再调用 Ghidra 系列 MCP 工具查看导入表、字符串与导出符号,反编译关键函数并生成调用图,必要时在沙箱内执行 file、strings 等安全命令,最终按固定 Markdown 模板输出含文件信息、详细发现、威胁定级与处置建议的分析报告。需配置 DRBINARY_API_KEY 环境变量并具备相应 MCP 工具。

deepbitstech
deepbitstech
热度 56.73
最近更新 2026-05-17 15:25:17
分类:安全依赖:代码执行 / MCP 服务 / 第三方 API / 读写文件应用场景:代码审查 / 报告撰写 / 研究 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add binary-analysis
Metadata
name
drbinary-analysis
description
Use when the user wants to analyze a binary file, check if a file is malicious, decompile an executable, or understand what a binary does. Triggers on: "analyze this binary", "is this malicious?", "decompile this exe", "what does this binary do?", "reverse engineer this file".

Dr. Binary Analysis

Required environment variables

  • DRBINARY_API_KEY — drbinary.ai → Settings → Billing → API Key

Steps

1. Upload the binary

Run upload.py with the local file path. It uploads the file to the Dr. Binary sandbox and prints the remote path:

python skills/drbinary-analysis/upload.py /path/to/file.exe
# → /sandbox/<pathname>

2. Open Ghidra server

Call the ghidra_open_server MCP tool with the remote sandbox path returned in step 1. This initialises analysis and returns basic file metadata (size, hash, segments, imports, exports, strings, functions).

3. Analyse with Ghidra tools

Use the available MCP tools to perform a thorough analysis:

  • ghidra_list_imports — identify suspicious API calls
  • ghidra_list_strings — extract strings for IoC identification
  • ghidra_list_exports — list exported symbols
  • ghidra_decompile_function — decompile key functions to pseudo-C
  • ghidra_generate_call_graph — understand program flow
  • sandbox_execute — run safe commands (e.g. file, strings, sha256sum)

4. Report

Return a report in this format:

## Binary Analysis Report

**File Information**
- Name: [filename]
- Size: [bytes]
- SHA256: [hash]

**Analysis Summary**
[Brief overview of findings]

**Detailed Findings**
1. [Finding category]
   - Evidence: [specific data]
   - Significance: [what it means]

**Threat Assessment**
- Severity: [Critical/High/Medium/Low]
- Classification: [malware type or benign]
- Confidence: [High/Medium/Low]

**Recommendations**
1. [Action item]