Security checks for vulnerabilities and agentic risk
Overview
This skill is a straightforward Bilibili video-downloading guide with expected local downloads, optional authentication cookies, and common dependency-installation risks.
Install yt-dlp and ffmpeg from trusted sources, preferably in an isolated environment. Be cautious with --cookies-from-browser or --cookies because they can expose authenticated session data, and only download or share videos you are authorized to access.
Insecure DependenciesIntroduces malicious components through unsafe dependency sources
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)
T08 · Insecure Dependencies
Warning
Location
SKILL.md:22
Finding
Unpinned Third-Party Package Installation
Content
View full analysis
Vulnerability Details
File Location: SKILL.md, line 22 Vulnerability Type: Unpinned third-party dependency Risk Level: Medium
Vulnerable Code Snippet:
bash
pip3 install yt-dlp
Technical Analysis
The installation command does not pin yt-dlp to a reviewed version or verify its integrity with a cryptographic hash. Consequently, the installed code may differ over time from the version considered during this audit.
Because Python package installation can invoke package-controlled build or installation logic, compromise of the package, one of its dependencies, the configured package index, or a future release could result in arbitrary local code execution. This finding concerns mutable supply-chain trust; the audit found no evidence that yt-dlp itself is currently malicious.
Attack Path
An attacker compromises a future yt-dlp release, a transitive dependency, or the package index used by the victim.
A user follows the prerequisite and executes pip3 install yt-dlp.
pip resolves and downloads the attacker-controlled package content because no reviewed version or hash is required.
Malicious build, installation, or runtime code executes in the user's environment.
The payload obtains the permissions of the account running the command and can access resources available to that account.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the installing or invoking user. Depending on that user's permissions, the attacker could read or modify accessible files, steal browser cookies or other credentials available to the process, alter downloaded media, or establish additional malicious behavior. The direct scope is the host and user environment where the dependency is installed; this instruction does not itself request elevated privileges.
Remediation
View remediation
Remediation Suggestions
Pin yt-dlp to a specifically reviewed version rather than installing the latest available release.
Maintain the dependency in a locked requirements file and verify it using trusted hashes, for example:
text
The skill instructs the agent to send downloaded video files to the user and then delete them, but it provides no user-facing notice about temporary file creation, retention, or handling of potentially copyrighted or sensitive media. This creates a data-handling and transparency gap: users may not realize files are stored locally, transmitted, and then removed, which can lead to privacy, auditability, or policy compliance issues.