T05 · Unauthorized Access and Privilege Escalation
- Location
troubleshooting.md:360- Finding
System-Wide Firewall Disabled During Network Troubleshooting
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is a coherent media-downloader guide, but it needs Review because it includes under-scoped instructions involving browser cookies, unpinned installs, and disabling the system firewall.
Before installing, review every command the agent proposes. Do not provide a browser cookie database or exported cookies unless you understand they can act like account credentials, avoid the mutable develop-branch install, use an isolated Python environment, confirm output paths before downloads, and do not run the firewall-disable troubleshooting step.
troubleshooting.md:360System-Wide Firewall Disabled During Network Troubleshooting
troubleshooting.md:199Installation of Mutable and Unpinned Third-Party Dependencies
Advertising cookie-based authenticated downloads without any credential-handling guidance is risky because browser cookies can grant access to private accounts and paid or personal content. In an AI-agent workflow, users may be encouraged to expose sensitive session material without understanding retention, logging, scope, or the consequences of cookie theft or misuse.
The explicit instruction to export cookies from Firefox or Chrome describes obtaining authentication material from browser stores. In an agent context, this is credential access behavior because those cookies may grant account access and can be repurposed outside the intended download session.
**步骤**:
1. 使用浏览器插件导出cookies.txt
2. 或从Firefox/Chrome的cookies.sqlite导出
### 使用Cookies下载
Pointing the tool at a Firefox cookies.sqlite path directs the agent to read a browser credential database directly. This is especially dangerous because it operationalizes local credential harvesting and can expose active sessions far beyond the specific media site in question.
you-get -c cookies.txt 'https://www.youtube.com/watch?v=xxxxx'
you-get -c ~/.mozilla/firefox/xxxxx/cookies.sqlite 'URL'
---
The document recommends installing directly from a GitHub develop branch via pip install --upgrade git+https://..., which pulls and executes unpinned remote code outside the vetted package release channel. This increases supply-chain risk because users may install unstable or compromised code with no version pinning, integrity verification, or trust boundary explanation.
/www.bilibili.com/video/BV1xx411c7mD'
curl -I 'https://www.bilibili.com'
pip install --upgrade you-get
**常见原因**:
- Bilibili更新反爬机制 (40%)
- 视频需要登录 (30%)
- 高画质需要会员 (20%)
- you-get版本过旧 (10%)
**解决方案**:
**方案A(更新)**: 更新you-get
```bash
pip install --upgrade you-get
pip install --upgrade git+https://github.com/soimort/you-get@develop
方案B(登录): 使用cookies
you-get -c cookies.txt 'URL'
方案C(备用): 使用其他工具
# 如you-get不支持,可尝试youtube-dl或yt-dlp
pip install yt-dlp
yt-dlp 'URL'
问题描述: 只能下载720p或更低分辨率
排查步骤:
# 查看所有可用格式
you-get -i 'URL'
常见原因:
The skill explicitly states the AI will execute download commands and monitor progress, but it does not disclose that these actions write files locally, consume bandwidth and storage, and may place content into default or user-specified directories. In an agent setting, omission of these side effects can cause unexpected disk usage or accidental overwriting of files, especially when handling large media downloads.
The guide explicitly tells an AI it can directly run package installation commands (pip install you-get) without any approval gate or warning that this will modify the local system. In an agentic context, converting documentation into executable package-management actions increases the risk of unauthorized software installation, dependency confusion, or environment modification on the user's machine.
This section includes privileged package-install instructions, including sudo apt install ffmpeg and sudo yum install ffmpeg, without any warning about elevated privileges or system-wide changes. In an AI-execution setting, this is more dangerous than ordinary documentation because it can cause an agent to perform root-level modifications automatically, expanding impact if the command is misapplied or the environment is sensitive.
The document contains a sudo command that installs software with root privileges. While common in admin documentation, its inclusion in a skill that instructs AI to perform setup makes it hazardous because an agent may execute privileged commands without sufficient validation, user consent, or environment checks.
# Ubuntu/Debian
sudo apt install ffmpeg
# CentOS/RHEL
sudo yum install ffmpeg
This sudo yum install ffmpeg command grants root-level package installation capability and can materially alter the host system. In the context of an agent skill, the risk is amplified because the skill frames environment setup as something the AI may carry out, making unauthorized privileged execution a realistic failure mode.
sudo apt install ffmpeg
sudo yum install ffmpeg
### Windows安装
The guide explicitly tells an AI to directly execute a network download command, which causes outbound network access and writes downloaded content to local storage without any user-consent, destination-review, or safety warning. In an agent context, this can lead to unintended retrieval of untrusted remote content and silent filesystem changes, making the skill materially more dangerous than ordinary human-facing CLI documentation.
The save-path section authorizes AI-directed writes to user-selected locations, including arbitrary directories and filenames, without guardrails about overwriting, sensitive paths, disk usage, or path validation. In an agent setting, this increases risk because the model may write into important user directories or unexpected locations based on ambiguous prompts.
The force-redownload example uses an overwrite behavior and notes that existing files may be replaced, but it does not require confirmation or explain the risk of destructive file loss. In an AI-agent workflow, this is dangerous because an autonomous retry or user-misinterpreted instruction could clobber previously saved content without notice.
Natural-language policy violations include forcing a specific language without user opt-in. This file presents all instructional content in Chinese and does not indicate that the user can select another language or that the guide is intentionally limited to a Chinese-speaking or region-specific audience.
The documentation instructs use of exported browser cookies and direct browser cookie databases for authenticated downloads without any sensitive-data handling guidance. Cookies.sqlite and cookies.txt can contain live session credentials, so encouraging agent access to them risks credential theft, privacy violations, and unauthorized account use.
The guide instructs creation of shell scripts and parallel command execution, moving beyond simple downloader usage into general automation. In an agent environment, generating files and running loops or xargs can amplify unintended network activity, persistence, and command misuse if inputs are not tightly controlled.
The guide expands a media-downloading skill into arbitrary file retrieval by explicitly documenting direct download of any URL such as a PDF. In an agent context, this broadens capability from a bounded media tool to generic network file acquisition, which can be abused to fetch untrusted payloads or sensitive content without additional safeguards.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
Ubuntu/Debian:
sudo apt install ffmpeg
Windows:
The troubleshooting guide instructs users to disable the firewall with sudo ufw disable as a test step, but provides no warning about the security implications or safer alternatives. This can expose the host to unnecessary network risk, especially if users forget to re-enable the firewall or run the command on an internet-connected system.
This step tells users to run a privileged command that disables the Linux firewall, materially reducing host protections during troubleshooting. Because it is presented as a simple test without prominent risk warnings or recovery guidance, it may lead users to weaken system security unnecessarily.
方案B(检查防火墙):
# 临时关闭防火墙测试
sudo ufw disable # Linux
The natural-language description and headings are entirely Chinese, which can amount to a language/locale constraint if the skill is presented without user opt-in or an explicit scope limitation. There is no indication that the skill supports multiple languages or is intentionally limited to a Chinese-speaking audience for a documented reason.
Natural-language comments and headings throughout the file are presented exclusively in Chinese, with no indication that the skill is intended only for a Chinese-speaking or region-specific audience. Under the stated policy, forcing a specific language without opt-in can be a locale policy violation.
This shell script contains multiple example commands that make network requests to third-party sites and, in several cases, save downloaded media to the local system. Although these are examples, the file provides no user-facing warning in comments about network access or local file creation, which is relevant safety context for a code file.
The guide authorizes launching local external applications such as VLC, mpv, or Chromium. While common for media playback, this creates a boundary-crossing action for an agent by invoking local programs that may process untrusted remote content and trigger additional side effects.
The guide recommends creating and executing a batch download script without warning about writing files or repeated outbound requests. In an agent setting, this can unintentionally produce persistent artifacts and excessive network activity, especially if the URL list is attacker-influenced.
The skill content forces a specific language/locale for all instructions without indicating user opt-in or that the skill is specifically intended for Chinese-speaking users. The policy allows locale constraints when explicitly documented and justified, but this file provides no such note.
No suspicious patterns detected.