Back to skill

Security audit

youtube-download-review

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent YouTube download helper, but its command templates can put untrusted URLs and video titles directly into shell commands and local paths.

Install only if you expect this skill to download YouTube media into the current workspace. Use it with trusted links, review output paths before running commands, and prefer a safer implementation that passes URLs and filenames as process arguments, sanitizes title-derived paths, and asks explicitly before burning translated subtitles.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:119
Finding

Shell Command Injection Through Unsanitized Video Titles and URLs

Content
View full analysis
/<视频标题>.source.mp4" \ -vf "subtitles='<视频标题>/<视频标题>.srt'" \ -c:v libx264 -crf 20 -preset medium \ -c:a copy \ "<视频标题>/<视频标题>.mp4" ``` Related URL interpolation: ```bash yt-dlp --dump-single-json "" ``` Related title-derived output paths: ```bash yt-dlp \ -f "bestvideo[height<=1080][ext=mp4]+bestaudio[ext=m4a]/best[height<=1080][ext=mp4]/best[height<=1080]" \ --merge-output-format mp4 \ -o "%(title)s/%(title)s.source.%(ext)s" \ "" ``` ```bash yt-dlp \ --skip-download \ --write-thumbnail \ --convert-thumbnails jpg \ -o "%(title)s/%(title)s.%(ext)s" \ "" ``` ```bash yt-dlp \ --skip-download \ --write-sub \ --write-auto-sub \ --sub-langs "zh-Hans,zh-CN,zh,zh-TW,*" \ --sub-format "srt/best" \ -o "%(title)s/%(title)s.%(ext)s" \ "" ``` ### Technical Analysis The skill directs the agent to insert a user-provided YouTube URL and a remotely supplied video title directly into shell command templates. The video title is subsequently used in FFmpeg input paths, output paths, and a `subtitles` filter expression. If the agent constructs a command as text and replaces the placeholders before passing it to a shell, shell metacharacters embedded in a URL or video title may become executable syntax. Double quotes prevent ordinary word splitting but do not neutralize shell constructs already present in the generated command, including command substitution expressions such as `$(...)` and backticks. The FFmpeg filter argument additionally has its own escaping rules, creating further opportunities for filter-expression injection or command failur ...[truncated 1950 chars]
Remediation
View remediation
Vulnerability Patterns
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (3)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The activation condition is overly broad: it says the skill should be prioritized whenever a user provides a YouTube link and mentions downloading, subtitles, recommendation reasons, or a content summary. This can cause the agent to invoke downloading and file-writing behavior for requests that may only ask for analysis or discussion, increasing the chance of unintended network access, media acquisition, and local filesystem changes.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill sets Simplified Chinese subtitle handling as the default target, which imposes a language transformation without explicit user opt-in. This can violate user expectations, locale preferences, or organizational language policies, and may result in inaccurate or undesired subtitle output being embedded into the final media.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The subtitle workflow mandates prioritizing and converting subtitles to Simplified Chinese, including translating or transforming other subtitle sources, without preserving user choice. In context, this is more dangerous because the workflow then hard-burns those subtitles into the final MP4, making the language alteration irreversible in the delivered output.

Content

No source excerpt is available for this finding.