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-doc-malwaregit 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-doc-malware)<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-doc-malware"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-doc-malware/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-doc-malware"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-doc-malware.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.00066 | $0.02816 |
| Opus 5 | $0.00033 | $0.01408 |
| Sonnet 5 | $0.00013 | $0.00563 |
| Haiku 4.5 | $0.00007 | $0.00282 |
Grade A, and why
re-doc-malware 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.
How it starts
The opening of the file, as written. The whole thing — 138 lines — stays where its author put it; the contents beside it link to each section on GitHub.
恶意文档分析
何时使用 / 何时不用
- 用:钓鱼附件(PDF/Office/RTF)、文档漏洞利用样本、宏文档、文档型恶意载荷
- 用:仅拿到单文档样本,需还原载荷提取链(宏 → 脚本 → 可执行 → 回连)
- 不用:纯脚本宏(转 [[re-script-deob]]);文档仅是载体(核心逻辑在下载载荷)
- 不用:只有网页/邮件网关侧元数据(无样本文件本身)——先要样本再分析
- 注意:动态打开文档必须沙箱([[re-sandbox]],[[platform-tips]] 最高原则);文档可能检测环境后不触发(见坑 6)
工具准备
pdf-parser / pdfid(PDF 结构分析)
- Linux:
apt install pdf-parser pdfid(Kali 常预装;Debian/Ubuntu 仓库同名包)或 GitHubDidierStevens/DidierStevensSuite源码运行;macOS:brew install pdf-parser/ pip - Windows: pip(WSL 亦可)
- 验证:
pdf-parser --version(无则python3 pdf_parser.py --help);pdfid.py sample.pdf能输出对象计数 - 补充(备注:peepdf 已归档、Python 2 时代,PyPI 仅 0.3.6——首选 pdf-parser/pdfid)
qpdf(PDF 流解压,可选)
- Linux:
apt install qpdf;macOS:brew install qpdf - 验证:
qpdf --version - 用途: 展开对象流/压缩流为可读形式(
qpdf --qdf --object-streams=disable in.pdf out.pdf),配合-ddump 对照
olevba / rtfobj(Office/RTF 宏与嵌入对象提取)
- 多平台:
pip install oletools(oletools 内含 olevba、rtfobj、oleobj、msodde、oleid、mraptor 等) - 验证:
olevba --help;rtfobj --help - 注意: oledump 不在 oletools 包内——是独立工具(GitHub
DidierStevens/DidierStevensSuite取 oledump.py,需pip install olefile依赖;python3 oledump.py -s <流号> <文件>按流转储)
xlmdeobfuscator(Excel 4.0 宏去混淆,可选)
pip install xlmdeobfuscator- 验证:
xlmdeobfuscator --help - 适用: .xls 里的 XLM 宏表(olevba 0.54+ 已能识别 XLM,混淆深时用本工具还原)
LibreOffice(沙箱打开验证,可选)
- Linux:
apt install libreoffice/dnf install libreoffice;macOS:brew install --cask libreoffice;Windows: 官方安装包 - 验证:
libreoffice --version - 注意: LibreOffice 默认不执行 VBA 宏(宏安全性限制)——沙箱里要验证宏行为需装真实 Office 或改 LibreOffice 宏安全设置(见 [[gotchas]])
7z(OLE/OOXML 解包)
- Linux:
apt install p7zip-full;macOS:brew install sevenzip;Windows: 官方安装包 - 验证:
7z --help - 7z 可直接列出 OLE 复合文档内部流(WordDocument/1Table/VBA/PROJECT 等)与 OOXML 包内文件
操作步骤
按顺序执行;每步产物存档(路径 + sha256,见 [[re-triage]])。
- 文档类型识别:
file sample.pdf sample.docm sample.rtf- PDF:
%PDF头;Office 旧格式:CFB(OLE 复合文档,D0 CF 11 E0);OOXML:zip(PK);RTF:{\rtf - 类型决定后续工具链;多类型混合(如 PDF 内嵌 OLE)按各分支分别走
- PDF:
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 9d ago First seen · 138 lines · 66 tokens per session scan A c41975dd7301
re-doc-malware is a skill published in the GitHub repository dslsdzc/rev-skills (50 stars, last pushed 11d ago), licensed Apache-2.0. It adds 66 tokens to every session and 2,816 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-08-30.
Other skills, from other repositories
analyzing-malicious-pdf-with-peepdf
Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects. Use when triaging a suspicious PDF attachment from a phishing email, analyzing a PDF-based exploit document, or building detection signatures for weaponized PDF…
report
Use when generating a pentest report, writing up findings from a completed assessment, converting triage output into a structured document, or producing an executive summary of vulnerabilities. Also use when the user says "generate report", "write report", or "create report".
analyzing-malicious-pdfs
Analyzes malicious PDF documents: parsing the object structure for JavaScript, OpenAction/launch triggers, embedded files, and URIs, then extracting and decoding suspicious streams without opening the document in a reader. Activates for requests to analyze a malicious PDF, inspect PDF JavaScript, or extract embedded…
analyzing-malicious-pdf-with-peepdf
A Chinese-language skill for examining suspicious PDF files with peepdf, pdfid, and pdf-parser. It is intended for static malware analysis, which studies a file without running it.
analyzing-malicious-pdf-with-peepdf
Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects.
analyzing-malicious-pdf-with-peepdf
Perform static analysis of malicious PDF documents using peepdf, pdfid, and pdf-parser to extract embedded JavaScript, shellcode, and suspicious objects.