pdf-processor

Warn

Audited by Socket on Aug 21, 2026

1 alert found:

Anomaly
AnomalyLOW
scripts/pdf_ocr_paddle_api.py

No clear malicious payload or backdoor behavior is present. The code is primarily an OCR API client that uploads PDFs with a bearer token, polls and downloads OCR JSONL, parses it into layout/text structures, and optionally downloads remote preprocessed images to correct page orientation/unwarping before producing layered PDFs/dumps. The key risks are security-policy/reliability issues rather than overt malware: possible SSRF/network pivot via URLs embedded in untrusted JSONL (pp_images/img_url -> http_get_bytes) and use of tempfile.mktemp (TOCTOU). Malware confidence is therefore low, but supply-chain/runtime risk remains due to network fetching and data exfiltration to a configurable endpoint.

Confidence: 70%Severity: 55%
Audit Metadata
Analyzed At
Aug 21, 2026, 04:26 PM
Package URL
pkg:socket/skills-sh/cat-xierluo%2Flegal-skills%2Fpdf-processor%2F@212b8fef8affad9e5b71565dd460f6f4c6eee02c82b0cf2fea0f1c80c44c28a0
Security Audit — socket — pdf-processor