Back to skill

Security audit

download-youtube-with-firefox

Security checks for vulnerabilities and agentic risk

Overview

The skill matches its advertised video-download purpose and openly discloses its use of Firefox login cookies.

This skill uses your signed-in Firefox session on the selected paired computer. Consider a dedicated download profile. Prefer a trusted package manager or verify downloaded releases; upstream also documents a [user-local installation](https://github.com/yt-dlp/yt-dlp/wiki/Installation). This review covers the skill instructions, not future dependency releases.

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
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (6)

YARA rule 'info_stealer': Information stealer patterns (credential harvesting, browser data theft) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

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

th-firefox https://www.youtube.com/watch?v=XXXXXX%60

2. 手动命令行直接执行 (Manual CLI Examples)

若要在本地终端手动执行下载,可参考以下标准化命令:

Windows (PowerShell):

powershell
yt-dlp --cookies-from-browser firefox --js-runtimes node -f "bv*+ba/b" --merge-output-format mkv -o "$HOME\Downloads\%(title).200B [%(id)s].%(ext)s" "https://www.youtube.com/watch?v=VIDEO_ID"

Linux / macOS (Bash / Zsh):

bash
yt-dlp --cookies-from-browser firefox --js-runtimes node -f "bv*+ba/b" --merge-output-format mkv -o "$HOME/Downloads/%(title).200B [%(id)s].%(ext)s" "https://www.youtube.com/watch?v=VIDEO_ID"

前置环境要求 (Prerequisites)

为了保证视频能正常以最高清晰度合成落地,宿主机(或执行下载任务的 Node 电脑)上需安装以下 4

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

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

md
- 推荐保持最新版(建议 2024.10 或更新版本):
     - Windows: `winget install yt-dlp` 或 `yt-dlp --update`
     - macOS: `brew install yt-dlp`
     - Linux: `sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && sudo chmod a+rx /usr/local/bin/yt-dlp`
3. **FFmpeg**:
   - 用于将分离的最高画质视频流与最高音质音频流无损合成为单一文件:
     - Windows: `winget install Gyan.FFmpeg`

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
85% confidence
Finding

The installation command downloads a mutable release directly into /usr/local/bin using root privileges without verifying the artifact before making it executable. Although GitHub over HTTPS is a legitimate source and this does not immediately execute the download as root, a compromised release could install a malicious program that subsequently gains access to browser cookies during the skill's normal operation.

Content

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

md
- 推荐保持最新版(建议 2024.10 或更新版本):
     - Windows: `winget install yt-dlp` 或 `yt-dlp --update`
     - macOS: `brew install yt-dlp`
     - Linux: `sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && sudo chmod a+rx /usr/local/bin/yt-dlp`
3. **FFmpeg**:
   - 用于将分离的最高画质视频流与最高音质音频流无损合成为单一文件:
     - Windows: `winget install Gyan.FFmpeg`

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
- 推荐保持最新版(建议 2024.10 或更新版本):
     - Windows: `winget install yt-dlp` 或 `yt-dlp --update`
     - macOS: `brew install yt-dlp`
     - Linux: `sudo wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -O /usr/local/bin/yt-dlp && sudo chmod a+rx /usr/local/bin/yt-dlp`
3. **FFmpeg**:
   - 用于将分离的最高画质视频流与最高音质音频流无损合成为单一文件:
     - Windows: `winget install Gyan.FFmpeg`

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
- 用于将分离的最高画质视频流与最高音质音频流无损合成为单一文件:
     - Windows: `winget install Gyan.FFmpeg`
     - macOS: `brew install ffmpeg`
     - Linux: `sudo apt install ffmpeg`
4. **Node.js 或 Deno (JavaScript 运行时)**:
   - 用于运行 YouTube 最新的客户端 JS challenge 求解器:
     - Windows: `winget install OpenJS.NodeJS`

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
- 用于运行 YouTube 最新的客户端 JS challenge 求解器:
     - Windows: `winget install OpenJS.NodeJS`
     - macOS: `brew install node`
     - Linux: `sudo apt install nodejs`

---