youtube-downloader
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/main.pyexecutes theyt-dlpcommand-line utility using thesubprocessmodule. - Evidence: Multiple calls to
subprocess.runappear throughoutscripts/main.py(e.g., inget_video_info,download,audio,transcript, andplaylistfunctions) to invoke the externalyt-dlpbinary. - Context: The implementation uses lists for command arguments and avoids
shell=True, which is a security best practice to prevent command injection. Filenames are also passed through asanitize_filenamefunction before use. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from an external source (YouTube) that is subsequently presented to the agent.
- Ingestion points:
scripts/main.pyfetches video titles, descriptions, tags, and transcripts using theyt-dlptool. - Boundary markers: No specific boundary markers or instructions are provided to the agent to treat this external content as untrusted data.
- Capability inventory: The skill possesses the ability to write files to the local system and execute the
yt-dlpbinary. - Sanitization: While filenames are sanitized to prevent path traversal or shell issues, the textual content of metadata and transcripts is not filtered for potential prompt injection patterns before being returned to the agent context.
Audit Metadata