youtube-watcher-hardened
Fail
Audited by Gen Agent Trust Hub on Apr 21, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/get_transcript.pycontains a critical argument injection vulnerability. The user-providedurlargument is passed directly as an element in a command list forsubprocess.run. Because the script does not use the--separator to signal the end of command-line options, a malicious string starting with a dash (such as--exec "id") will be processed as a flag by theyt-dlpbinary, leading to arbitrary command execution on the host system. - [REMOTE_CODE_EXECUTION]: The argument injection in the
yt-dlpcall allows for remote code execution by leveraging flags like--execor--post-processor-args, which can run arbitrary shell commands with the agent's privileges. - [EXTERNAL_DOWNLOADS]: Fetches transcript data from YouTube's servers using the well-known yt-dlp utility.
- [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it processes untrusted data from external YouTube transcripts. This surface can be used by an attacker to embed instructions in video captions to influence the agent's behavior during summarization or analysis.
- Ingestion points: The
scripts/get_transcript.pyscript fetches text from external sources via yt-dlp. - Boundary markers: No explicit delimiters or boundary markers are present in the script's output to separate untrusted transcript text from system instructions.
- Capability inventory: The agent uses the fetched transcript content to perform summarization and content extraction tasks.
- Sanitization: The
clean_vttfunction removes technical VTT timestamps and metadata but does not perform any semantic filtering or validation of the text content.
Recommendations
- AI detected serious security threats
Audit Metadata