re-imports

re-imports is a skill for Claude Code from dslsdzc/rev-skills. It costs 51 tokens per session (1,939 once invoked), scanned A, original, Apache-2.0.

A guide to reading a program's imported and exported functions and recognizing code that comes from shared libraries such as DLLs or shared objects.

In plain words
What is it for?
Use it to list imports, inspect exported interfaces, identify library and compiler fingerprints, and find potentially relevant APIs.
Why use it?
It gives an early view of what APIs and libraries a binary uses before examining every function. This can reveal networking, injection, encryption, plugins, or suspicious dependencies.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to list imports, inspect exported interfaces, identify library and compiler fingerprints, and find potentially relevant APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-imports
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-imports
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-imports

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-imports/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-imports)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-imports"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-imports/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-imports

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-imports"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-imports.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,939 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00051 $0.01939
Opus 5.5 $0.00020 $0.00776
Sonnet 5.5 $0.00010 $0.00388
Haiku 4.5 $0.00005 $0.00194

Measured 1mo ago against content hash ce8d894d0e83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

re-imports scanned grade A with 0 findings 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 1mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/re-imports/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.

导入导出表与库指纹

何时使用 / 何时不用

  • 用:判断程序链接了哪些库/API;按导入特征匹配编译器与库版本;定位可疑导入(注入/网络/加密 API);分析插件与 DLL 的导出接口
  • 不用:只需函数内部逻辑(直接反编译技能)
  • 不用:壳静态隐藏导入时(动态解析的 API 不在 IAT 里——配合 [[re-tracing]] / [[re-memdump]] 从内存取)

工具准备

参考 [[re-analyze/platform-tips]]——导入表分析为静态步骤,免沙箱;涉及运行(验证动态解析 API)按最高原则进沙箱。

objdump / readelf(binutils)

  • Linux: apt install binutils / dnf install binutils / pacman -S binutils
  • macOS: brew install binutils(gobjdump);Mach-O 用 otool -L + nm -u
  • WSL: Linux 版
  • 验证: objdump -V

pefile(Python)

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

rizin / rz-bin

  • 安装矩阵见 [[re-radare2]],安装后以 rizin -v 验证
  • Windows: 官方 release 解压即用;radare2 用户可 choco install radare2 作兼容(命令见下)
  • 验证: rz-bin -V

Ghidra FLIRT 插件(ghidra_flirt)

  • 全平台: git clone https://github.com/nneonneo/ghidra_flirt && cd ghidra_flirt && make(需 Ghidra 已装,见 [[re-ghidra]])
  • 验证: Ghidra 内出现 ghidra_flirt 扩展

操作步骤

  1. 列出导入函数:

    • PE:
      objdump -p sample.exe | grep 'DLL Name' -A3 | head -30
      
      import pefile
      pe = pefile.PE('sample.exe')
      for e in pe.DIRECTORY_ENTRY_IMPORT:
          print(e.dll, [i.name for i in e.imports if i.name][:15])
      
    • ELF:
      objdump -T sample | grep UND            # 未定义符号 = 导入
      readelf -s sample | grep -i ' UND '
      
    • Mach-O:
      otool -L sample      # 依赖 dylib 列表
      nm -u sample         # 未定义符号 = 导入
      
  2. 按导入特征匹配库/编译器(FLIRT 思路):

    • FLIRT 签名: IDA File > Load file > FLIRT signature file...(自带 sig 目录)自动标注库函数;Ghidra 用 ghidra_flirt 插件(工具准备)
    • libc 版本指纹: readelf -s sample | grep -c '' 配合 strings sample | grep -E 'GLIBC_[0-9.]+'(GLIBC 符号版本号);strings libc.so.6 | grep -m1 version 对运行库侧
    • 语言指纹: Go(runtime.main / go1.2x 串)、Rust(_ZN/__rust_*)、C++(_Z mangled)、Delphi(@System@)、.NET(mscoree + metadata)
    • Rich Header(PE)交叉验证编译器版本,见 [[re-format-pe]]
  3. 定位可疑导入:

    • 进程注入类: OpenProcess + VirtualAllocEx + WriteProcessMemory + CreateRemoteThread(kernel32);NtCreateThreadEx(ntdll)
    • 网络回连类: WSAStartup/socket/connect/HttpSendRequestA/WinHttpOpen
    • 加密/窃密类: CryptEncrypt/CryptDecrypt/BCryptEncrypt/CryptExportKey(导出密钥)
    • 反调试类: IsDebuggerPresent/NtQueryInformationProcess/OutputDebugStringA(异常触发检测)
    • ELF 侧: ptrace/socket/execve/dlopen/fork;Mach-O 侧: task_for_pid/_dyld_*
    • 命中即标注到分析笔记,下一步去反编译技能定位调用点

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. 1mo ago Changed · -2 lines ce8d894d0e83
  2. 2mo ago Changed · +1 lines 62b7d3600783
  3. 2mo ago First seen · 118 lines · 51 tokens per session scan A f7167e7c9367

Subscribe to this mod's changes

re-imports is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,939 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

re-imports compared with skills from other repositories

re-imports next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re-importsdslsdzc/rev-skillsSkill2751mo agoApache-2.0A51Claude Code
deobfuscating-powershell-obfuscated-malwareYoungmaidainon/Agent-Level-UpSkill43mo agoMITA90Claude Code, Codex
conducting-malware-incident-responseYoungmaidainon/Agent-Level-UpSkill43mo agoMITA78Claude Code, Codex
analyzing-golang-malware-with-ghidraMikaru0Mystic/sectinelSkill135mo agoApache-2.0A40Claude Code
analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-UpSkill43mo agoMITA95Claude Code, Codex
analyzing-network-covert-channels-in-malwareYoungmaidainon/Agent-Level-UpSkill43mo agoMITA90Claude Code, Codex
analyzing-heap-spray-exploitationYoungmaidainon/Agent-Level-UpSkill43mo agoMITA46Claude Code, Codex