github.com / jonaslejon
jonaslejon/ malicious-pdf
Python·13 files·commit 3409ac7·scanned 7d ago·cached ✓
25/100
LOW RISK
Minor findings consistent with the project type. Nothing reachable from install hooks.
score capped at 25 — 4,533 stars — findings likely legitimate code patterns
scored by engine v10: rules have changed since, rescan for the current result
verdict accurate?
Research / educational context
threat-state: lowlive
FINDINGS ░▒▓
criticaleval() usage detectedeval() executes arbitrary code and is commonly used in malware to run obfuscated payloads fetched from remote servers.malicious-pdf.py
codes = ','.join(str(b) for b in js_bytes)
return f'eval(String.fromCharCode({codes}))'.encode()
+8criticalFunction() constructor detectednew Function() is equivalent to eval() and can execute arbitrary code strings.malicious-pdf.py
# Affects PDF.js v0.8.1181 through v4.1.392 (Firefox < 126, web/Electron apps using PDF.js)
# The FontMatrix array in Type1 font dicts is inserted unsanitized into new Function() calls
# A string valu...+5criticalPython dynamic code executioneval(), exec() or compile() on untrusted input can execute arbitrary code. Common in Python malware for running obfuscated payloads.malicious-pdf.py
codes = ','.join(str(b) for b in js_bytes)
return f'eval(String.fromCharCode({codes}))'.encode()
+7warningHigh-entropy string literalsFound 450 long strings with high Shannon entropy. This is common in obfuscated payloads that hide URLs, keys, or bytecode.malicious-pdf.py+3
warningLarge base64-encoded blobA 4376-character base64 blob was found. May hide a remote payload or encoded executable code.malicious-pdf.py
QlpoOTFBWSZTWXowWPwAAXB/////////////////////////////////////...+3
warningFlattened or dead control flowDetected switch(true), dead if branches, or deeply nested ternaries — patterns used by obfuscators to hide execution order.malicious-pdf.py+3
Scores reflect the files and rules covered by this scan. How to read this report
1 files scanned @ 3409ac7 | 11/17/2026 | heuristic scan — always review manually
risk by category
code execution22
network & exfiltration0
file system access0
obfuscation9
supply chain0
owasp / injection0
telemetry
files 1/13rules hit 7engine v10commit 3409ac7
github
jonaslejon/malicious-pdf
💀 Generate malicious PDF test files for testing phone-home callbacks, SSRF, XSS, NTLM credential theft, and data exfiltration in PDF viewers, converters, and web applications. Can be used with Burp Collaborator or Interact.sh
4533
600
1926d
13 files
1 scanned(8%)
3409ac7
network indicators░▒▓
Hosts this code names or would connect to. 16 found, decoded and call-site destinations first. Informational, not scored.
- http://www.xfa.org/schema/xfa-template/3.0/urlmalicious-pdf.py:3216 +1 more
- http://soap.action/pingurlmalicious-pdf.py:4152
- https://github.com/modzero/…/urlcomment onlymalicious-pdf.py:11
- https://github.com/deepzec/Bad-Pdfurlcomment onlymalicious-pdf.py:11
- https://github.com/deepzec/Bad-Pdf/blob/master/badpdf.pyurlcomment onlymalicious-pdf.py:340
- https://insert-script.blogspot.com/2019/01/adobe-reader-pdf-callback-via-xslt.htmlurlcomment onlymalicious-pdf.py:481
- https://github.com/RUB-NDS/PDF101urlcomment onlymalicious-pdf.py:513 +10 more
- https://twitter.com/l33d0hyun/status/1448342241647366152urlcomment onlymalicious-pdf.py:905
- https://github.com/fire1ce/eicar-standard-antivirus-test-filesurlcomment onlymalicious-pdf.py:917
- https://insert-script.blogspot.com/2014/12/multiple-pdf-vulnerabilites-text-and.htmlurlcomment onlymalicious-pdf.py:927 +1 more
- https://insert-script.blogspot.com/2018/05/adobe-reader-pdf-client-side-request.htmlurlcomment onlymalicious-pdf.py:972
- https://insert-script.blogspot.com/2020/11/imagemagick-shell-injection-via-pdf.htmlurlcomment onlymalicious-pdf.py:1020
- https://insert-script.blogspot.com/2015/05/pdf-mess-with-web.htmlurlcomment onlymalicious-pdf.py:1038 +1 more
- https://portswigger.net/research/portable-data-exfiltrationurlcomment onlymalicious-pdf.py:1186 +9 more
- https://codeanlabs.com/2024/05/cve-2024-4367-arbitrary-js-execution-in-pdf-js/urlcomment onlymalicious-pdf.py:1886
- https://github.com/codean-labs/pocs/tree/main/CVE-2024-4367%20(PDF.jsurlcomment onlymalicious-pdf.py:1887
architecture░▒▓
entry (0) flagged (1) pkg (8)
9 nodes · 8 edgesscroll to zoom · click node to jump to finding