pdf-toolkit
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [SAFE]: The skill implementation follows secure coding practices. Commands are structured as plans for explicit execution, and file paths are resolved using standard path utilities. No persistence, privilege escalation, or data exfiltration mechanisms were detected.
- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process data from external PDF files, which represents a potential attack surface if those files contain adversarial instructions.
- Ingestion points: Files are read and parsed via
extract-text.ts,extract-tables.ts, andocr-pdf.tsusing external libraries. - Boundary markers: The instructions do not define specific delimiters to separate untrusted document content from agent instructions, though the output is structured (JSON/CSV).
- Capability inventory: The scripts allow for local file system operations (read/write) related to PDF and image processing.
- Sanitization:
create-pdf.tscontains an internal character mapping for PDF encoding compatibility (sanitizeForPdf), andextract-tables.tsperforms standard CSV escaping for extracted data. - [EXTERNAL_DOWNLOADS]: The skill references a well-known library that may perform runtime downloads of necessary data files.
- Evidence: The
ocr-pdf.tsscript utilizestesseract.jsto initialize an OCR worker (Tesseract.createWorker(args.lang)), which typically fetches language-specific trained data models from its official CDN when requested.
Audit Metadata