re-doc-malware

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

A guide to analyzing suspicious PDF, Office, and RTF files, including documents with macros, embedded objects, or software exploits. It focuses on examining document structure and extracting payloads.

In plain words
What is it for?
Use it to inspect PDF objects and streams, extract Office macros and embedded files, trace chains from documents to scripts or executables, and analyze phishing attachments.
Why use it?
It helps analysts understand what a potentially harmful document contains without relying only on what appears when the file is opened.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to inspect PDF objects and streams, extract Office macros and embedded files, trace chains from documents to scripts or executables, and analyze phishing attachments.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-doc-malware/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-doc-malware)
Your own site
<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.

agentmods 80×15 button for re-doc-malware

Your own site · 80×15
<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>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,816 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.00066 $0.02816
Opus 5 $0.00033 $0.01408
Sonnet 5 $0.00013 $0.00563
Haiku 4.5 $0.00007 $0.00282

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

Security

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.

.claude/skills/re-doc-malware/SKILL.md · 138 lines

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 仓库同名包)或 GitHub DidierStevens/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),配合 -d dump 对照

olevba / rtfobj(Office/RTF 宏与嵌入对象提取)

  • 多平台: pip install oletools(oletools 内含 olevba、rtfobj、oleobj、msodde、oleid、mraptor 等)
  • 验证: olevba --helprtfobj --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]])。

  1. 文档类型识别
    file sample.pdf sample.docm sample.rtf
    
    • PDF:%PDF 头;Office 旧格式:CFB(OLE 复合文档,D0 CF 11 E0);OOXML:zip(PK);RTF:{\rtf
    • 类型决定后续工具链;多类型混合(如 PDF 内嵌 OLE)按各分支分别走

Read the full file on GitHub · 138 lines

Files

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.

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 · 138 lines · 66 tokens per session scan A c41975dd7301

Subscribe to this mod's changes

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.

Related

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…

mukul975/Anthropic-Cybersecurity-Skills · 73 tokens

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".

kalpmodi/akira · 54 tokens

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…

meltedinhex/analyst-ai-pack · 73 tokens

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.

killvxk/cybersecurity-skills-zh · 50 tokens

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.

26zl/cybersec-toolkit · 43 tokens

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.

plurigrid/asi · 43 tokens