ingest-youtube
Pass
Audited by Gen Agent Trust Hub on Oct 29, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script uses
subprocess.runto executeyt-dlpiningest.py. This is implemented safely using argument lists rather than shell strings, preventing shell injection. The path to the executable is resolved viashutil.which. - [COMMAND_EXECUTION]: Input URLs are rigorously validated in
ingest.pyusingvalidate_youtube_url. The function enforces strict checks on schemes (http/https), hostnames, and uses a restrictive 11-character regex for video IDs to ensure no malicious shell meta-characters can be passed to the downloader. - [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted transcript data from YouTube. It mitigates potential injection risks by using the
markdown_textfunction iningest.py, which applies HTML escaping and markdown character escaping to all external content before writing it to the vault. The ingestion process is limited to data retrieval, and the skill does not grant the ingested content authority over agent instructions. - [SAFE]: The skill follows security best practices for local file operations. It sets
os.umask(0o077)to ensure created files are restricted to the current user and uses theprivate_targetfunction to explicitly verify that output paths do not involve symlinks, which prevents directory traversal and file hijacking attacks. - [SAFE]: The external dependency
yt-dlpis a well-known and standard tool for the skill's stated purpose of transcript extraction.
Audit Metadata