analyzing-pdf-malware-with-pdfid

analyzing-pdf-malware-with-pdfid is a skill for Claude Code from Mikaru0Mystic/sectinel. It costs 84 tokens per session (3,097 once invoked), scanned A, a copy of analyzing-pdf-malware-with-pdfid, Apache-2.0.

A workflow for examining PDF files as data to find malicious JavaScript, shellcode, exploits, suspicious objects, and embedded payloads without opening them in a PDF reader.

In plain words
What is it for?
Use it to triage suspicious PDFs, identify how they attack PDF viewers, and extract embedded scripts, executables, or URLs for further malware analysis.
Why use it?
It helps investigate suspicious attachments while reducing the risk of triggering code inside the document. It also separates hidden file structures from the PDF’s visible text and layout.

Skill for Claude Code

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

Part of the cybersecurity-skills plugin — 56 skills shipped together

Good fit Use it to triage suspicious PDFs, identify how they attack PDF viewers, and extract embedded scripts, executables, or URLs for further malware analysis.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mikaru0mystic/sectinel/analyzing-pdf-malware-with-pdfid
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 Mikaru0Mystic/sectinel --skill analyzing-pdf-malware-with-pdfid
Clone the repo
git clone --depth 1 https://github.com/Mikaru0Mystic/sectinel

Made for: Claude Code.

Or install cybersecurity-skills, the plugin that ships this one along with the rest of its 56 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-pdf-malware-with-pdfid

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/mikaru0mystic/sectinel/analyzing-pdf-malware-with-pdfid"><img src="https://agentmods.dev/badge/skills/mikaru0mystic/sectinel/analyzing-pdf-malware-with-pdfid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,097 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod 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.00084 $0.03097
Opus 5 $0.00042 $0.01548
Sonnet 5 $0.00017 $0.00619
Haiku 4.5 $0.00008 $0.00310

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

Security

Grade A, and why

analyzing-pdf-malware-with-pdfid scanned grade A with 1 finding 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

result = subprocess.run(
Origin

This is a copy

94% identical to analyzing-pdf-malware-with-pdfid — 14 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

arsenal/Anthropic-Cybersecurity-Skills/skills/analyzing-pdf-malware-with-pdfid/SKILL.md · 352 lines

How it starts

The opening of the file, as written. The whole thing — 352 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Analyzing PDF Malware with PDFiD

When to Use

  • A suspicious PDF attachment has been flagged by email security or reported by a user
  • You need to determine if a PDF contains embedded JavaScript, shellcode, or exploit code
  • Triaging PDF documents before opening them in a sandbox or analysis environment
  • Extracting embedded executables, scripts, or URLs from malicious PDF objects
  • Analyzing PDF exploit kits targeting Adobe Reader or other PDF viewer vulnerabilities

Do not use for analyzing the rendered visual content of a PDF; this is for structural analysis of the PDF file format for malicious objects.

Prerequisites

  • Python 3.8+ with Didier Stevens' PDF tools installed (pip install pdfid pdf-parser)
  • peepdf installed for interactive PDF analysis (pip install peepdf)
  • pdftotext from poppler-utils for extracting text content safely
  • YARA with PDF-specific rules for malware family identification
  • Isolated analysis VM without a PDF reader installed (prevent accidental opening)
  • CyberChef for decoding embedded Base64, hex, or deflate streams

Workflow

Step 1: Initial Triage with PDFiD

Scan the PDF for suspicious keywords and structures:

# Run PDFiD to identify suspicious elements
pdfid suspect.pdf

# Expected output analysis:
# /JS           - JavaScript (HIGH risk)
# /JavaScript   - JavaScript object (HIGH risk)
# /AA           - Auto-Action triggered on open (HIGH risk)
# /OpenAction   - Action on document open (HIGH risk)
# /Launch       - Launch external application (HIGH risk)
# /EmbeddedFile - Embedded file (MEDIUM risk)
# /RichMedia    - Flash content (MEDIUM risk)
# /ObjStm       - Object stream (used for obfuscation)
# /URI          - URL reference (contextual risk)
# /AcroForm     - Interactive form (MEDIUM risk)

# Run with extra detail
pdfid -e suspect.pdf

# Run with disarming (rename suspicious keywords)
pdfid -d suspect.pdf
PDFiD Risk Assessment:
━━━━━━━━━━━━━━━━━━━━━
HIGH RISK indicators (any count > 0):
  /JS, /JavaScript  -> Embedded JavaScript code
  /AA               -> Automatic Action (triggers without user interaction)
  /OpenAction       -> Code runs when document is opened
  /Launch           -> Can launch external executables
  /JBIG2Decode      -> Associated with CVE-2009-0658 exploit

MEDIUM RISK indicators:
  /EmbeddedFile     -> Contains embedded files (could be EXE/DLL)
  /RichMedia        -> Flash/multimedia (Flash exploits)
  /AcroForm         -> Form with possible submit action
  /XFA              -> XML Forms Architecture (complex attack surface)

LOW RISK indicators:
  /ObjStm           -> Object streams (obfuscation technique)
  /URI              -> External URL references
  /Page             -> Number of pages (context only)

Read the full file on GitHub · 352 lines

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 · 352 lines · 84 tokens per session scan A 1413eed57738

Subscribe to this mod's changes

analyzing-pdf-malware-with-pdfid is a skill published in the GitHub repository Mikaru0Mystic/sectinel (11 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 84 tokens to every session and 3,097 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). It is 94% identical to analyzing-pdf-malware-with-pdfid, differing in 14 lines, and is treated as a copy.

Related

Other skills, from other repositories

analyzing-pdf-malware-with-pdfid

Analyzes malicious PDF files using PDFiD, pdf-parser, and peepdf to identify embedded JavaScript, shellcode, exploits, and suspicious objects without opening the document. Determines the attack vector and extracts embedded payloads for further analysis. Activates for requests involving PDF malware analysis, malicious…

mukul975/Anthropic-Cybersecurity-Skills · 84 tokens

analyzing-pdf-malware-with-pdfid

Analyzes malicious PDF files using PDFiD, pdf-parser, and peepdf to identify embedded JavaScript, shellcode, exploits, and suspicious objects without opening the document. Determines the attack vector and extracts embedded payloads for further analysis. Activates for requests involving PDF malware analysis, malicious…

26zl/cybersec-toolkit · 84 tokens

analyzing-pdf-malware-with-pdfid

A guide for examining a PDF’s internal structure to find malicious content without opening it in a PDF reader. It looks for JavaScript, automatic actions, exploit code, embedded files, and other suspicious objects.

killvxk/cybersecurity-skills-zh · 110 tokens

analyzing-pdf-malware-with-pdfid

Analyzes malicious PDF files using PDFiD, pdf-parser, and peepdf to identify embedded JavaScript, shellcode, exploits, and suspicious objects without opening the document. Determines the attack vector and extracts embedded payloads for further analysis. Activates for requests involving PDF malware analysis, malicious…

pinkpixel-dev/skills-collection-1 · 84 tokens

analyzing-pdf-malware-with-pdfid

Analyzes malicious PDF files using PDFiD, pdf-parser, and peepdf to identify embedded JavaScript, shellcode, exploits, and suspicious objects without opening the document. Determines the attack vector and extracts embedded payloads for further analysis. Activates for requests involving PDF malware analysis, malicious…

Youngmaidainon/Agent-Level-Up · 84 tokens

analyzing-pdf-malware-with-pdfid

Analyzes malicious PDF files using PDFiD, pdf-parser, and peepdf to identify embedded JavaScript, shellcode, exploits, and suspicious objects without opening the document. Determines the attack vector and extracts embedded payloads for further analysis. Activates for requests involving PDF malware analysis, malicious…

RobotFlow-Labs/skills-repo · 84 tokens