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.
npx skills add dslsdzc/rev-skills --skill re-importsgit clone --depth 1 https://github.com/dslsdzc/rev-skillsWrote 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.
[](https://agentmods.dev/skills/dslsdzc/rev-skills/re-imports)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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 扩展
操作步骤
-
列出导入函数:
- PE:
objdump -p sample.exe | grep 'DLL Name' -A3 | head -30import 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 # 未定义符号 = 导入
- PE:
-
按导入特征匹配库/编译器(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++(_Zmangled)、Delphi(@System@)、.NET(mscoree + metadata) - Rich Header(PE)交叉验证编译器版本,见 [[re-format-pe]]
- FLIRT 签名: IDA
-
定位可疑导入:
- 进程注入类:
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_* - 命中即标注到分析笔记,下一步去反编译技能定位调用点
- 进程注入类:
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.
- 1mo ago Changed · -2 lines ce8d894d0e83
- 2mo ago Changed · +1 lines 62b7d3600783
- 2mo ago First seen · 118 lines · 51 tokens per session scan A f7167e7c9367
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.
re-imports compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| re-importsdslsdzc/rev-skills | Skill | 275 | 1mo ago | Apache-2.0 | A | 51 | Claude Code |
| deobfuscating-powershell-obfuscated-malwareYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 90 | Claude Code, Codex |
| conducting-malware-incident-responseYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 78 | Claude Code, Codex |
| analyzing-golang-malware-with-ghidraMikaru0Mystic/sectinel | Skill | 13 | 5mo ago | Apache-2.0 | A | 40 | Claude Code |
| analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 95 | Claude Code, Codex |
| analyzing-network-covert-channels-in-malwareYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 90 | Claude Code, Codex |
| analyzing-heap-spray-exploitationYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 46 | Claude Code, Codex |