analyzing-malicious-pdf-with-peepdf

analyzing-malicious-pdf-with-peepdf is a skill for Claude Code from killvxk/cybersecurity-skills-zh. It costs 50 tokens per session (833 once invoked), scanned A, original, Apache-2.0.

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.

In plain words
What is it for?
It supports PDF triage, object exploration, stream extraction and decoding, JavaScript analysis, hash checks, and collection of indicators such as URLs, domains, and hashes.
Why use it?
It helps investigators find hidden scripts, shellcode, embedded files, and other signs that a PDF may be weaponised.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cybersecurity-skills-zh plugin — 58 skills shipped together

Good fit It supports PDF triage, object exploration, stream extraction and decoding, JavaScript analysis, hash checks, and collection of indicators such as URLs, domains, and hashes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/killvxk/cybersecurity-skills-zh/analyzing-malicious-pdf-with-peepdf
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 killvxk/cybersecurity-skills-zh --skill analyzing-malicious-pdf-with-peepdf
Clone the repo
git clone --depth 1 https://github.com/killvxk/cybersecurity-skills-zh

Made for: Claude Code.

Or install cybersecurity-skills-zh, the plugin that ships this one along with the rest of its 58 skills.

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 analyzing-malicious-pdf-with-peepdf

README.md
[![agentmods](https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-malicious-pdf-with-peepdf/github.svg)](https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-malicious-pdf-with-peepdf)
Your own site
<a href="https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-malicious-pdf-with-peepdf"><img src="https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-malicious-pdf-with-peepdf/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 analyzing-malicious-pdf-with-peepdf

Your own site · 80×15
<a href="https://agentmods.dev/skills/killvxk/cybersecurity-skills-zh/analyzing-malicious-pdf-with-peepdf"><img src="https://agentmods.dev/badge/skills/killvxk/cybersecurity-skills-zh/analyzing-malicious-pdf-with-peepdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 833 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.
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.00050 $0.00833
Opus 5 $0.00025 $0.00417
Sonnet 5 $0.00010 $0.00167
Haiku 4.5 $0.00005 $0.00083

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

Security

Grade A, and why

analyzing-malicious-pdf-with-peepdf 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 11d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/agent.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/analyzing-malicious-pdf-with-peepdf/SKILL.md · 77 lines

What it actually says

使用 peepdf 分析恶意 PDF

适用场景

  • 对来自钓鱼邮件的可疑 PDF 附件进行分类
  • 对基于 PDF 的漏洞利用文档进行恶意软件分析
  • 从 PDF 中提取嵌入的 JavaScript、shellcode 或可执行文件
  • 对武器化文档工件进行取证检查
  • 为基于 PDF 的威胁构建检测签名

前置条件

  • Python 3.8+,安装 peepdf-3(pip install peepdf-3)
  • Didier Stevens 工具套件中的 pdfid.py 和 pdf-parser.py
  • 隔离分析环境(虚拟机或沙箱)
  • 可选:PyV8,用于 peepdf 内的 JavaScript 模拟
  • 可选:Pylibemu,用于 shellcode 分析

工作流程

  1. 使用 pdfid 分类:扫描 PDF 中的可疑关键词(/JS、/JavaScript、/OpenAction、/Launch、/EmbeddedFile)。
  2. 交互式分析:在 peepdf 交互模式下打开 PDF,探索对象结构。
  3. 识别可疑对象:定位包含 JavaScript、流或编码数据的对象。
  4. 提取内容:转储可疑流并解码过滤器(FlateDecode、ASCIIHexDecode)。
  5. 去混淆 JavaScript:分析提取的 JavaScript 中的 shellcode、堆喷射或漏洞利用代码。
  6. VirusTotal 检查:使用 peepdf vtcheck 将文件哈希与 AV 检测结果交叉验证。
  7. 生成 IOC:提取 URL、域名、哈希值和 shellcode 签名。

核心概念

概念 定义
/OpenAction PDF 打开时自动执行的操作
/JavaScript /JS PDF 对象中嵌入的 JavaScript 代码
/Launch 启动外部应用程序的操作
/EmbeddedFile 嵌入在 PDF 结构中的文件
FlateDecode 用于隐藏内容的 zlib 压缩过滤器
Object Streams 存储在压缩流中的 PDF 对象

工具与系统

工具 用途
peepdf / peepdf-3 带 JavaScript 模拟的交互式 PDF 分析
pdfid.py 扫描可疑关键词的快速分类工具
pdf-parser.py 深层对象级 PDF 解析
VirusTotal 哈希查询和 AV 检测交叉验证
CyberChef 解码和转换提取的载荷

输出格式

分析报告:PDF-MAL-[日期]-[序号]
文件:[filename.pdf]
SHA-256:[哈希值]
可疑关键词:[/JS、/OpenAction 等]
包含 JavaScript 的对象:[对象 ID]
提取的 URL:[列表]
检测到 Shellcode:[是/否]
嵌入文件:[数量和类型]
VirusTotal 检测:[X/Y 引擎]
风险等级:[严重/高/中/低]
Files

What ships with it

3 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. 11d ago First seen · 77 lines · 50 tokens per session scan A dd8e72629d1b

Subscribe to this mod's changes

analyzing-malicious-pdf-with-peepdf is a skill published in the GitHub repository killvxk/cybersecurity-skills-zh (44 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 50 tokens to every session and 833 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

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

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.

pinkpixel-dev/skills-collection-1 · 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.

marysatasselshaped667/skills-collection-1 · 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.

autohandai/community-skills · 43 tokens