
Analyzing Malicious Pdf With Peepdf
- 307 installs
- 27.3k repo stars
- Updated August 2, 2026
- mukul975/anthropic-cybersecurity-skills
Analyzing Malicious PDF with peepdf is an agent skill that structures terminal-oriented peepdf triage of suspicious PDF files.
About
Analyzing Malicious PDF with peepdf is an agent skill for solo builders and small security-minded teams who need to understand what is inside a questionable PDF before trusting previews, storage, or automated parsers. It centers on peepdf as the inspection lens for PDF internals—streams, objects, and common abuse patterns—so your coding agent can suggest a disciplined triage path instead of double-clicking unknown attachments. Use it when validating file-upload features, debugging customer-reported phishing samples, or pairing agent assistance with hands-on malware homework in the Ship security phase. It does not replace a full sandbox or enterprise SOC stack; it compresses procedural knowledge so you know which peepdf-oriented steps to run and what to look for next. Expect integration-style guidance that assumes you will execute commands locally and interpret output critically.
- Guides peepdf-based inspection of PDF structure, objects, and suspicious embedded content
- Oriented toward malicious-PDF workflows rather than generic document editing
- Fits security research and incident triage alongside other cybersecurity skills in the collection
- Terminal-first analysis mindset for PDF-centric threats
- Apache 2.0–licensed skill packaging from the anthropic-cybersecurity-skills bundle
Analyzing Malicious Pdf With Peepdf by the numbers
- 307 all-time installs (skills.sh)
- +20 installs in the week ending Aug 4, 2026 (Skillselion tracking)
- Ranked #631 of 2,203 Security skills by installs in the Skillselion catalog
- Security screen: LOW risk (skills.sh audit)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/mukul975/anthropic-cybersecurity-skills --skill analyzing-malicious-pdf-with-peepdfAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 307 |
|---|---|
| repo stars | ★ 27.3k |
| Security audit | 3 / 3 scanners passed |
| Last updated | August 2, 2026 |
| Repository | mukul975/anthropic-cybersecurity-skills ↗ |
What it does
Inspect suspicious PDF attachments with peepdf from the terminal when you need structured malware triage without opening files blindly.
Who is it for?
Best when you're hardening upload flows, doing security coursework, or triaging one-off malicious PDF samples with peepdf on a trusted lab machine.
Skip if: Skip if you need automated SOC pipelines, legal e-discovery, or analysis of non-PDF malware families without PDF-specific tooling.
When should I use this skill?
You have an untrusted PDF and need structured peepdf-oriented inspection steps for security triage.
What you get
You leave with a peepdf-focused inspection plan and clearer signals about whether the PDF warrants deeper sandbox analysis or quarantine.
- Peepdf inspection command sequence
- Notes on suspicious PDF objects or streams to escalate
- Quarantine or sandbox recommendation
Files
Analyzing Malicious PDF with peepdf
When to Use
- When triaging suspicious PDF attachments from phishing emails
- During malware analysis of PDF-based exploit documents
- When extracting embedded JavaScript, shellcode, or executables from PDFs
- For forensic examination of weaponized document artifacts
- When building detection signatures for PDF-based threats
Prerequisites
- Python 3.8+ with peepdf-3 installed (pip install peepdf-3)
- pdfid.py and pdf-parser.py from Didier Stevens suite
- Isolated analysis environment (VM or sandbox)
- Optional: PyV8 for JavaScript emulation within peepdf
- Optional: Pylibemu for shellcode analysis
Workflow
1. Triage with pdfid: Scan PDF for suspicious keywords (/JS, /JavaScript, /OpenAction, /Launch, /EmbeddedFile). 2. Interactive Analysis: Open PDF in peepdf interactive mode to explore object structure. 3. Identify Suspicious Objects: Locate objects containing JavaScript, streams, or encoded data. 4. Extract Content: Dump suspicious streams and decode filters (FlateDecode, ASCIIHexDecode). 5. Deobfuscate JavaScript: Analyze extracted JS for shellcode, heap sprays, or exploit code. 6. Check VirusTotal: Use peepdf vtcheck to cross-reference file hash with AV detections. 7. Generate IOCs: Extract URLs, domains, hashes, and shellcode signatures.
Key Concepts
| Concept | Description |
|---|---|
| /OpenAction | Automatic action executed when PDF is opened |
| /JavaScript /JS | Embedded JavaScript code in PDF objects |
| /Launch | Action that launches external applications |
| /EmbeddedFile | File embedded within the PDF structure |
| FlateDecode | zlib compression filter used to hide content |
| Object Streams | PDF objects stored in compressed streams |
Tools & Systems
| Tool | Purpose |
|---|---|
| peepdf / peepdf-3 | Interactive PDF analysis with JS emulation |
| pdfid.py | Quick triage scanning for suspicious keywords |
| pdf-parser.py | Deep object-level PDF parsing |
| VirusTotal | Hash lookup and AV detection cross-reference |
| CyberChef | Decode and transform extracted payloads |
Output Format
Analysis Report: PDF-MAL-[DATE]-[SEQ]
File: [filename.pdf]
SHA-256: [hash]
Suspicious Keywords: [/JS, /OpenAction, etc.]
Objects with JavaScript: [Object IDs]
Extracted URLs: [List]
Shellcode Detected: [Yes/No]
Embedded Files: [Count and types]
VirusTotal Detections: [X/Y engines]
Risk Level: [Critical/High/Medium/Low]
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to the Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by the Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding any notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. Please do not remove or change
the license header comment from a contributed file except when
necessary.
Copyright 2026 mukul975
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Malicious PDF Analysis Reference
peepdf Installation
# Python 3 version
pip install peepdf-3
# From source
git clone https://github.com/jesparza/peepdf.git
cd peepdf && pip install -r requirements.txtpeepdf CLI Usage
# Basic analysis (loose mode, force parsing)
peepdf -f -l malicious.pdf
# Interactive mode
peepdf -i malicious.pdf
# Batch script execution
peepdf -s commands.txt malicious.pdf
# JSON output
peepdf -j malicious.pdfpeepdf Interactive Commands
| Command | Description |
|---|---|
info | Display document summary and suspicious elements |
tree | Show object tree structure |
object <id> | Display raw content of object |
stream <id> | Decode and display stream content |
rawstream <id> | Display raw (encoded) stream |
js_analyse <id> | Analyze JavaScript in object |
js_eval <id> | Evaluate JavaScript (requires PyV8) |
vtcheck | Check file hash on VirusTotal |
extract uri | Extract all URIs from document |
search <string> | Search for string across objects |
offsets <id> | Show byte offsets of object in file |
metadata | Display document metadata |
pdfid.py Usage
# Basic scan
pdfid.py malicious.pdf
# Additional disarm indicators
pdfid.py -e malicious.pdf
# Scan directory
pdfid.py -r /samples/pdfid Suspicious Keywords
| Keyword | Risk | Significance |
|---|---|---|
| /JS | High | JavaScript object reference |
| /JavaScript | High | JavaScript action |
| /OpenAction | High | Automatic execution on open |
| /AA | High | Additional actions trigger |
| /Launch | Critical | Launch external application |
| /EmbeddedFile | High | Embedded file (dropper) |
| /XFA | High | XML Forms Architecture (exploit surface) |
| /JBIG2Decode | Medium | Image decoder (CVE-2009-0658) |
| /AcroForm | Medium | Interactive form (potential exploit) |
| /ObjStm | Low | Object stream (can hide objects) |
| /URI | Low | External URL reference |
pdf-parser.py Usage
# Document statistics
pdf-parser.py --stats malicious.pdf
# Extract specific object
pdf-parser.py -o 10 malicious.pdf
# Extract and decode filters
pdf-parser.py -o 10 -f malicious.pdf
# Dump decoded stream to file
pdf-parser.py -o 10 -f -d extracted.bin malicious.pdf
# Search for keyword
pdf-parser.py --search "/JavaScript" malicious.pdf
# Search by type
pdf-parser.py --type "/Action" malicious.pdfCommon CVEs in PDF Exploits
| CVE | Component | Description |
|---|---|---|
| CVE-2009-0658 | JBIG2 | Buffer overflow in JBIG2 decoder |
| CVE-2009-4324 | Doc.media | Use-after-free via newplayer |
| CVE-2010-0188 | LibTIFF | TIFF image handling overflow |
| CVE-2013-0640 | XFA | Memory corruption in XFA |
| CVE-2017-11882 | Equation Editor | Stack buffer overflow |
Shellcode Detection Patterns
| Pattern | Indicator |
|---|---|
%u9090%u9090 | NOP sled (Unicode) |
\x90\x90\x90 | NOP sled (hex) |
unescape() | Shellcode decoding |
String.fromCharCode | Character code assembly |
eval() | Dynamic code execution |
new ActiveXObject | COM object instantiation |
spray variable name | Heap spray technique |
VirusTotal Check via peepdf
PPDF> vtcheck
MD5: abc123...
Detections: 45/72#!/usr/bin/env python3
"""Malicious PDF Analysis Agent - static analysis using peepdf, pdfid, and pdf-parser for threat detection."""
import json
import argparse
import logging
import subprocess
import hashlib
import os
import re
from datetime import datetime
logging.basicConfig(level=logging.INFO, format="%(asctime)s [%(levelname)s] %(message)s")
logger = logging.getLogger(__name__)
SUSPICIOUS_KEYWORDS = [
"/JS", "/JavaScript", "/OpenAction", "/AA", "/Launch", "/EmbeddedFile",
"/RichMedia", "/XFA", "/AcroForm", "/JBIG2Decode", "/URI", "/SubmitForm",
"/ImportData", "/Names", "/ObjStm",
]
HIGH_RISK_KEYWORDS = ["/JS", "/JavaScript", "/OpenAction", "/Launch", "/EmbeddedFile", "/XFA"]
def compute_hashes(filepath):
"""Compute MD5 and SHA-256 hashes of the PDF file."""
md5 = hashlib.md5()
sha256 = hashlib.sha256()
with open(filepath, "rb") as f:
for chunk in iter(lambda: f.read(65536), b""):
md5.update(chunk)
sha256.update(chunk)
return {"md5": md5.hexdigest(), "sha256": sha256.hexdigest()}
def run_pdfid(filepath):
"""Run pdfid.py to triage PDF for suspicious keywords."""
cmd = ["python3", "-m", "pdfid", filepath]
alt_cmd = ["pdfid.py", filepath]
result = subprocess.run(cmd, capture_output=True, text=True, timeout=120)
if result.returncode != 0:
result = subprocess.run(alt_cmd, capture_output=True, text=True, timeout=120)
keywords = {}
for line in result.stdout.strip().split("\n"):
line = line.strip()
for kw in SUSPICIOUS_KEYWORDS:
if kw.lower() in line.lower():
parts = line.rsplit(None, 1)
if len(parts) == 2:
try:
count = int(parts[1])
keywords[kw] = count
except ValueError:
pass
return keywords
def run_peepdf_analysis(filepath):
"""Run peepdf for detailed PDF object analysis."""
cmd = ["peepdf", "-f", "-l", filepath]
alt_cmd = ["python3", "-m", "peepdf", "-f", "-l", filepath]
result = subprocess.run(cmd, capture_output=True, text=True, timeout=120)
if result.returncode != 0:
result = subprocess.run(alt_cmd, capture_output=True, text=True, timeout=120)
analysis = {
"versions": 0,
"objects": 0,
"streams": 0,
"encoded_streams": 0,
"suspicious_objects": [],
"js_objects": [],
"vulns": [],
"urls": [],
"raw_output": result.stdout[:2000],
}
for line in result.stdout.split("\n"):
line = line.strip()
if "Version" in line and "Objects" in line:
nums = re.findall(r"\d+", line)
if nums:
analysis["objects"] = int(nums[-1]) if nums else 0
if "Suspicious" in line or "suspicious" in line:
analysis["suspicious_objects"].append(line)
if "/JS" in line or "/JavaScript" in line:
obj_ids = re.findall(r"(\d+)", line)
analysis["js_objects"].extend(obj_ids)
if "CVE" in line.upper():
cves = re.findall(r"CVE-\d{4}-\d{4,}", line, re.IGNORECASE)
analysis["vulns"].extend(cves)
urls = re.findall(r"https?://[^\s\"'<>]+", line)
analysis["urls"].extend(urls)
return analysis
def run_pdf_parser(filepath, object_id=None):
"""Run pdf-parser.py to extract specific objects."""
if object_id:
cmd = ["pdf-parser.py", "-o", str(object_id), "-f", "-d", filepath]
else:
cmd = ["pdf-parser.py", "--stats", filepath]
result = subprocess.run(cmd, capture_output=True, text=True, timeout=120)
return result.stdout[:3000]
def extract_javascript(filepath, peepdf_analysis):
"""Extract JavaScript content from identified objects."""
js_content = []
for obj_id in peepdf_analysis.get("js_objects", []):
cmd = ["pdf-parser.py", "-o", str(obj_id), "-f", "-w", filepath]
result = subprocess.run(cmd, capture_output=True, text=True, timeout=120)
if result.stdout:
js_content.append({
"object_id": obj_id,
"content_preview": result.stdout[:1000],
"length": len(result.stdout),
})
return js_content
def detect_shellcode_patterns(content):
"""Detect common shellcode patterns in extracted content."""
patterns = {
"heap_spray": r"(%u[0-9a-fA-F]{4}){4,}",
"nop_sled": r"(\\x90){8,}|(%u9090){4,}",
"unescape_chain": r"unescape\s*\(",
"shellcode_var": r"shellcode|payload|sc\s*=\s*[\"']",
"fromcharcode": r"String\.fromCharCode",
"eval_call": r"eval\s*\(",
"activex": r"new\s+ActiveXObject",
}
detected = {}
for name, pattern in patterns.items():
matches = re.findall(pattern, content, re.IGNORECASE)
if matches:
detected[name] = len(matches)
return detected
def calculate_risk_score(pdfid_results, peepdf_analysis, shellcode_patterns):
"""Calculate overall risk score for the PDF."""
score = 0
for kw, count in pdfid_results.items():
if count > 0:
if kw in HIGH_RISK_KEYWORDS:
score += count * 20
else:
score += count * 5
score += len(peepdf_analysis.get("vulns", [])) * 30
score += len(peepdf_analysis.get("js_objects", [])) * 15
score += sum(shellcode_patterns.values()) * 10
risk_level = "critical" if score >= 80 else "high" if score >= 50 else "medium" if score >= 20 else "low"
return {"score": min(score, 100), "risk_level": risk_level}
def generate_report(filepath, hashes, pdfid_results, peepdf_analysis, js_content, shellcode, risk):
"""Generate comprehensive PDF malware analysis report."""
report = {
"timestamp": datetime.utcnow().isoformat(),
"file": os.path.basename(filepath),
"file_size": os.path.getsize(filepath),
"hashes": hashes,
"risk_assessment": risk,
"pdfid_keywords": pdfid_results,
"suspicious_keyword_count": sum(1 for v in pdfid_results.values() if v > 0),
"peepdf_analysis": {
"objects": peepdf_analysis.get("objects", 0),
"js_objects": peepdf_analysis.get("js_objects", []),
"cve_references": peepdf_analysis.get("vulns", []),
"extracted_urls": list(set(peepdf_analysis.get("urls", []))),
},
"javascript_content": js_content[:5],
"shellcode_indicators": shellcode,
"iocs": {
"sha256": hashes["sha256"],
"urls": list(set(peepdf_analysis.get("urls", []))),
"cves": peepdf_analysis.get("vulns", []),
},
}
return report
def main():
parser = argparse.ArgumentParser(description="Malicious PDF Analysis Agent")
parser.add_argument("file", help="Path to PDF file to analyze")
parser.add_argument("--extract-js", action="store_true", help="Extract JavaScript objects")
parser.add_argument("--output", default="pdf_analysis_report.json")
args = parser.parse_args()
if not os.path.exists(args.file):
logger.error("File not found: %s", args.file)
return
logger.info("Analyzing: %s (%d bytes)", args.file, os.path.getsize(args.file))
hashes = compute_hashes(args.file)
logger.info("SHA-256: %s", hashes["sha256"])
pdfid_results = run_pdfid(args.file)
peepdf_analysis = run_peepdf_analysis(args.file)
js_content = []
shellcode = {}
if args.extract_js or peepdf_analysis.get("js_objects"):
js_content = extract_javascript(args.file, peepdf_analysis)
all_js = " ".join(j["content_preview"] for j in js_content)
shellcode = detect_shellcode_patterns(all_js)
risk = calculate_risk_score(pdfid_results, peepdf_analysis, shellcode)
report = generate_report(args.file, hashes, pdfid_results, peepdf_analysis, js_content, shellcode, risk)
with open(args.output, "w") as f:
json.dump(report, f, indent=2, default=str)
logger.info("Risk: %s (score %d), %d suspicious keywords, %d JS objects, %d CVEs",
risk["risk_level"], risk["score"], report["suspicious_keyword_count"],
len(peepdf_analysis.get("js_objects", [])), len(peepdf_analysis.get("vulns", [])))
print(json.dumps(report, indent=2, default=str))
if __name__ == "__main__":
main()
Related skills
How it compares
Use for PDF-centric peepdf triage, not as a substitute for full browser E2E automation skills like Playwright CLI.
FAQ
Who is analyzing-malicious-pdf-with-peepdf for?
Developers, SaaS authors validating uploads, and learners doing hands-on malware document analysis who want agent-guided peepdf workflows.
When should I use analyzing-malicious-pdf-with-peepdf?
Use it in Ship security when triaging suspicious PDFs before launch, after a phishing report, or while building parsers that must reject weaponized documents.
Is analyzing-malicious-pdf-with-peepdf safe to install?
Treat samples as hazardous; review the Security Audits panel on this Prism page and only analyze untrusted files in isolated lab environments you control.