lov-rich-export
Pass
Audited by Gen Agent Trust Hub on Oct 18, 2026
Risk Level: SAFECOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/export_rich.pyexecutes external system commands using thesubprocess.runfunction. - It calls the
pandocutility to perform document format conversions (e.g., HTML to Markdown, Markdown to HTML/DOCX). - Commands are constructed as lists with fixed arguments, which prevents shell-level command injection.
- [DYNAMIC_EXECUTION]: The skill utilizes the
playwrightlibrary to launch a Chromium browser for rendering HTML content into PDF files. - This involves executing a high-capability browser environment to process content, which is a standard part of its PDF generation functionality.
- [INDIRECT_PROMPT_INJECTION]: The skill acts as a content processing pipeline for external documents, creating an attack surface for indirect prompt injection via untrusted inputs.
- Ingestion points: Processes
.md,.html, and.jsonfiles provided via the--inputargument inscripts/export_rich.py. - Boundary markers:
SKILL.mdcontains explicit instructions ('先做内容边界') directing the agent to strictly separate internal context (like names, project backgrounds, or system prompts) from the exported content. - Capability inventory: Includes file system read/write access, ZIP archive creation, system command execution for document conversion, and browser-based rendering.
- Sanitization: The implementation uses
html.escapefor media metadata and employs regex-based projections to convert interactive media (video/audio/iframe) into static descriptions for non-HTML formats.
Audit Metadata