A command-line generator that builds many PDF and SVG test files for probing how viewers, converters, and upload handlers behave under security testing.
Overview
Malicious PDF Generator produces dozens of crafted PDF files plus one SVG polyglot sample. Each file exercises a specific technique such as callbacks, SSRF, XSS, XXE, NTLM credential theft, or data exfiltration when opened or processed elsewhere.
The tool targets penetration testing, bug bounty work, and red teaming. It can pair with Burp Collaborator or Interact.sh for blind callback detection. Output lands in an output directory as numbered PDF files.
Optional obfuscation levels can wrap JavaScript payloads so literal API strings do not appear in the file, which helps exercise static analysis that only searches for obvious patterns. A documented matrix maps each sample to attack vectors, methods, and references where the source lists them.
Typical uses include testing web upload endpoints, security products, desktop PDF readers, conversion pipelines, and server-side libraries that parse PDFs. The author describes it as intended for educational and professional security work only.
Key features
- Many predefined PDF test cases
- Optional JavaScript obfuscation levels
- Burp Collaborator and Interact.sh compatible
- SSRF and XXE callback scenarios
- NTLM theft via UNC paths
- XFA and JavaScript injection samples
- Documented test matrix per file
- SVG plus PDF output formats
Use cases
- Penetration testing PDF upload flows
- Bug bounty file-processing endpoints
- Testing PDF readers and converters
- Red team callback validation
- Security product evaluation