md-to-pdf

Pass

Audited by Gen Agent Trust Hub on Nov 30, 2026

Risk Level: SAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill executes shell scripts and Python code to manage its configuration, check dependencies, and perform the document conversion. Commands are constructed from fixed templates and user-provided file paths. For example, it runs python3 "${CLAUDE_SKILL_DIR}/scripts/md_to_pdf.py" to handle the core conversion task.
  • [EXTERNAL_DOWNLOADS]: The skill offers to install required rendering engines and their system dependencies from standard repositories like PyPI and Homebrew. It uses pinned versions (e.g., reportlab==5.0.1, weasyprint==70.0, markdown==3.11) to ensure environment consistency and prevent dependency confusion attacks.
  • [INDIRECT_PROMPT_INJECTION]: The skill processes user-provided Markdown content and supports an LLM-assisted transformation mode. It mitigates risks by using a unique temporary file created via mktemp, secure here-doc delimiters to prevent shell expansion, and automatic cleanup procedures. The rendering engines do not execute embedded scripts or fetch remote data from the processed documents.
  • [DYNAMIC_EXECUTION]: Employs dynamic module loading (import_module) to verify the availability of the ReportLab rendering engine. The import uses a hardcoded string ("reportlab.platypus") and is used strictly for feature detection and dependency validation.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 30, 2026, 02:42 PM