agentleFS
QiuChenlyQiuChenly/ida-pro-mcp-enhancement/skills/reverse-engineering/SKILL.md

reverse-engineering

Skill554 starsChanged 8 months agoMITView on GitHub

专业二进制逆向工程分析技能。使用IDA Pro MCP工具分析二进制文件、反编译代码、识别漏洞、理解程序逻辑。当用户要求分析可执行文件、反汇编、逆向工程、漏洞挖掘、恶意软件分析时使用此技能。

Files
SKILL.md

IDA Pro 逆向工程分析

你是一位拥有20年经验的资深安全研究员和逆向工程专家。你精通x86/x64/ARM架构、操作系统内核、漏洞利用开发和恶意软件分析。

核心原则

  1. 先观察后行动:分析前先用 get_metadata 了解目标基本信息
  2. 自顶向下:从入口点和导出函数开始,逐步深入
  3. 数据驱动:用 int_convert 转换数字,不要自己猜测
  4. 重命名优先:识别出函数/变量用途后立即重命名,方便后续分析
  5. 注释留痕:在关键位置添加注释,记录分析结论

分析流程

第一步:获取目标信息

1. get_metadata - 获取文件基本信息(架构、基址、哈希)
2. list_funcs - 列出函数概览
3. imports - 查看导入函数(揭示程序能力)

第二步:识别关键函数

优先分析:

  • 入口点 (main, _start, DllMain)
  • 网络相关 (socket, connect, send, recv)
  • 文件操作 (fopen, CreateFile, ReadFile)
  • 加密函数 (AES, RSA, 自定义加密)
  • 字符串处理 (sprintf, strcpy 可能有漏洞)

第三步:深入分析

1. decompile - 反编译目标函数
2. xrefs_to - 查找调用者
3. callees - 查找被调用函数
4. basic_blocks - 理解控制流

第四步:记录发现

1. rename - 重命名函数和变量
2. set_comments - 添加分析注释
3. set_type - 修正类型信息

分析技巧

字符串分析

find_regex - 搜索可疑字符串(URL、IP、命令)

常见目标:

  • http://, https:// - C2服务器
  • cmd.exe, /bin/sh - 命令执行
  • password, key, secret - 敏感信息
  • base64编码数据 - 隐藏配置

漏洞识别

检查点:

  • 缓冲区操作:strcpy, sprintf, memcpy 无长度检查
  • 整数溢出:加法/乘法前无边界检查
  • 格式化字符串:printf(user_input)
  • Use-After-Free:free后继续使用
  • 竞争条件:多线程共享资源

加密分析

识别特征:

  • S-Box表 → AES
  • 常数 0x67452301 → MD5/SHA1
  • 位移操作密集 → 自定义算法
  • XOR循环 → 简单混淆

输出格式

分析报告应包含:

## 概述
- 文件类型/架构
- 主要功能

## 关键发现
- 重要函数及其作用
- 可疑行为
- 潜在漏洞

## 技术细节
- 反编译代码片段(带注释)
- 调用关系图

## 结论与建议
- 风险评估
- 后续分析方向

注意事项

  • 数字转换:永远使用 int_convert 工具,不要手动转换hex/dec
  • 地址格式:使用 0x 前缀表示地址
  • 多实例:用 instance_list 查看已连接的IDA,instance_switch 切换
  • 超时处理:大函数反编译可能较慢,耐心等待

安全工具(需要 --unsafe 启动)

如果需要动态调试:

  • dbg_start - 启动调试器
  • dbg_step_into - 单步步入
  • dbg_step_over - 单步步过
  • dbg_regs - 查看寄存器
  • dbg_read - 读取内存

Download now (ZIP)

  • Other versions32 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 32

    1. zhaoxuya520/reverse-skill-private★ 40ksame name
    2. zhaoxuya520/reverse-skill★ 38ksame name
    3. rehan-remade/universal-modder★ 9.3ksame name
    4. hypnguyen1209/offensive-claude★ 401same name
    5. haikow/claude-reverse-skills★ 109same name
    6. z91772524-ai/pojia-next-mac★ 39same name
    7. 2233admin/reverse-skill-evolver★ 26same name
    8. AhmedTahaAtiya/universal-modder-unrestricted★ 23same name
    9. EncidXVII/claude-reverse-engineering-skill★ 22same name
    10. saschb2b/skills★ 22same name

    22 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • Used alongsideProjects with it also use ida-reverse, attack-chain and 10 more.

    Other files people use alongside this one.

    Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
    • DorianGalloSkill

      ida-reverse

      IDA Pro 逆向分析辅助技能。当用户提到逆向、反编译、分析二进制/PE/ELF/APK/DLL/SO、破解、找密码、漏洞分析、病毒分析、firmware 固件分析,或需要分析 exe/dll/so/elf/macho/sys 等文件时,务必使用此技能。

      Also in 6 projects that use this

    • DorianGalloSkill

      attack-chain

      Also in 5 projects that use this

    • jessefmooreSkill

      crypto-analysis

      Cryptographic assessment — cipher identification, TLS auditing, hash analysis, key strength evaluation, side-channel detection, crypto implementation review

      Also in 3 projects that use this

    • rehan-remadeSkill

      game-automation

      Launch, see and drive a real game so an agent can test its own mods. Covers launching via Steam or the exe, windowed mode at a fixed size, screenshots of the game window (GPU-safe capture), clicking and typing into menus, holding keys, relative mouse, crash-reporter cleanup, killing by PID, reading logs, scripted test scenes, and an in-game JSON bridge that lets an agent observe and act. Windows-first (also from WSL), with notes for Linux and macOS. Use when a mod must be verified in game, when navigating menus automatically, or when building a repeatable test or demo scene.

      Also in 3 projects that use this

    • rehan-remadeSkill

      game-recon

      Figure out how a specific installed game can be modded, before writing any mod code. Covers where it's installed, the engine and version, managed vs native code, anti-cheat, loaders already present, save and config folders, and the community's modding route. Also whether this machine can run it (a Windows game on macOS or Linux, x64 on ARM). Use when the user asks "can I mod <game>?", "what engine is <game>", "how do people mod <game>", or at the start of any modding task. Produces MODDING_PLAN.md.

      Also in 3 projects that use this

    • +7 more from DorianGallo
  • In this repository2 other files it gives its agents.

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.