xhs-note-creator
Pass
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: SAFEDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill processes user-supplied data to generate Markdown and HTML, which is then rendered into images using a headless Chromium browser via Playwright. This workflow presents an indirect prompt injection surface where malicious directives or scripts embedded in source materials could be executed within the rendering environment.
- Ingestion points: User-provided text and materials used during the note creation workflow in
SKILL.md. - Boundary markers: Absent. The instructions do not specify delimiters or warnings to ignore instructions embedded in processed data.
- Capability inventory: The skill utilizes
playwrightto execute a browser subprocess, which can perform network operations and access the local filesystem. - Sanitization: Absent. The Markdown-to-HTML conversion scripts (
render_xhs.py,render_xhs.js, etc.) do not sanitize the generated HTML before rendering it in the browser. - [DATA_EXFILTRATION]: The publishing script
publish_xhs.pyreads sensitive Xiaohongshu session cookies (XHS_COOKIE) from a local.envfile. The script includes anApiPublishermode that transmits these credentials to a remote endpoint specified by theXHS_API_URLenvironment variable. While this is a functional feature for external API integration, it establishes a mechanism for transmitting authentication secrets to arbitrary remote servers. - [DYNAMIC_EXECUTION]: The rendering scripts dynamically generate HTML content from Markdown templates and user input, subsequently executing this content within a headless browser context to produce images. This represents a multi-stage dynamic execution pipeline where the final output is determined by runtime data interpolation.
Audit Metadata