nature-image2ppt
Pass
Audited by Gen Agent Trust Hub on Nov 20, 2026
Risk Level: SAFEDATA_EXFILTRATIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [SAFE]: The skill demonstrates a high level of security maturity through several defensive mechanisms:
- Path Confinement: All file operations are wrapped in a
resolve_insidefunction that uses strict path resolution to prevent directory traversal and unauthorized file access. - Secret Management: Configuration files are created with restricted file permissions (0o600), and sensitive tokens are masked in logs and diagnostic outputs.
- XML Security: The skill uses the
defusedxmllibrary for parsing all OOXML and other XML content, which effectively mitigates XML External Entity (XXE) and billion laughs attacks. - SSRF Protection: The network client implementation includes validation for result URLs, ensuring they use valid protocols and do not target local or private network hostnames/IPs.
- [DATA_EXFILTRATION]: Legitimate network communication is performed with Baidu AI Studio (for OCR) and OpenAI/Codex (for image generation). These operations are necessary for the skill's primary function and are handled with validated endpoints and security-hardened clients.
- [COMMAND_EXECUTION]: The skill executes local binaries including LibreOffice (
soffice) for document format conversion and various LaTeX engines for formula rendering. These executions are scoped to the internal workflow and utilize deterministic arguments. - [EXTERNAL_DOWNLOADS]: Dependencies are restricted to standard, well-known Python packages from PyPI (e.g., Pillow, numpy, requests, openai), which are used for image processing and API communication.
- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted image data and PDF files through OCR, which represents an attack surface for indirect prompt injection. This risk is mitigated through:
- Ingestion points: Untrusted data enters via the
source.pngfile processed inpaddle_text_hints.pyandtext_hints.py. - Boundary markers: The agent is provided with mandatory workflow steps and strict instructions in
prompts/page-worker-base.mdto follow thepage-decision-tree.mdcontract, which prioritizes reconstruction over content interpretation. - Capability inventory: Capabilities are limited to deterministic CLI commands and authorized network requests to well-known APIs.
- Sanitization: The skill enforces path confinement and uses safe parsing libraries to handle the data extracted from untrusted sources.
Audit Metadata