docscanner/internal/analyzer/pdf.go
- Suspicious keywords inside the raw PDF byte stream.
/JavaScript/JS/Launch/OpenAction/AA/EmbeddedFile
The analyzer:
- Checks file extension is
.pdfviaSupports. - Scans the raw bytes for each of the indicators above.
- Computes the file's SHA256 hash.
- Sets
RiskScoreto15 * len(indicators).
This is intentionally heuristic, not signature-based: static, cheap, and fast.