re-ioc

re-ioc is a skill for Claude Code from dslsdzc/rev-skills. It costs 35 tokens per session (2,640 once invoked), scanned A, original, Apache-2.0.

A guide to extracting indicators of compromise, such as file hashes, domains, and IP addresses, and writing YARA rules to identify matching files.

In plain words
What is it for?
Use it to build IOC lists, scan files with YARA rules, document evidence, and prepare structured analysis reports.
Why use it?
It organizes evidence from malware analysis into findings that can be checked, shared, and reproduced. It also keeps sample execution separate from this reporting work.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to build IOC lists, scan files with YARA rules, document evidence, and prepare structured analysis reports.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-ioc
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dslsdzc/rev-skills --skill re-ioc
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for re-ioc

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ioc/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-ioc)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-ioc"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ioc/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for re-ioc

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-ioc"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-ioc.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,640 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Supply Chain · line 37
    Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
    Fix: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.02640
Opus 5 $0.00017 $0.01320
Sonnet 5 $0.00007 $0.00528
Haiku 4.5 $0.00003 $0.00264

Measured 9d ago against content hash df0384c9d33c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

re-ioc scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s --request GET \
.claude/skills/re-ioc/SKILL.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

IOC 提取与 YARA 规则

何时使用 / 何时不用

  • 用:分析完成后产出 IOC 列表(hash/域名/IP/路径/互斥体);写 YARA 规则做样本检测;按标准结构出分析报告
  • 用:需要把行为证据整理成可复现、可分享的结论
  • 不用:还没完成行为/静态分析(IOC 原料在 [[re-behavior]] / [[re-triage]] 产物里)
  • 不用:用户只要一句话结论(仍建议至少给 IOC 与证据路径)

工具准备

本技能以静态处理为主(写规则/扫描文件),不运行样本;运行样本只在 [[re-sandbox]] 内(默认沙箱最高原则,见 [[platform-tips]])。

yara —— 规则引擎

  • Linux: apt install yara / dnf install yara / pacman -S yara
  • macOS: brew install yara
  • Windows/WSL: pip install yara-python(Python 版,跨平台兜底)
  • 验证: yara --version;Python: python -c "import yara; print(yara.__version__)"

pefile —— PE 结构解析(写 PE 特征用)

  • 全平台: pip install pefile
  • 验证: python -c "import pefile; print(pefile.__version__)"

VT / grep.app 查询(可选)

  • VirusTotal: 网页 https://www.virustotal.com/ 查询 hash/域名;API key 环境变量:
    curl -s --request GET \
      --url "https://www.virustotal.com/api/v3/search?query=<sha256>" \
      -H "x-apikey: $VT_API_KEY" | python3 -m json.tool
    
    验证: 带 key 的请求返回 JSON(401 说明 key 无效)
  • grep.app: 网页 https://grep.app/ 查公开代码中的特征字符串,无安装
  • 注: 上传私有样本到 VT 前确认数据策略;grep.app 查询仅用于字符串/特征参考

sha256sum / md5sum(IOC 哈希)

  • 安装与验证见 [[re-triage]] 工具准备(coreutils / Get-FileHash)

操作步骤

按顺序执行,每步记下结果。

  1. 提取 IOC(按来源分类)

    • 文件级: sha256sum sample.exe(sha256 为主,md5 仅辅助);脱壳产物、dropper 落盘文件各算一份
    • 网络级: 行为日志([[re-behavior]] 步骤 4)与 INetSim 记录中的域名、IP、端口;配置/内存里搜出的硬编码 URL(strings sample | grep -iE 'http|https'
    • 系统级: 文件路径(持久化位置、落地路径)、互斥体名(CreateMutex 参数,用 [[re-ghidra]] / [[re-ida]] 查或 procmon 记录)
    • 每类 IOC 记来源证据(日志文件路径 + 行号/时间戳),供报告引用
    • 去重 + 标注可信度(来自行为证据 > 仅静态字符串)
  2. YARA 规则编写(特征选择 + 评分)

    • 特征选择标准:唯一性(只出现在该家族/样本)、稳定性(不随版本易变)、可区分(避开常见库字符串)
    • 常用特征类型:字符串(URL/域名/互斥体/机器码)、PE 结构(节名、导入)、字节模式({ 4D 5A 90 00 }$a = { E8 ?? ?? ?? ?? } 通配)
    • 评分(写注释标注,命中阈值参考): 每个特征按信息量打分——唯一长字符串 +2、通用 API 名 +0.5、短字节模式 +1;总分 1/3 作为命中阈值参考,最终以验证为准
    • 示例:
      rule Win32_FamilyX_Dropper {
          meta:
              description = "FamilyX dropper 检测"
              author = "analyst"
              score = 4
          strings:
              $url = "http://c2.example.org" ascii wide
              $mutex = "Global\\FamilyX_mutex" ascii wide
              $pe   = { 4D 5A 90 00 }
          condition:
              uint16(0) == 0x5A4D and (2 of them)
      }
      
    • 规则名命名规范: 平台_家族_类型(如 Win32_FamilyX_Dropper

Read the full file on GitHub · 117 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 117 lines · 35 tokens per session scan A df0384c9d33c

Subscribe to this mod's changes

re-ioc is a skill published in the GitHub repository dslsdzc/rev-skills (54 stars, last pushed 14d ago), licensed Apache-2.0. It adds 35 tokens to every session and 2,640 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

Youngmaidainon/Agent-Level-Up · 95 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware in Ghidra by parsing Go buildinfo and pclntab structures, recovering stripped/obfuscated function names (e.g. via GoResolver), and extracting embedded module/dependency strings and types from Go binaries. Use when analyzing a Go-language malware sample, deobfuscating a…

mukul975/Anthropic-Cybersecurity-Skills · 95 tokens

Reverse Engineering & Binary Analysis

Binary analysis, assembly interpretation, disassembly, decompilation, firmware RE, and protocol reverse engineering.

Masriyan/Claude-Code-CyberSecurity-Skill · 26 tokens

analyzing-golang-malware-with-ghidra

Reverse engineer Go-compiled malware using Ghidra with specialized scripts for function recovery, string extraction, and type reconstruction in stripped Go binaries.

plurigrid/asi · 40 tokens

reverse-engineering-arm-binaries

Reverse engineers ARM/AArch64 malware by identifying the architecture and instruction set state (ARM/Thumb), parsing ELF/Mach-O ARM headers, and orienting analysis around the ARM calling convention. Activates for requests to reverse ARM binaries, analyze AArch64 malware, or handle ARM/Thumb instruction-set decoding.

meltedinhex/analyst-ai-pack · 69 tokens

reverse-engineering-binaries-with-ghidra

Uses Ghidra to disassemble and decompile a binary, navigate to key routines via imports and strings, annotate decompiled code, and run headless scripts to automate extraction of C2, crypto, and config. Activates for requests to reverse engineer with Ghidra, decompile a binary, or script Ghidra headless analysis.

meltedinhex/analyst-ai-pack · 80 tokens