scanned-book-ocr
Pass
Audited by Gen Agent Trust Hub on Sep 14, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONREMOTE_CODE_EXECUTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The skill downloads several binary and text-based assets during initialization to create a local OCR runtime.
- Evidence: Found in
scripts/bootstrap_runtime.pywithin theASSETSconstant. The sources includefiles.pythonhosted.org(PyPI),github.com/microsoft(Microsoft),github.com/firecrawl, andgithub.com/GreatV. - Security Controls: Every asset is verified using a hardcoded SHA-256 checksum immediately after download. The download mechanism uses
urllib.requestwith specific byte-range fetching for efficiency and integrity. - [COMMAND_EXECUTION]: The skill invokes local command-line utilities for PDF and image processing.
- Evidence:
scripts/ocr_book.pyusessubprocess.runto callpdftoppm(part of the Poppler suite) for rendering PDF pages andsips(a macOS native tool) for image rotation and conversion. - Security Controls: All subprocess calls use list-based arguments instead of shell strings, preventing command injection. The skill also explicitly checks for the presence of these tools before attempting to use them.
- [REMOTE_CODE_EXECUTION]: The skill downloads and executes binary code in the form of shared libraries and a Python wheel.
- Evidence:
scripts/ocr_worker.pydynamically loads the downloaded libraries (libpdfium.dylibandlibonnxruntime.dylib) by setting environment variablesPDFIUM_LIB_PATHandORT_DYLIB_PATH, and adds the downloaded wheel tosys.path. - Context: This dynamic loading is the core mechanism for providing a portable, consistent OCR environment without requiring global system installation. It is protected by the hash-verification step in the bootstrapper and is scoped to a local cache directory.
Audit Metadata