doc-intel-contract-pl
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFECREDENTIALS_UNSAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill contains a hardcoded dummy API key within its test suite. Specifically,
tests/test_mask_for_model.pyusessk-live-9f2b71ce4a0011as a sample value to verify the functionality of the PII masking logic. This is dummy test data and does not represent a real credential leak. - [EXTERNAL_DOWNLOADS]: The
scripts/liteparse_extract.pyutility uses theliteparselibrary, which may download Tesseract language models (e.g.,tessdata_best) from GitHub repositories (specifically from thetesseract-rsor LlamaIndex ecosystem) during the first execution if not provided locally. The skill documents this behavior and provides a--tessdataflag for offline operation. - [COMMAND_EXECUTION]: The skill invokes the standard system utility
pdftotextto extract text from PDF files. This is performed viasubprocess.runinscripts/split_packet.pyandtests/test_encoding_crlf.py. The calls use a list of arguments to target specific local file paths, minimizing command injection risks. - [INDIRECT_PROMPT_INJECTION]: As the skill is designed to ingest and process untrusted PDF and OCR data from various sources (legal documents, scans), it possesses an inherent attack surface for indirect prompt injection.
- Ingestion points: Untrusted data enters the agent context through
scripts/normalize.pyandscripts/routing_gate.pywhen reading PDF or text-based documents. - Boundary markers: The VLM prompt template in
references/prompt_vlm_ocr_pl.mdutilizes explicit delimiters (=== POCZATEK SZABLONU ===and=== KONIEC SZABLONU ===) to scope the task for vision-language models. - Capability inventory: The skill has the capability to write files (via
split_packet.pyusing the--eksportflag) and execute local commands (viapdftotext). - Sanitization: The skill includes proactive sanitization via
scripts/mask_for_model.py, which masks Polish PII (PESEL, NIP, IBAN) and machine secrets (API keys, Bearer tokens) before data is sent to external LLMs. - [SAFE]: The skill implements several high-quality security best practices, including a routing gate (
scripts/routing_gate.py) that explicitly detects and rejects 'Zip Bombs' (via decompression ratio checks) and 'Billion Laughs' XML entity expansion attacks in OOXML files.
Audit Metadata