yichen-x-slicer
Pass
Audited by Gen Agent Trust Hub on Sep 17, 2026
Risk Level: SAFE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted content from X/Twitter posts via the FxTwitter API. It addresses this risk by implementing an
escapeHtmlfunction inscripts/yichen_x_slicer.mjsto sanitize text before it is rendered in a browser environment. It also validates that post IDs are strictly numeric. - Ingestion points:
readSourceinscripts/yichen_x_slicer.mjsfetches JSON data fromapi.fxtwitter.com. - Boundary markers: No specific delimiters are used for the processed text, but the data is handled as structured JSON and escaped before insertion into the DOM.
- Capability inventory: The skill can execute local binaries (
ffmpeg,ffprobe,zip,unzip) and launchplaywrightfor rendering. - Sanitization:
escapeHtmlis applied consistently to all tweet text and metadata during the generation of the HTML frames. - [EXTERNAL_DOWNLOADS]: The skill downloads media assets required for processing. It restricts these downloads to a whitelist of trusted domains (
pbs.twimg.com,video.twimg.com, andapi.fxtwitter.com) and incorporates signature verification to ensure downloaded files are valid image or MP4 formats before they are accessed by system tools. - [COMMAND_EXECUTION]: Local shell utilities such as
ffmpegandzipare used viaspawnSync. The arguments are strictly constructed from validated inputs, and the skill includes asafeOutputPathutility to prevent directory traversal by ensuring all file writes are contained within the designated output directory.
Audit Metadata