Back to skill

Security audit

Yt Dlp Downloader Skill

Security checks for vulnerabilities and agentic risk

Overview

This downloader has clear, user-directed boundaries, with a minor mismatch between its advertised subtitle options and actual behavior.

Choose the destination and request playlists explicitly. Downloads contact the requested service and its media hosts. Subtitle mode fetches all available languages. Authorize dependency installation separately, and consider the session-data implications before approving any authenticated download. Artifact inspection does not substantiate the supplied malicious pre-scan signal.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (7)

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · README.md (reported line 93)May include surrounding context.

md
ecution hooks.
- Browser cookies can contain sensitive account sessions. A separate authenticated download requires an explanation and explicit authorization for the target and browser/profile. Matching cookies are sent to the requested service; cookie stores must never be printed, exported, or uploaded. The helper does not support authentication options.
- Downloads contact the requested site and its media hosts and write to the announced output directory. Avoid sharing URLs containing private access tokens; the helper does not echo the full command, but yt-dlp may include URLs in diagnostics.
- The manifest declares `shell`, `filesystem`, and `network` capabilities. These are broad capability categories, not path or host restrictions; actual restrictions depend on the execution sandbox. Keep access scoped to the download and do not grant blanket or elevated permissions.
- No automatic dependency installation, scheduled jobs, startup changes, or self-modification is part of the downlo

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · SKILL.md (reported line 41)May include surrounding context.

md
plain that browser cookies contain sensitive session data and that using them sends matching cookies to the requested service. Obtain explicit authorization for the browser/profile and target before a separate authenticated invocation. Never print, export, or upload cookie stores. The helper intentionally has no authentication option.
- Use the existing sandbox with access to the output directory and required network endpoints. Do not request blanket permissions, elevated execution, or change permissions to bypass a failure.
- Do not install dependencies, change startup files, create scheduled jobs, or modify this skill during a download. If dependencies are missing, explain the required installation and its local changes; install only when authorized.

## Prerequisites
`yt-dlp` must be installed. MP3 extraction requires `ffmpeg`; merging separate video/audio streams also requires it. Installer metadata describes available installation methods, not permission to run them automatically.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · tests/test_download.py (reported line 60)May include surrounding context.

python
def test_invalid_input_has_no_side_effects(self):
        cases = [[], ['--path'], ['--quality'], ['--format'], ['--path', ''],
                 ['--unknown'], ['file:///etc/passwd'], ['https://'],
                 ['https://example.com/a\nb'], ['--exec=command'],
                 ['https://a', 'https://b'], ['--quality', '0', 'https://a'],
                 ['--quality', '720;id', 'https://a'],

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Generic keywords can activate the downloader without a download request.

Medium
Category
Trigger Abuse
Confidence
98% confidence
Finding

The trigger list includes standalone terms such as "download", "1080p", "best quality", "subtitles", and "X", which also occur in unrelated requests or discussions. No explicit activation constraint requires a supported media URL and download intent, and no exclusion conditions prevent these incidental matches.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · tests/test_download.py (reported line 31)May include surrounding context.

python
'ARG_RECORD': str(self.record), 'LC_ALL': 'C'}

    def run_script(self, *args):
        return subprocess.run(['/bin/bash', str(SCRIPT), *args], cwd=self.root,
                              env=self.env, capture_output=True, text=True, timeout=5)

    def args(self):

The manifest promises selectable subtitle languages, but the helper always requests all available subtitle languages.

Low
Category
Excessive Agency
Confidence
99% confidence
Finding

The manifest explicitly advertises fetching subtitles with specified languages. However, the helper exposes only a subtitle toggle and hardcodes --sub-langs all, so users cannot restrict subtitle downloads to their intended languages.

Content

No source excerpt is available for this finding.