skills/garrytan/gstack/make-pdf/Gen Agent Trust Hub

make-pdf

Pass

Audited by Gen Agent Trust Hub on Nov 16, 2026

Risk Level: SAFE
Full Analysis
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted markdown content. It effectively mitigates potential injection and XSS risks through a comprehensive HTML sanitizer in src/render.ts that strips dangerous tags (scripts, iframes), event handlers, and remote CSS fetch vectors.
  • [DATA_EXFILTRATION]: The skill includes robust path traversal protection in src/diagram-prepass.ts. It uses fs.realpathSync to verify that local images being inlined reside within the source markdown's directory, preventing the reading of sensitive system files. Additionally, remote image fetching is blocked by default unless the --allow-network flag is explicitly provided.
  • [COMMAND_EXECUTION]: The skill executes a locally-built binary (make-pdf/dist/pdf) and uses system utilities (like open or xdg-open) to show previews. These operations are core to its functionality. Filenames used in these commands are sanitized via deriveSlug to prevent command injection.
  • [DYNAMIC_EXECUTION]: To render diagrams (Mermaid, Excalidraw), the skill evaluates code within a headless browser context. This is implemented securely using a local HTML bundle and controlled execution of specific rendering functions rather than arbitrary user-supplied scripts.
Audit Metadata
Risk Level
SAFE
Analyzed
Nov 16, 2026, 08:17 PM