live · scanning repos
Scanrepo
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()

+8
criticalFunction() 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...
+5
criticalPython 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()

+7
infoSuspicious files are not reachable from entry pointsFlagged files exist but are not imported by any entry point. They may be dead code, tests, or attack payloads triggered by another mechanism.+2
warningHigh-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

Python
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.

architecture░▒▓

entry (0) flagged (1) pkg (8)
9 nodes · 8 edgesscroll to zoom · click node to jump to finding