youtube-search
Fail
Audited by Gen Agent Trust Hub on May 27, 2026
Risk Level: HIGHCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
yt-search.shis vulnerable to command injection via user-supplied parameters. The--countand--monthsflags are used in bash arithmetic expansion(( ))without sanitization. For example, providing a count value like1; idwould cause the shell to execute theidcommand during variable calculation. - [REMOTE_CODE_EXECUTION]: The script processes external data fetched from YouTube (view counts, subscriber counts) in shell contexts that perform evaluation. Specifically, the
format_numberfunction uses arithmetic expansion(( ))and the engagement ratio calculation usesechowith expanded variables inside a subshell. If an attacker-controlled YouTube video or channel metadata contains shell payloads in numeric fields, these payloads will be executed on the host system. - [PROMPT_INJECTION]: The skill ingests and displays untrusted content (video titles and channel names) from an external source (YouTube), which serves as an indirect prompt injection surface. Maliciously crafted metadata could be used to influence the agent's behavior.
- Ingestion points: YouTube metadata fetched via
yt-dlpinscripts/yt-search.sh. - Boundary markers: None. External content is printed directly into the agent's context.
- Capability inventory: The script performs subprocess calls to
yt-dlp,jq,bc, anddate. - Sanitization: None. Extracted values are used directly in shell logic without validation or escaping.
Recommendations
- AI detected serious security threats
Audit Metadata