youtube-transcript-summarizer
Pass
Audited by Gen Agent Trust Hub on Oct 18, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted transcript data from YouTube videos and interpolates it directly into a prompt for AI summarization.
- Ingestion points: The
get_transcriptmethod inyoutube_transcript_summarizer.pyfetches text from external YouTube APIs based on a provided URL. - Boundary markers: The transcript text is inserted into the prompt template without specific delimiters or instructions to ignore embedded commands, which could allow a malicious transcript to influence the agent's behavior.
- Capability inventory: The script performs file writing operations via
open().write()and executes a specific subprocess viasubprocess.run(). - Sanitization: There is no content-based sanitization or escaping performed on the transcript text before it is sent to the LLM.
- [COMMAND_EXECUTION]: The script uses
subprocess.runto call theyt-dlpcommand-line utility for title extraction. - Evidence: The
fetch_video_titlemethod inyoutube_transcript_summarizer.pyexecutesyt-dlpto retrieve video metadata. Although the video ID input is strictly validated using a regex ([a-zA-Z0-9_-]+) to prevent shell injection, this pattern involves external binary execution.
Audit Metadata