T08 · Insecure Dependencies
- Location
SKILL.md:45- Finding
Unpinned Dependencies and Unverified Third-Party Model Mirror
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 45–46
Vulnerability Type: Supply-chain exposure through unpinned packages and third-party artifact retrieval
Risk Level: MediumVulnerable Code
bash pip install -i https://pypi.tuna.tsinghua.edu.cn/simple faster-whisper soundfile export HF_ENDPOINT=https://hf-mirror.com # CN environment model mirrorTechnical Analysis
The documented installation command obtains
faster-whisper,soundfile, and their transitive dependencies without fixed versions or integrity hashes. Package installation can execute package build or installation logic with the invoking user's privileges. Because resolution is not reproducible, future releases or compromised dependencies may introduce code that was not present during this audit.The configuration also redirects Hugging Face model retrieval to a third-party mirror without requiring checksum or signature verification. A compromised mirror, distribution channel, or upstream account could provide altered model artifacts. Depending on the model loader and artifact format, this could cause output manipulation and, where unsafe deserialization is involved, potentially code execution. The reviewed documentation does not establish that unsafe deserialization occurs, so that outcome is conditional rather than confirmed.
The risk is limited by the fact that these are transparent setup instructions rather than hidden execution logic. Nevertheless, users following them enter an inadequately controlled software and model supply chain.
Attack Path
- An attacker compromises a package publisher, transitive dependency, configured package index, or model mirror.
- The attacker distributes a malicious package release, dependency, or modified model artifact.
- A user follows the documented commands without version or hash verification.
pipresolves and installs the attacker-controlled package content, or the transcription framework downlo ...[truncated 1126 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin every direct dependency to an audited exact version, for example through a locked requirements file.
- Lock transitive dependencies and require cryptographic hashes with
pip --require-hashes. - Prefer the official PyPI index and official Hugging Face endpoint. If mirrors are operationally necessary, document their trust model and use only controlled or organization-approved mirrors.
- Publish verified SHA-256 checksums or signatures for all model files and validate them before loading.
- Use safe model formats such as
safetensorswhere supported, and prohibit loaders that deserialize executable Python objects. - Install dependencies in an isolated virtual environment or container under an unprivileged account.
- Generate and review a software bill of materials, and continuously scan locked dependencies for known vulnerabilities.
- Include the referenced runtime scripts in the distributed project so their download, subprocess, deserialization, temporary-file, and input-validation behavior can be audited.
