In short.
Analyzing Malicious PDF with peepdf is an assistant skill for malware analysts and security developers, but its automated findings need manual verification because tool failures and parsing errors can undermine the report. Its instructions cover PDF triage, object inspection, JavaScript extraction and indicator collection. The Python helper implements part of that workflow through external command-line tools; it contains no model integration and does not automate the documented VirusTotal lookup or JavaScript emulation. Runtime compatibility and detection accuracy have not been assessed.
Researched and written by an AI model and checked by a second AI model. How it works
The scope is skills/analyzing-malicious-pdf-with-peepdf at revision 54a798831d2266a3ca61ce68a7acb80b81160d57: SKILL.md, references/api-reference.md, scripts/agent.py and the folder LICENSE, plus the repository LICENSE as a related notice. Other repository skills, dependency implementations and external services are outside scope. No commands or samples were executed. Installation, runtime compatibility, extraction completeness, detection accuracy and operational costs remain unassessed.
The overview
Identity
The resource is the analyzing-malicious-pdf-with-peepdf skill folder in mukul975/Anthropic-Cybersecurity-Skills. It contains SKILL.md, a command reference, a Python helper and a local licence. Original source: [https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/main/skills/analyzing-malicious-pdf-with-peepdf].
SKILL.md identifies version 1.0 and author mahipal; the licence notices name mukul975. Anthropic authorship or endorsement is not established by the supplied material.
Assessment
The clearest value is a structured starting point for investigating suspicious PDF attachments. It connects quick keyword inspection with object-level analysis and gives analysts a consistent set of report fields.
The helper needs corrections before it can support dependable automated triage. Its report depends on parsing human-readable tool output, and unsuccessful subprocesses can yield empty findings without an explicit failure status. No execution results or accuracy measurements establish its reliability.
Users
The intended users include phishing-response analysts, malware researchers and forensic investigators examining suspicious PDF files. Security developers could adapt the Python helper to produce structured findings for an internal investigation process.
Beginners gain a glossary of PDF features and a sequence to follow, but still need command-line familiarity and guidance interpreting suspicious objects. Experienced analysts should treat the generated labels as investigation leads; common PDF features and JavaScript constructs do not establish malicious intent.
Capabilities
The written workflow covers suspicious PDF keywords, document structure, decoded streams, embedded JavaScript, possible shellcode indicators, hash lookups and indicator collection. The reference supplies interactive peepdf commands and object extraction examples for pdf-parser.
The Python helper computes MD5 and SHA-256 hashes, invokes pdfid and peepdf, attempts JavaScript-object extraction, searches extracted output for simple patterns and writes JSON. Its fields include file size, keyword counts, inferred JavaScript object IDs, CVE references, URLs and a heuristic risk score.
The script does not implement the documented VirusTotal lookup, JavaScript emulation, full deobfuscation, embedded executable extraction or detection-signature generation. These remain manual tasks or capabilities attributed to external tools.
Using it
Requirements
The skill specifies Python 3.8 or later, peepdf-3, Didier Stevens' pdfid.py and pdf-parser.py, and an isolated analysis VM or sandbox. It lists PyV8 for optional JavaScript emulation and Pylibemu for optional shellcode analysis.
The helper imports Python standard-library modules but depends on external analysis commands being discoverable. It tries module and executable forms for some tools. Exact dependency versions, operating-system compatibility and assistant installation requirements are not established.
Mechanism
The helper hashes the input, runs pdfid for keyword counts and runs peepdf with force and loose parsing options. It then scans console text for suspicious lines, JavaScript references, CVE identifiers and URLs. Numbers on JavaScript-related lines become candidate object IDs for subsequent pdf-parser calls.
Risk scoring adds 20 points per occurrence of designated high-risk keywords, 5 for other tracked keywords, 30 per extracted CVE reference, 15 per inferred JavaScript object and 10 per pattern match. Scores reach medium at 20, high at 50 and critical at 80; the reported number is capped at 100.
These weights are fixed rules with no supplied calibration. A score is not a probability of infection, and a CVE identifier found in tool output does not confirm that the document exploits that vulnerability.
Setup
The instructions specify an isolated environment and give pip install peepdf-3 as the package installation command. pdfid.py and pdf-parser.py must also be available. The reference offers peepdf interactive, batch and JSON-output examples, but supplies no pinned dependency set.
The helper accepts a PDF path, an optional --extract-js flag and an --output destination, which defaults to pdf_analysis_report.json. It already attempts extraction when its peepdf parser finds JavaScript objects; --extract-js does not provide an independent discovery method. Installation and command compatibility are unassessed.
Example
For a suspicious attachment named attachment.pdf, an illustrative invocation from the skill folder is python3 scripts/agent.py attachment.pdf --extract-js --output attachment-report.json. This example has not been executed.
The code defines an output containing hashes, PDF keyword counts, inferred JavaScript objects, extracted URL strings and a heuristic risk assessment. An analyst would use those fields to choose objects for manual inspection. No sample-specific findings or detection results are available.
Assessment & evidence
Limitations
Subprocess error handling can obscure incomplete analysis. The helper retries some nonzero exits but does not validate the final exit status or report stderr. Empty output can become empty findings and contribute to a low risk label. Missing executables and timeouts can instead terminate the script because those exceptions are not caught.
JavaScript object discovery collects every number from lines containing /JS or /JavaScript without validating or deduplicating object IDs. Object counts require a line containing both Version and Objects. Keyword counts require an integer in the final whitespace-separated field. Different output layouts can therefore produce missing or incorrect values.
Pattern scanning uses only the first 1,000 output characters per extracted object, and JSON includes at most five object previews. URL extraction examines peepdf console output. These limits prevent claims of exhaustive payload or indicator extraction.
The unused run_pdf_parser object-extraction branch supplies the PDF path after -d without a separate input argument, unlike the reference's output-file-plus-input syntax. Its command construction needs correction before reuse.
Reasoning
The workflow makes suspicious structures easier to investigate: pdfid highlights features, peepdf supplies document context and pdf-parser can expose particular objects. The practical benefit is organizing an analyst's investigation.
The automated verdict is weaker than the underlying investigation steps. Keyword frequencies, JavaScript constructs and printed CVE references are indirect signals. They cannot establish exploitability or safety, particularly when tool failures or truncated extraction may remove evidence. The resource fits a supervised investigation aid; autonomous verdict quality is unknown.
Alternatives
The reference documents direct use of the underlying tools: pdfid for initial keyword inspection, peepdf interactive mode for document exploration and pdf-parser for specific objects and decoded streams. These are useful options when the wrapper's inferred fields need verification.
CyberChef is named for decoding and transformation, and VirusTotal for hash-based detection cross-references. They address parts of the workflow. Comparative accuracy, current compatibility and service terms have not been assessed.
Evidence
The available material consists of the skill instructions, command reference, Python implementation and two Apache licence notices. The instructions establish intended coverage; the implementation establishes which operations the helper actually attempts.
The version-pinned source folder is available at [https://github.com/mukul975/Anthropic-Cybersecurity-Skills/tree/54a798831d2266a3ca61ce68a7acb80b81160d57/skills/analyzing-malicious-pdf-with-peepdf]. No sample PDFs, test results, benchmarks or dependency lockfile are included in the supplied folder files. Successful installation, execution and real-world detection quality remain unassessed.
Access & freshness
Costs
The Apache 2.0 notices grant rights without a licence royalty. This does not establish the total cost of operating the analysis environment.
The helper contains no model API calls or billing integration. Costs for any assistant hosting the skill, an isolated VM, analyst time and optional external services are unknown. VirusTotal access requirements and charges are not specified.
Rights
Both the repository-level and folder-local notices provide Apache License 2.0 terms. They permit use, modification and redistribution subject to their conditions, including supplying the licence, marking changed files and retaining applicable notices. Relevant NOTICE attributions must also be carried forward if such a file accompanies the work.
The licence grants no general trademark permission and provides the work without warranties. The supplied notices do not establish licensing terms for peepdf, Didier Stevens' tools or optional dependencies.
Freshness
The supplied files were captured on 16 November 2026 at revision 54a798831d2266a3ca61ce68a7acb80b81160d57. SKILL.md declares version 1.0.
That skill version does not identify compatible peepdf, pdfid or pdf-parser releases. Compatibility with currently available packages, optional emulation dependencies and VirusTotal access is unknown. Changes after the captured revision are outside this description.
Actions
Start with the written workflow and direct tool commands in the specified isolated environment. Verify dependency versions and compare each generated finding with the underlying object or tool output before using a risk label.
Before automating decisions, add explicit subprocess failure reporting, retain diagnostic output, validate object IDs and replace fragile text parsing where a verified structured interface is available. Correct the unused extraction command and make truncation visible in the report.
Evaluate benign and suspicious samples with known findings, including missing-tool, timeout and malformed-input cases. Detection accuracy and failure behavior remain unknown until those results exist.
