re-imports

re-imports is a skill for Claude Code from dslsdzc/rev-skills. It costs 51 tokens per session (1,951 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,951 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.01951
Opus 5 $0.00026 $0.00975
Sonnet 5 $0.00010 $0.00390
Haiku 4.5 $0.00005 $0.00195

Measured 9d ago against content hash f7167e7c9367, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, 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 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.

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 · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 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]] 从内存取)

工具准备

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

objdump / readelf(binutils)

  • Linux: apt install binutils / dnf install binutils / pacman -S binutils
  • macOS: brew install binutilsgobjdump);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

  • macOS: brew install rizin
  • Arch: pacman -S rizin
  • Debian 13+ / Ubuntu 24.04+: apt install rizin;旧发行版用 GitHub 官方 release 二进制
  • 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]]

Read the full file on GitHub · 118 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 · 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 (54 stars, last pushed 14d ago), licensed Apache-2.0. It adds 51 tokens to every session and 1,951 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

Reverse Engineering & Binary Analysis

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

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

deobfuscating-powershell-obfuscated-malware

Systematically deobfuscates multi-layer PowerShell malware using AST analysis, dynamic tracing, and tools like PSDecode and PowerDecode to reveal hidden payloads and C2 infrastructure. Use during incident response or malware analysis when a PowerShell script is obfuscated with encoding, string manipulation, or…

Youngmaidainon/Agent-Level-Up · 90 tokens

conducting-malware-incident-response

Respond to malware infections across enterprise endpoints by identifying the malware family, determining infection vectors, assessing spread, and executing containment, analysis, eradication, and recovery procedures aligned to MITRE ATT&CK. Use when responding to a confirmed or suspected malware infection, including…

Youngmaidainon/Agent-Level-Up · 78 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…

Youngmaidainon/Agent-Level-Up · 95 tokens

analyzing-network-covert-channels-in-malware

Detect and analyze covert communication channels used by malware, including DNS tunneling, ICMP exfiltration, steganographic HTTP, and other protocol abuse used for C2 and data exfiltration. Use when investigating suspicious DNS/ICMP/HTTP traffic patterns, hunting for hidden C2 channels in network captures, or…

Youngmaidainon/Agent-Level-Up · 90 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.

Mikaru0Mystic/sectinel · 40 tokens