[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71KC9HW8C5EN6B6C0GCHQSD":3,"skill-same:01M71KC9HW8C5EN6B6C0GCHQSD":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":70},"01M71KC9HW8C5EN6B6C0GCHQSD","malware-analysis",null,"Use when analyzing suspected malware through static, dynamic, and behavioral techniques, including IOC extraction, YARA or Sigma rules, sandboxing, and anti-analysis behavior.","coco-research\u002Fcoco","coco-research","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F68911604?v=4","01M71JRE9C4NM4NSZM4JD0BJTB","Coco Research","01M71JREA0ZMR0PMH3CKA99SN1",631,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Freverse-skill\u002Fskills\u002Fmalware-analysis\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"malware analysis","malware","analysis","when","extraction","static","techniques","true","behavioral","ioc extraction","use","behavior","Rules","sandboxing","sigma","analyzing","yara","ioc","2026-11-10 10:12:30",false,"---\nname: malware-analysis\ndescription: Use when analyzing suspected malware through static, dynamic, and behavioral techniques, including IOC extraction, YARA or Sigma rules, sandboxing, and anti-analysis behavior.\nuser-invocable: true\n---\n# Malware Analysis\n\n## 适用场景\n\n- 恶意软件样本分析（PE\u002FELF\u002FMach-O\u002FAPK\u002F脚本）\n- YARA 规则编写与验证\n- Sigma 行为检测规则生成\n- 沙箱自动化分析编排\n- IOC 提取与威胁情报\n- 反分析技术检测与绕过\n\n## 六阶段分析流程\n\n### Phase 1: 初步分诊\n\n```bash\n# 快速静态检测\nfile sample.exe                      # 文件类型\nstrings sample.exe | grep -i \"http\\|cmd\\|powershell\\|base64\"  # 快速 IOCs\nrabin2 -zz sample.exe                # 字符串提取 + 交叉引用\nfloss sample.exe                     # 去混淆字符串提取（FireEye）\n\n# PE 头部分析\npecheck sample.exe                   # PE 结构验证\npescan sample.exe                    # 异常检测（节表、入口点）\ndiec sample.exe                      # Detect It Easy（壳\u002F编译器识别）\n\n# Hash 查询\nsha256sum sample.exe\n# → VirusTotal \u002F MalwareBazaar \u002F Triage 查询\n```\n\n```text\nTriage MUST 清单（Issue #65）：\n□ 文件类型：EXE \u002F DLL \u002F SYS \u002F .NET \u002F 脚本(bat|ps1|vba) \u002F 其他\n□ 架构 x86\u002Fx64\u002FARM；查壳（DIE 等）与编译语言线索\n□ DLL\u002FSYS：导入表与导出表并列检查（见 Phase 2 硬门）\n□ .NET：无传统 IAT → 走 dnSpy\u002FIL\u002F元数据等价锚点（见 Phase 2）\n□ 脚本\u002F宏\u002FDLL 专项 P0：见 nonpe-format-cookbook U–AV（E-batch-deobf \u002F E-ps-decode \u002F E-vba-pcode \u002F E-dll-*）\n```\n\n### Phase 1b: 脱壳与 IAT 处理（有壳时 · Issue #65）\n\n```text\n□ 无壳 \u002F .NET → 跳到 Phase 2\n□ 有壳：尝试脱壳（授权隔离环境）→ 尝试修复 IAT\n  - x86：ImportREC（或等价）；x64：Scylla（或等价）。禁止 64 位死磕 ImportREC\n□ 【IAT 修复铁律】优先自动\u002F半自动修复；若工具报错或修复后无法运行：\n  - 立即终止继续静态 IAT 修复\n  - MUST 记录 E-iat-repair-fail（命令、工具、现象）\n  - 转入 Phase 3 动态：API 断点（如 bp CreateFile）\u002F 硬件断点 \u002F 内存搜索抓取导入\n  - 这不算跳过导入表：路径已尝试并记 Evidence\n□ 【补丁 6】脱壳+修 IAT 后闪退\u002F蓝屏（疑 CRC\u002F大小自校验）：\n  - 放弃继续静态修文件；记 E-self-check-crash 或并入 E-iat-repair-fail\n  - 转 Phase 3：对 CreateFile \u002F GetFileSize \u002F 哈希相关 API 下断\n□ 用户指令可行性（§0.5）：加壳时用户抢跑「先别脱壳先看导入表」→ 说明阻塞 + 请确认；强制则记 quality=unreadable\u002Fpacked，禁止冒充完成有意义 IAT\n□ 用户要求重做「IAT 修复 \u002F 导入表检查」：MUST 重做被点名步骤（或经确认的前提协商结果），禁止换无关步骤冒充\n```\n\n### Phase 2: 静态分析\n\n```text\n反汇编\u002F反编译：\n□ IDA Pro \u002F Ghidra: 深度反编译\n□ radare2: CLI 快速分析\n□ x64dbg: Windows GUI 调试器\n\n重点分析区域：\n□ 入口点（Entry Point）→ 初始化逻辑\n□ 导入表 → API 用途推断（CreateRemoteThread=注入, CryptEncrypt=勒索）\n   **MUST（硬门）**：执行 rabin2 -i \u002F IDA imports \u002F pecheck 等价命令，将导入表分类摘要写入 Evidence（E-imports）后才能进入 Phase 3（除非已记 E-iat-repair-fail 并走动态旁路，见 Phase 1b）\n   分类至少覆盖：网络 \u002F 文件 \u002F 加密 \u002F 进程注入 \u002F 注册表 \u002F 其他可疑 API\n   解析失败或表为空：仍 MUST 记录失败输出，禁止静默跳过\n   **DLL\u002FSYS**：MUST 并列记录导出表 Evidence（E-exports，`rabin2 -E` 或等价）\n   **.NET**：无传统 IAT 时 MUST 用 dnSpy\u002FIL\u002F元数据\u002F程序集引用与敏感 API 摘要作为等价锚点，写入 E-imports \u002F E-triage-imports 语义槽\n   **干净导入表**：仅基础 DLL、几乎无业务 API → MUST 注明动态加载嫌疑（LoadLibrary\u002FGetProcAddress），SHOULD 转入 Phase 3 抓内存 API；若见哈希解析特征 → E-api-hash（补丁 N）\n   **宽字符串（T）**：ASCII strings 无 IOC 时 MUST 再试 UTF-16（strings -el \u002F IDA unicode）\n   **签名（F）**：有签名仍 MUST SigCheck；伪造\u002F吊销不降威胁等级\n   用户要求「重做导入表检查」：MUST 重做本项（阻塞时先走可行性门闩协商），禁止改换其他步骤冒充完成\n   **高危 API 组合（补丁 8）**：表过长时优先输出恶意组合簇（如 FindWindow+WriteProcessMemory+CreateRemoteThread），过滤纯系统基础调用噪声\n□ 资源段 → 嵌入 Payload（.rsrc 节）\n□ 字符串表 → URL\u002FC2\u002F文件路径\u002FBase64 blob\n□ TLS 回调 → 调试器启动前执行\n```\n\n### Phase 3: 沙箱动态分析\n\n```text\n自动化沙箱：\n□ Joe Sandbox \u002F ANY.RUN \u002F Triage: 商业沙箱\n□ CAPE Sandbox: 开源 + YARA 集成（推荐）\n□ ASD Azul: 开源恶意软件分析平台（2026 新发布）\n□ Cuckoo Sandbox: 经典开源（逐步被 CAPE 取代）\n\n调试起手式（补丁 7+10 · MUST 顺序，用户态调试器）：\n□ ① TLS 回调断点 → ② 入口点 EP 断点 → ③ 敏感 API 断点 → ④ ExitProcess\u002F退出路径保底断点\n□ ExitProcess 触发时：不急着重启；立即 dump memory，路径写入 Evidence（补丁 10）\n\n监控重点：\n□ 进程创建: CreateProcess \u002F ShellExecute\n□ 文件操作: WriteFile → 勒索? DeleteFile → Wiper?\n□ 注册表: Run\u002FRunOnce 持久化\n□ 网络: HTTP\u002FDNS → C2 通信\n□ 内存: VirtualAllocEx → 进程注入\n□ 服务: CreateService → 持久化\n□ IAT 修复失败 \u002F 自校验闪退样本：敏感 API + CreateFile\u002FGetFileSize 断点 \u002F 硬件执行断点 \u002F 内存搜索\n\n无行为应急分支（MUST）：\n□ 沙箱无行为、秒退或无限休眠 → 检查反调试\u002F反虚拟机（CPUID、计时、环境特征）\n□ 尝试硬件断点绕过、补丁检测点、或换物理机\u002F更高保真环境\n□ 将「无行为 + 条件」写入 Evidence；禁止无条件写成「样本无害」\n\n时间盒（补丁 9 · SHOULD 默认，可覆盖）：\n□ 静态深挖约 15 分钟无关键路径 → 强制转入本 Phase 动态\n□ 动态单步约 200 条指令无恶意线索 → 强制回静态字符串\u002F交叉引用重锚\n\n反调试\u002F混淆旁路（Issue #65 A–T · 详见 reverse-engineering\u002Fanti-analysis.md 菜谱）：\n□ P0：CPUID \u002F RDTSC \u002F PEB \u002F NtQueryInformationProcess → 记录检测点后 lab 绕过或换环境（E-anti-debug-*）\n□ P0：干净 IAT → API 哈希动态解析（bp GetProcAddress，E-api-hash）\n□ P0：strings 空 → 串解密例程 + 宽字符串 UTF-16（E-string-decrypt \u002F E-wide-strings）\n□ P0：可疑签名 → SigCheck；无效\u002F吊销不降威胁（E-sig-forge）\n□ P1：进程名扫描 \u002F VEH \u002F int3·DR \u002F 重叠节 \u002F Overlay \u002F .rsrc \u002F Delay-Load\n□ H\u002FS 平坦化与不透明谓词 → ollvm-deobfuscation.md（不在此复制长文）\n□ 绕过失败也写 Evidence；禁止反调试退出 = 样本无害\n\n非 PE \u002F 脚本 \u002F DLL 补洞（Issue #65 U–AV · 详见 reverse-engineering\u002Freferences\u002Fnonpe-format-cookbook.md）：\n□ bat\u002Fcmd：SET 拼接还原（U）→ E-batch-deobf；UTF-16 BOM（V）；REM\u002FGOTO 淹没（W）\n□ PowerShell：多层 Base64\u002FGzip（X）逐层 Evidence；IEX 拼接\u002F反转（Z）\n□ VBA：Stomping\u002FP-Code（AA）；Chr\u002FBase64（AB）；自修改宏（AC）\n□ DLL：TLS+DllMain（AJ）；导出异常\u002F无导出（AK\u002FAL）；Delay-Load 见 A–T R（AM）；侧加载\u002F反射（AO\u002FAP）\n□ JS\u002FAPK\u002F驱动：路由 js-reverse \u002F apk-reverse \u002F kernel-driver-reverse + cookbook，不在此复制长文\n```\n\n### Phase 4: YARA 规则编写\n\n```yara\n\u002F\u002F 规则结构\nrule MalwareFamily_Example {\n    meta:\n        description = \"检测 Example 恶意软件家族\"\n        author = \"分析者\"\n        date = \"2026-05\"\n        severity = \"high\"\n        hash = \"d41d8cd98f00b204e9800998ecf8427e\"\n        mitre_id = \"T1055\"  \u002F\u002F Process Injection\n\n    strings:\n        \u002F\u002F 字符串匹配\n        $str1 = \"C2_SERVER_URL\" ascii wide\n        $str2 = \"payload.dat\" ascii\n\n        \u002F\u002F 十六进制匹配\n        $hex1 = { 8B 45 ?? 50 FF 15 [4] 85 C0 }\n        \u002F\u002F 操作码序列: mov eax, [ebp-?]; push eax; call [import]; test eax, eax\n\n        \u002F\u002F 正则匹配\n        $re1 = \u002Fhttps?:\\\u002F\\\u002F[a-z0-9.-]+\\\u002F[a-z]{3,8}\\.php\u002F ascii\n\n    condition:\n        \u002F\u002F 组合条件\n        uint16(0) == 0x5A4D and     \u002F\u002F MZ 头\n        filesize \u003C 500KB and\n        (2 of ($str*) or $hex1)\n}\n```\n\n### Phase 5: Sigma 规则生成\n\n```yaml\n# 行为检测规则\ntitle: Suspicious Process Injection via CreateRemoteThread\nid: 5a3d2c1b-1234-5678-9abc-def012345678\nstatus: experimental\ndescription: 检测使用 CreateRemoteThread 的进程注入行为\nauthor: 分析者\ndate: 2026\u002F05\u002F25\ntags:\n    - attack.t1055          # Process Injection\n    - attack.t1055.001      # DLL Injection\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        Image|endswith: '\\powershell.exe'\n        CommandLine|contains:\n            - 'CreateRemoteThread'\n            - 'VirtualAllocEx'\n            - 'WriteProcessMemory'\n    condition: selection\nfalsepositives:\n    - 合法的调试工具\nlevel: high\n```\n\n### Phase 6: IOC 提取与情报\n\n```text\nIOC 类型分类：\n□ 网络 IOC:\n  - IP: C2 地址（注意时效性）\n  - Domain: DGA 算法生成的域名（rsnkfda.com, xpqmje.net）\n  - URL: Payload 托管地址\n  - User-Agent: 自定义 UA 字符串\n\n□ 主机 IOC:\n  - 文件路径: %APPDATA%\\Microsoft\\Crypto\\RSA\\*.dat\n  - 注册表: HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\\n  - Mutex: Global\\{GUID} 互斥体名称\n  - 服务名: 伪装成系统服务的名称\n\n□ 行为 IOC:\n  - MITRE ATT&CK 技术 ID (T1055, T1003, T1571...)\n  - Sigma 规则 → SIEM 集成\n  - YARA 规则 → 端点检测\n\n□ 静态 IOC:\n  - 编译时间戳（可伪造）\n  - PDB 路径（含开发者信息）\n  - 节名异常（非标准 .text\u002F.data）\n  - 导入表异常组合（如勒索软件 CryptEncrypt + DeleteShadowCopies）\n```\n\n## 反分析技术速查\n\n| 技术 | 检测方法 | YARA 特征 |\n|------|---------|----------|\n| 虚拟机检测 | WMI Win32_BIOS\u002FVideoController\u002FProcessor | `Win32_` 字符串 + 特定厂商名 |\n| 沙箱检测 | 磁盘 \u003C 60GB, RAM \u003C 2GB, 单核 CPU | GlobalMemoryStatusEx 调用模式 |\n| 调试器检测 | IsDebuggerPresent, CheckRemoteDebuggerPresent | PEB.BeingDebugged 偏移访问 |\n| 定时逃逸 | Sleep(300000) 后执行恶意行为 | NtDelayExecution 长参数 |\n| 地理位置检测 | 检查键盘布局\u002F时区 → 排除 CIS 国家 | GetKeyboardLayoutList 调用 |\n| 父进程检测 | explorer.exe vs cmd.exe | 进程名字符串比较 |\n| API 直接 syscall | 绕过 EDR hook | syscall 指令 + SSN 解析 |\n\n## 多 Agent 自动化分析 (SentinelHive 架构)\n\n```text\n┌─────────────────────────────────────────────────┐\n│                  Hive Director                    │\n│          (Claude Opus 编排 + 仲裁)                │\n└──────┬──────┬──────┬──────┬──────┬───────┘\n       │      │      │      │      │\n   ┌───┘  ┌───┘  ┌───┘  ┌───┘  ┌───┘\n   ▼      ▼      ▼      ▼      ▼      ▼\nTriage  RE    Behav  Intel  Detect Remed\n 快速   反编译  行为   威胁   规则   修复\n 分诊   静态   动态   情报   YARA  方案\n                          Sigma\n```\n\n## 工具链\n\n| 工具 | 用途 | 获取 |\n|------|------|------|\n| Ghidra \u002F IDA Pro | 深度反编译 | ghidra-sre.org |\n| CAPE Sandbox | 开源恶意软件沙箱 | GitHub: kevoreilly\u002FCAPEv2 |\n| ASD Azul | 大规模自动化分析 | GitHub: ASD |\n| YARA | 模式匹配规则引擎 | `pip install yara-python` |\n| Sigma | SIEM 行为检测规则 | GitHub: SigmaHQ\u002Fsigma |\n| FLOSS | 去混淆字符串提取 | `pip install flare-floss` |\n| Detect It Easy | 壳\u002F编译器检测 | GitHub: horsicq\u002FDetect-It-Easy |\n| pe-sieve | 进程内存扫描 | GitHub: hasherezade\u002Fpe-sieve |\n| VirusTotal API | 多引擎扫描 | virustotal.com |\n| MalwareBazaar | 恶意软件样本库 | bazaar.abuse.ch |\n\n## 参考\n\n- `references\u002Fyara-sigma-rules.md` — YARA + Sigma 编写方法论\n- `references\u002Fsandbox-orchestration.md` — 沙箱编排与自动化\n- `references\u002Fanti-analysis-techniques.md` — 94 种反分析技术检测\n- `..\u002Freverse-engineering\u002Freferences\u002Fre-agent-workflow.md` — IAT 铁律与六阶段门闩（Issue #65）\n- `..\u002Freverse-engineering\u002Fanti-analysis.md` — Agent 响应菜谱 A–T（反调试\u002F混淆旁路）\n- `..\u002Freverse-engineering\u002Freferences\u002Fnonpe-format-cookbook.md` — 非 PE\u002F多格式菜谱 U–AV（脚本\u002F宏\u002FJS\u002F驱动\u002FDLL\u002FAndroid）\n- `..\u002Freverse-engineering\u002Freferences\u002Follvm-deobfuscation.md` — 平坦化\u002F不透明谓词（H\u002FS）\n","# Malware Analysis\n\n## 适用场景\n\n- 恶意软件样本分析（PE\u002FELF\u002FMach-O\u002FAPK\u002F脚本）\n- YARA 规则编写与验证\n- Sigma 行为检测规则生成\n- 沙箱自动化分析编排\n- IOC 提取与威胁情报\n- 反分析技术检测与绕过\n\n## 六阶段分析流程\n\n### Phase 1: 初步分诊\n\n```bash\n# 快速静态检测\nfile sample.exe                      # 文件类型\nstrings sample.exe | grep -i \"http\\|cmd\\|powershell\\|base64\"  # 快速 IOCs\nrabin2 -zz sample.exe                # 字符串提取 + 交叉引用\nfloss sample.exe                     # 去混淆字符串提取（FireEye）\n\n# PE 头部分析\npecheck sample.exe                   # PE 结构验证\npescan sample.exe                    # 异常检测（节表、入口点）\ndiec sample.exe                      # Detect It Easy（壳\u002F编译器识别）\n\n# Hash 查询\nsha256sum sample.exe\n# → VirusTotal \u002F MalwareBazaar \u002F Triage 查询\n```\n\n```text\nTriage MUST 清单（Issue #65）：\n□ 文件类型：EXE \u002F DLL \u002F SYS \u002F .NET \u002F 脚本(bat|ps1|vba) \u002F 其他\n□ 架构 x86\u002Fx64\u002FARM；查壳（DIE 等）与编译语言线索\n□ DLL\u002FSYS：导入表与导出表并列检查（见 Phase 2 硬门）\n□ .NET：无传统 IAT → 走 dnSpy\u002FIL\u002F元数据等价锚点（见 Phase 2）\n□ 脚本\u002F宏\u002FDLL 专项 P0：见 nonpe-format-cookbook U–AV（E-batch-deobf \u002F E-ps-decode \u002F E-vba-pcode \u002F E-dll-*）\n```\n\n### Phase 1b: 脱壳与 IAT 处理（有壳时 · Issue #65）\n\n```text\n□ 无壳 \u002F .NET → 跳到 Phase 2\n□ 有壳：尝试脱壳（授权隔离环境）→ 尝试修复 IAT\n  - x86：ImportREC（或等价）；x64：Scylla（或等价）。禁止 64 位死磕 ImportREC\n□ 【IAT 修复铁律】优先自动\u002F半自动修复；若工具报错或修复后无法运行：\n  - 立即终止继续静态 IAT 修复\n  - MUST 记录 E-iat-repair-fail（命令、工具、现象）\n  - 转入 Phase 3 动态：API 断点（如 bp CreateFile）\u002F 硬件断点 \u002F 内存搜索抓取导入\n  - 这不算跳过导入表：路径已尝试并记 Evidence\n□ 【补丁 6】脱壳+修 IAT 后闪退\u002F蓝屏（疑 CRC\u002F大小自校验）：\n  - 放弃继续静态修文件；记 E-self-check-crash 或并入 E-iat-repair-fail\n  - 转 Phase 3：对 CreateFile \u002F GetFileSize \u002F 哈希相关 API 下断\n□ 用户指令可行性（§0.5）：加壳时用户抢跑「先别脱壳先看导入表」→ 说明阻塞 + 请确认；强制则记 quality=unreadable\u002Fpacked，禁止冒充完成有意义 IAT\n□ 用户要求重做「IAT 修复 \u002F 导入表检查」：MUST 重做被点名步骤（或经确认的前提协商结果），禁止换无关步骤冒充\n```\n\n### Phase 2: 静态分析\n\n```text\n反汇编\u002F反编译：\n□ IDA Pro \u002F Ghidra: 深度反编译\n□ radare2: CLI 快速分析\n□ x64dbg: Windows GUI 调试器\n\n重点分析区域：\n□ 入口点（Entry Point）→ 初始化逻辑\n□ 导入表 → API 用途推断（CreateRemoteThread=注入, CryptEncrypt=勒索）\n   **MUST（硬门）**：执行 rabin2 -i \u002F IDA imports \u002F pecheck 等价命令，将导入表分类摘要写入 Evidence（E-imports）后才能进入 Phase 3（除非已记 E-iat-repair-fail 并走动态旁路，见 Phase 1b）\n   分类至少覆盖：网络 \u002F 文件 \u002F 加密 \u002F 进程注入 \u002F 注册表 \u002F 其他可疑 API\n   解析失败或表为空：仍 MUST 记录失败输出，禁止静默跳过\n   **DLL\u002FSYS**：MUST 并列记录导出表 Evidence（E-exports，`rabin2 -E` 或等价）\n   **.NET**：无传统 IAT 时 MUST 用 dnSpy\u002FIL\u002F元数据\u002F程序集引用与敏感 API 摘要作为等价锚点，写入 E-imports \u002F E-triage-imports 语义槽\n   **干净导入表**：仅基础 DLL、几乎无业务 API → MUST 注明动态加载嫌疑（LoadLibrary\u002FGetProcAddress），SHOULD 转入 Phase 3 抓内存 API；若见哈希解析特征 → E-api-hash（补丁 N）\n   **宽字符串（T）**：ASCII strings 无 IOC 时 MUST 再试 UTF-16（strings -el \u002F IDA unicode）\n   **签名（F）**：有签名仍 MUST SigCheck；伪造\u002F吊销不降威胁等级\n   用户要求「重做导入表检查」：MUST 重做本项（阻塞时先走可行性门闩协商），禁止改换其他步骤冒充完成\n   **高危 API 组合（补丁 8）**：表过长时优先输出恶意组合簇（如 FindWindow+WriteProcessMemory+CreateRemoteThread），过滤纯系统基础调用噪声\n□ 资源段 → 嵌入 Payload（.rsrc 节）\n□ 字符串表 → URL\u002FC2\u002F文件路径\u002FBase64 blob\n□ TLS 回调 → 调试器启动前执行\n```\n\n### Phase 3: 沙箱动态分析\n\n```text\n自动化沙箱：\n□ Joe Sandbox \u002F ANY.RUN \u002F Triage: 商业沙箱\n□ CAPE Sandbox: 开源 + YARA 集成（推荐）\n□ ASD Azul: 开源恶意软件分析平台（2026 新发布）\n□ Cuckoo Sandbox: 经典开源（逐步被 CAPE 取代）\n\n调试起手式（补丁 7+10 · MUST 顺序，用户态调试器）：\n□ ① TLS 回调断点 → ② 入口点 EP 断点 → ③ 敏感 API 断点 → ④ ExitProcess\u002F退出路径保底断点\n□ ExitProcess 触发时：不急着重启；立即 dump memory，路径写入 Evidence（补丁 10）\n\n监控重点：\n□ 进程创建: CreateProcess \u002F ShellExecute\n□ 文件操作: WriteFile → 勒索? DeleteFile → Wiper?\n□ 注册表: Run\u002FRunOnce 持久化\n□ 网络: HTTP\u002FDNS → C2 通信\n□ 内存: VirtualAllocEx → 进程注入\n□ 服务: CreateService → 持久化\n□ IAT 修复失败 \u002F 自校验闪退样本：敏感 API + CreateFile\u002FGetFileSize 断点 \u002F 硬件执行断点 \u002F 内存搜索\n\n无行为应急分支（MUST）：\n□ 沙箱无行为、秒退或无限休眠 → 检查反调试\u002F反虚拟机（CPUID、计时、环境特征）\n□ 尝试硬件断点绕过、补丁检测点、或换物理机\u002F更高保真环境\n□ 将「无行为 + 条件」写入 Evidence；禁止无条件写成「样本无害」\n\n时间盒（补丁 9 · SHOULD 默认，可覆盖）：\n□ 静态深挖约 15 分钟无关键路径 → 强制转入本 Phase 动态\n□ 动态单步约 200 条指令无恶意线索 → 强制回静态字符串\u002F交叉引用重锚\n\n反调试\u002F混淆旁路（Issue #65 A–T · 详见 reverse-engineering\u002Fanti-analysis.md 菜谱）：\n□ P0：CPUID \u002F RDTSC \u002F PEB \u002F NtQueryInformationProcess → 记录检测点后 lab 绕过或换环境（E-anti-debug-*）\n□ P0：干净 IAT → API 哈希动态解析（bp GetProcAddress，E-api-hash）\n□ P0：strings 空 → 串解密例程 + 宽字符串 UTF-16（E-string-decrypt \u002F E-wide-strings）\n□ P0：可疑签名 → SigCheck；无效\u002F吊销不降威胁（E-sig-forge）\n□ P1：进程名扫描 \u002F VEH \u002F int3·DR \u002F 重叠节 \u002F Overlay \u002F .rsrc \u002F Delay-Load\n□ H\u002FS 平坦化与不透明谓词 → ollvm-deobfuscation.md（不在此复制长文）\n□ 绕过失败也写 Evidence；禁止反调试退出 = 样本无害\n\n非 PE \u002F 脚本 \u002F DLL 补洞（Issue #65 U–AV · 详见 reverse-engineering\u002Freferences\u002Fnonpe-format-cookbook.md）：\n□ bat\u002Fcmd：SET 拼接还原（U）→ E-batch-deobf；UTF-16 BOM（V）；REM\u002FGOTO 淹没（W）\n□ PowerShell：多层 Base64\u002FGzip（X）逐层 Evidence；IEX 拼接\u002F反转（Z）\n□ VBA：Stomping\u002FP-Code（AA）；Chr\u002FBase64（AB）；自修改宏（AC）\n□ DLL：TLS+DllMain（AJ）；导出异常\u002F无导出（AK\u002FAL）；Delay-Load 见 A–T R（AM）；侧加载\u002F反射（AO\u002FAP）\n□ JS\u002FAPK\u002F驱动：路由 js-reverse \u002F apk-reverse \u002F kernel-driver-reverse + cookbook，不在此复制长文\n```\n\n### Phase 4: YARA 规则编写\n\n```yara\n\u002F\u002F 规则结构\nrule MalwareFamily_Example {\n    meta:\n        description = \"检测 Example 恶意软件家族\"\n        author = \"分析者\"\n        date = \"2026-05\"\n        severity = \"high\"\n        hash = \"d41d8cd98f00b204e9800998ecf8427e\"\n        mitre_id = \"T1055\"  \u002F\u002F Process Injection\n\n    strings:\n        \u002F\u002F 字符串匹配\n        $str1 = \"C2_SERVER_URL\" ascii wide\n        $str2 = \"payload.dat\" ascii\n\n        \u002F\u002F 十六进制匹配\n        $hex1 = { 8B 45 ?? 50 FF 15 [4] 85 C0 }\n        \u002F\u002F 操作码序列: mov eax, [ebp-?]; push eax; call [import]; test eax, eax\n\n        \u002F\u002F 正则匹配\n        $re1 = \u002Fhttps?:\\\u002F\\\u002F[a-z0-9.-]+\\\u002F[a-z]{3,8}\\.php\u002F ascii\n\n    condition:\n        \u002F\u002F 组合条件\n        uint16(0) == 0x5A4D and     \u002F\u002F MZ 头\n        filesize \u003C 500KB and\n        (2 of ($str*) or $hex1)\n}\n```\n\n### Phase 5: Sigma 规则生成\n\n```yaml\n# 行为检测规则\ntitle: Suspicious Process Injection via CreateRemoteThread\nid: 5a3d2c1b-1234-5678-9abc-def012345678\nstatus: experimental\ndescription: 检测使用 CreateRemoteThread 的进程注入行为\nauthor: 分析者\ndate: 2026\u002F05\u002F25\ntags:\n    - attack.t1055          # Process Injection\n    - attack.t1055.001      # DLL Injection\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        Image|endswith: '\\powershell.exe'\n        CommandLine|contains:\n            - 'CreateRemoteThread'\n            - 'VirtualAllocEx'\n            - 'WriteProcessMemory'\n    condition: selection\nfalsepositives:\n    - 合法的调试工具\nlevel: high\n```\n\n### Phase 6: IOC 提取与情报\n\n```text\nIOC 类型分类：\n□ 网络 IOC:\n  - IP: C2 地址（注意时效性）\n  - Domain: DGA 算法生成的域名（rsnkfda.com, xpqmje.net）\n  - URL: Payload 托管地址\n  - User-Agent: 自定义 UA 字符串\n\n□ 主机 IOC:\n  - 文件路径: %APPDATA%\\Microsoft\\Crypto\\RSA\\*.dat\n  - 注册表: HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run\\\n  - Mutex: Global\\{GUID} 互斥体名称\n  - 服务名: 伪装成系统服务的名称\n\n□ 行为 IOC:\n  - MITRE ATT&CK 技术 ID (T1055, T1003, T1571...)\n  - Sigma 规则 → SIEM 集成\n  - YARA 规则 → 端点检测\n\n□ 静态 IOC:\n  - 编译时间戳（可伪造）\n  - PDB 路径（含开发者信息）\n  - 节名异常（非标准 .text\u002F.data）\n  - 导入表异常组合（如勒索软件 CryptEncrypt + DeleteShadowCopies）\n```\n\n## 反分析技术速查\n\n| 技术 | 检测方法 | YARA 特征 |\n|------|---------|----------|\n| 虚拟机检测 | WMI Win32_BIOS\u002FVideoController\u002FProcessor | `Win32_` 字符串 + 特定厂商名 |\n| 沙箱检测 | 磁盘 \u003C 60GB, RAM \u003C 2GB, 单核 CPU | GlobalMemoryStatusEx 调用模式 |\n| 调试器检测 | IsDebuggerPresent, CheckRemoteDebuggerPresent | PEB.BeingDebugged 偏移访问 |\n| 定时逃逸 | Sleep(300000) 后执行恶意行为 | NtDelayExecution 长参数 |\n| 地理位置检测 | 检查键盘布局\u002F时区 → 排除 CIS 国家 | GetKeyboardLayoutList 调用 |\n| 父进程检测 | explorer.exe vs cmd.exe | 进程名字符串比较 |\n| API 直接 syscall | 绕过 EDR hook | syscall 指令 + SSN 解析 |\n\n## 多 Agent 自动化分析 (SentinelHive 架构)\n\n```text\n┌─────────────────────────────────────────────────┐\n│                  Hive Director                    │\n│          (Claude Opus 编排 + 仲裁)                │\n└──────┬──────┬──────┬──────┬──────┬───────┘\n       │      │      │      │      │\n   ┌───┘  ┌───┘  ┌───┘  ┌───┘  ┌───┘\n   ▼      ▼      ▼      ▼      ▼      ▼\nTriage  RE    Behav  Intel  Detect Remed\n 快速   反编译  行为   威胁   规则   修复\n 分诊   静态   动态   情报   YARA  方案\n                          Sigma\n```\n\n## 工具链\n\n| 工具 | 用途 | 获取 |\n|------|------|------|\n| Ghidra \u002F IDA Pro | 深度反编译 | ghidra-sre.org |\n| CAPE Sandbox | 开源恶意软件沙箱 | GitHub: kevoreilly\u002FCAPEv2 |\n| ASD Azul | 大规模自动化分析 | GitHub: ASD |\n| YARA | 模式匹配规则引擎 | `pip install yara-python` |\n| Sigma | SIEM 行为检测规则 | GitHub: SigmaHQ\u002Fsigma |\n| FLOSS | 去混淆字符串提取 | `pip install flare-floss` |\n| Detect It Easy | 壳\u002F编译器检测 | GitHub: horsicq\u002FDetect-It-Easy |\n| pe-sieve | 进程内存扫描 | GitHub: hasherezade\u002Fpe-sieve |\n| VirusTotal API | 多引擎扫描 | virustotal.com |\n| MalwareBazaar | 恶意软件样本库 | bazaar.abuse.ch |\n\n## 参考\n\n- `references\u002Fyara-sigma-rules.md` — YARA + Sigma 编写方法论\n- `references\u002Fsandbox-orchestration.md` — 沙箱编排与自动化\n- `references\u002Fanti-analysis-techniques.md` — 94 种反分析技术检测\n- `..\u002Freverse-engineering\u002Freferences\u002Fre-agent-workflow.md` — IAT 铁律与六阶段门闩（Issue #65）\n- `..\u002Freverse-engineering\u002Fanti-analysis.md` — Agent 响应菜谱 A–T（反调试\u002F混淆旁路）\n- `..\u002Freverse-engineering\u002Freferences\u002Fnonpe-format-cookbook.md` — 非 PE\u002F多格式菜谱 U–AV（脚本\u002F宏\u002FJS\u002F驱动\u002FDLL\u002FAndroid）\n- `..\u002Freverse-engineering\u002Freferences\u002Follvm-deobfuscation.md` — 平坦化\u002F不透明谓词（H\u002FS）\n",{"name":5,"description":7,"user-invocable":47},true,"main","cd89f013b617f7eea982a9bbc60e992974fda2aa","systems\u002Freverse-skill\u002Fskills\u002Fmalware-analysis",15,"https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco","https:\u002F\u002Fcocoresearch.org\u002Fcoco\u002F","https:\u002F\u002Fgithub.com\u002Fcoco-research","https:\u002F\u002Fcocoresearch.org","Local-first, open-source tools for people who work with AI agents: governed memory, agents that check their own work, and data that stays on your machine.","2026-11-11 12:18:13",{"source":8,"skillName":5,"commands":59,"prompt":69,"zipAvailable":47},[60,63,66],{"tool":61,"command":62},"npx","npx skills add coco-research\u002Fcoco --skill malware-analysis",{"tool":64,"command":65},"bunx","bunx skills add coco-research\u002Fcoco --skill malware-analysis",{"tool":67,"command":68},"pnpm","pnpm dlx skills add coco-research\u002Fcoco --skill malware-analysis","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Freverse-skill\u002Fskills\u002Fmalware-analysis\u002FSKILL.md",[71,77],{"path":72,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fsandbox-orchestration.md","REFERENCE","参考文档",5239,"https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Freverse-skill\u002Fskills\u002Fmalware-analysis\u002Freferences\u002Fsandbox-orchestration.md",{"path":78,"resourceType":73,"resourceTypeDesc":74,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fyara-sigma-rules.md",6464,"https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Freverse-skill\u002Fskills\u002Fmalware-analysis\u002Freferences\u002Fyara-sigma-rules.md",[82,107,117,135,170,189],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":89,"publishedAt":42},"01M71KEJXF9KMT0BWCMRSRFA4M","trading-super-intelligence","Trading Super Intelligence Team. Named real-world personas across 8 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Ftrading\u002FSKILL.md",[88],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106],"super","trading super intelligence","intelligence","trading","validator","personas","local","composites","studio","team","across","world","first","gated","2026","lm studio","local-first",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":114,"publishedAt":42},"01M71KEFWS3CMAP7DF1P0FWTDE","strategy-super-intelligence","Strategy Super Intelligence Team. Named real-world personas across 7 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Fstrategy\u002FSKILL.md",[113],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[115,90,116,92,94,95,96,97,98,99,100,101,102,103,104,105,106],"strategy","strategy super intelligence",{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":129,"publishedAt":42},"01M71KED56ZEPK2QE84QSQPMT0","risk-compliance-super-intelligence","Risk & Compliance (GRC) Super Intelligence Team. Named real-world personas across 7 cells. Built local-first (LM Studio) and validator-gated. Illustrative composites; see DISCLAIMER.md.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Frisk-compliance\u002FSKILL.md",[123,124],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":125,"categoryName":126,"taxonomyType":127,"taxonomyTypeDesc":128},"01JBSEEDCAT000000000000037","律师与法务","PROFESSION","适用职业",[130,90,131,132,133,92,94,95,96,97,134,98,99,100,101,102,103,104,105,106],"risk","risk compliance super intelligence","compliance","risk compliance","grc",{"skillNo":136,"name":137,"nameZh":6,"description":138,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":139,"categories":140,"keywords":154,"publishedAt":42},"01M71KE9A2FWSC74VA96W1EZSN","product-design-super-intelligence","Your product + design brain trust and decision partner. Named personas across 8 cells spanning product strategy, discovery\u002Fresearch, growth\u002Fmetrics, design foundations\u002Fusability, design leadership\u002Fcraft, UX\u002Fcontent, design systems, and a…","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Fproduct-design\u002FSKILL.md",[141,144,147,148,151],{"categoryNo":142,"categoryName":143,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计",{"categoryNo":145,"categoryName":146,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000021","资料检索与研究",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":149,"categoryName":150,"taxonomyType":127,"taxonomyTypeDesc":128},"01JBSEEDCAT000000000000031","产品经理",{"categoryNo":152,"categoryName":153,"taxonomyType":127,"taxonomyTypeDesc":128},"01JBSEEDCAT000000000000032","设计师",[155,156,92,157,90,158,159,160,161,162,163,99,100,164,165,104,166,167,168,169],"design","product","product design","product design super intelligence","foundations","product-design","decision","design systems","usability","leadership","ux","brain","craft","metrics","trust",{"skillNo":171,"name":172,"nameZh":6,"description":173,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":174,"categories":175,"keywords":178,"publishedAt":42},"01M71KE6H9FPSD9TECYFBPXZ8Y","legal-ip-super-intelligence","Your legal, IP, and regulatory brain trust. 31 named personas across 7 cells covering patent strategy, tech licensing, regulatory litigation, AI governance, open-source compliance, privacy law, and antitrust.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Flegal-ip\u002FSKILL.md",[176,177],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},{"categoryNo":125,"categoryName":126,"taxonomyType":127,"taxonomyTypeDesc":128},[179,90,180,92,181,182,169,183,95,184,185,186,115,99,100,187,132,188,104,166],"ip","legal ip super intelligence","legal","sep","tech","litigation","ai governance","open","open-source","governance",{"skillNo":190,"name":191,"nameZh":6,"description":192,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":193,"categories":194,"keywords":196,"publishedAt":42},"01M71KE36QRY610V6YVB9JWRND","healthcare-life-sciences-super-intelligence","Your healthcare and life sciences brain trust. 25 named personas across 7 cells covering drug discovery, medtech, biotech strategy, health policy, genomics, clinical trials, and healthcare economics.","https:\u002F\u002Fgithub.com\u002Fcoco-research\u002Fcoco\u002Fblob\u002Fmain\u002Fsystems\u002Fsuperintelligence\u002Fhealthcare-life-sciences\u002FSKILL.md",[195],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[197,90,198,199,92,182,169,200,201,95,202,203,115,99,100,204,205,206,207,104],"healthcare","healthcare life sciences super intelligence","life","economics","discovery","policy","clinical","clinical trials","health","trials","genomics"]