Advanced PDF Security Scanner — multi-tool forensic pipeline
1.3K
A containerized, multi-tool forensic pipeline for automated PDF security analysis. Integrates 15+ forensic tools into a single Docker-based workflow with structured reporting, threat scoring, and SIEM integration.
pdfid, pdf-parser, peepdf, YARA, ClamAV, exiftool, strings, pdfminer, and tesseract-ocr.pdfcrack (RC4/AES-128) and john the ripper (AES-256) for brute-forcing and dictionary attacks on protected PDFs.zbar-tools.Run a basic scan on a file in your current directory:
docker run --rm -v $(pwd):/data kyberi/pdfanalyzer document.pdf
To avoid downloading the ~300MB ClamAV signature database on every run, mount a persistent volume:
docker volume create clamav_db
docker run --rm -v $(pwd):/data -v clamav_db:/var/lib/clamav kyberi/pdfanalyzer document.pdf
Scan all PDFs in a directory sequentially:
docker run --rm -v $(pwd):/data -v clamav_db:/var/lib/clamav kyberi/pdfanalyzer --batch
Options:
<password> Decrypt with known password
-w <wordlist.txt> Wordlist attack on encrypted PDF
-t <seconds> Brute-force timeout (default: 120)
--json Write JSON report → /data/<name>.report.json
--misp Write MISP event → /data/<name>.misp.json
--batch Scan all *.pdf files in /data sequentially
--help, -h Show help
Environment variables (inline):
VT_API_KEY=<key> VirusTotal API key for cloud hash lookup
Example with VirusTotal, JSON output, and custom YARA rules:
docker run --rm \
-e VT_API_KEY="your_api_key" \
-v $(pwd):/data \
-v clamav_db:/var/lib/clamav \
-v $(pwd)/yara_rules:/data/yara_rules \
kyberi/pdfanalyzer document.pdf --json
The scanner automatically attempts to crack passwords. Use -t to change the brute-force timeout or -w to provide a custom wordlist:
docker run --rm -v $(pwd):/data kyberi/pdfanalyzer encrypted.pdf -w wordlist.txt -t 300
For complete documentation including entropy analysis, IoC extraction, YARA rules, MISP export, and risk scoring details, see the GitHub README.
Content type
Image
Digest
sha256:4eb4fee79…
Size
177.8 MB
Last updated
5 months ago
docker pull kyberi/pdfanalyzer