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.tsthat 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 usesfs.realpathSyncto 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-networkflag is explicitly provided. - [COMMAND_EXECUTION]: The skill executes a locally-built binary (
make-pdf/dist/pdf) and uses system utilities (likeopenorxdg-open) to show previews. These operations are core to its functionality. Filenames used in these commands are sanitized viaderiveSlugto 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