chenchunrun/onyx-soc/pdf-analysis

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

当用户询问"分析 PDF 是否恶意"、"检测 PDF 安全性"、"PDF 威胁分析"、"检查 PDF 是否有病毒"、"PDF 安全检测"、"扫描 PDF"时使用此技能。

Install

npx vskill@latest install chenchunrun/onyx-soc/pdf-analysis

SKILL.md

PDF 恶意分析

依赖要求

Python 版本: 3.8+

内置脚本:

  • pdf_scan.py - 快速特征提取
  • pdf_extract.py - 内容提取

推荐安装:

bash
pip install PyMuPDF Pillow pyzbar # 增强 pdf_extract.py
brew install qpdf poppler # 深度分析工具
pip install pdfid pdf-parser # Didier Stevens 工具

快速使用

bash
# 快速扫描
python3 scripts/pdf_scan.py sample.pdf
# JSON 输出
python3 scripts/pdf_scan.py -j sample.pdf
# 提取全部内容
python3 scripts/pdf_extract.py sample.pdf
# 只提取图像和检测二维码
python3 scripts/pdf_extract.py sample.pdf --images --qr

威胁类型

类型攻击方式关注点
漏洞利用型利用 PDF Reader 漏洞JavaScript、CVE 特征
钓鱼诱导型诱导点击链接/扫码文本、URL、二维码
恶意载荷型嵌入可执行文件EmbeddedFile、附件
信息窃取型外传数据外部链接、表单

分析工作流

Phase 1: 快速扫描
bash
python3 scripts/pdf_scan.py sample.pdf

输出:威胁指标(JS/嵌入文件/URL)

Phase 2: 内容提取
bash
python3 scripts/pdf_extract.py sample.pdf --text # 文本
python3 scripts/pdf_extract.py sample.pdf --images --qr # 图像+二维码
python3 scripts/pdf_extract.py sample.pdf --files # 嵌入文件
Phase 3: 深度分析
  • JavaScript → 分析脚本内容
  • 嵌入文件 → 调用对应技能
  • URL → 调用 url-analysis
Phase 4: 报告生成

按 references/report-format.md 输出报告

高危嵌入文件类型

提取后需进一步分析:

  • 可执行文件: .exe, .dll, .scr, .bat, .ps1
  • 脚本文件: .js, .vbs, .hta
  • Office 宏文档: .docm, .xlsm
  • 压缩包: .zip, .rar, .7z

关联技能调用

提取到的 IOC调用技能
URLurl-analysis
二维码中的 URLurl-analysis
嵌入 Office 文件office-malware-analyzer
嵌入可执行文件binary-reverse-engineering
外部域名domain-analysis

工具速查

任务命令
快速扫描python3 pdf_scan.py sample.pdf
提取全部python3 pdf_extract.py sample.pdf
提取嵌入文件python3 pdf_extract.py sample.pdf --files
提取图像python3 pdf_extract.py sample.pdf --images
检测二维码python3 pdf_extract.py sample.pdf --images --qr
文件信息pdfinfo sample.pdf
对象统计pdfid.py sample.pdf
对象解析pdf-parser.py -o N sample.pdf
JavaScriptpdf-parser.py -s javascript sample.pdf

参考文件

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/chenchunrun/onyx-soc/pdf-analysis/badge)](https://verified-skill.com/skills/chenchunrun/onyx-soc/pdf-analysis)

Something wrong with this skill or its page? Tell us.