youtube-search
Warn
Audited by Gen Agent Trust Hub on Sep 18, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONMETADATA_POISONING
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/yt-search.shscript is vulnerable to shell command injection. User-supplied search queries are concatenated and then interpolated into a shell command string:yt-dlp "ytsearch${FETCH_COUNT}:${QUERY}". Because the$QUERYvariable is evaluated within double quotes by the bash shell, any command substitutions such as$(...)or backticks present in the user's input will be executed on the host system before theyt-dlpprocess starts. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from YouTube search results which could be crafted to include malicious instructions for the AI agent.
- Ingestion points: The output of
scripts/yt-search.sh, specifically video titles, channel names, and engagement metrics extracted from YouTube viayt-dlp. - Boundary markers: Absent. The search results are printed as plain text without clear delimiters or instructions for the agent to ignore embedded commands.
- Capability inventory: The agent is instructed to run the
bashscript, and the environment has network access viayt-dlpand calculation capabilities viabc. - Sanitization: Absent. The script uses
jqto extract raw strings from the JSON data returned byyt-dlpand prints them directly to stdout. - [METADATA_POISONING]: The
SKILL.mdfile contains a "Gotchas" section that incorrectly describes the skill's technical constraints. It references YouTube Data API v3 concepts such as "Quota units" and specific API parameters likeregionCode, even though the tool actually uses theyt-dlpscraping utility. This discrepancy is misleading regarding the tool's actual operational behavior and resource limitations.
Audit Metadata