baoyu-youtube-transcript

Warn

Audited by Gen Agent Trust Hub on Mar 28, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
  • [PROMPT_INJECTION]: The skill processes YouTube video metadata and transcripts which are external, user-controlled data sources. This content is passed to an AI model for speaker identification and re-formatting (described in prompts/speaker-transcript.md). A malicious video description or transcript could contain instructions designed to influence the AI's behavior during this processing phase. * Ingestion points: Video descriptions and transcripts are fetched in scripts/youtube.ts and used in scripts/main.ts. * Boundary markers: The prompt template in prompts/speaker-transcript.md does not employ strict delimiters or instructions to ignore embedded commands. * Capability inventory: The skill has file writing capabilities (writeFileSync in scripts/storage.ts) and can execute shell commands (spawnSync in scripts/youtube.ts). * Sanitization: Basic HTML unescaping and tag stripping are performed in scripts/shared.ts, which do not mitigate prompt-level injection attacks.
  • [REMOTE_CODE_EXECUTION]: In scripts/youtube.ts, the yt-dlp utility is executed with the --remote-components ejs:github and --js-runtimes bun flags. This configuration enables the utility to fetch and execute remote code/scripts from a GitHub repository at runtime. While yt-dlp is a common tool, this specific configuration introduces a dependency on remote, dynamically loaded execution logic.
  • [COMMAND_EXECUTION]: The skill uses child_process.spawnSync in scripts/youtube.ts to execute yt-dlp, uvx, or python3. While arguments are passed as an array to minimize shell injection risk, it still involves executing external binaries based on project logic.
  • [EXTERNAL_DOWNLOADS]: The skill performs network requests to YouTube's InnerTube API and image servers (ytimg.com) to retrieve transcripts, metadata, and thumbnails as part of its core functionality.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Mar 28, 2026, 12:56 AM