T08 · Insecure Dependencies
- Location
SKILL.md:20- Finding
Unverified model retrieval through a third-party mirror
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 20
Vulnerability Type: Supply-chain exposure through an unverified external model source
Risk Level: MediumVulnerable Documentation Snippet
The following is an English translation of the complete relevant instruction, preserving all technical identifiers:
text The semantic steps initially download Xenova/bge-small-zh-v1.5 and require access to https://hf-mirror.com. The standard huggingface.co endpoint is unavailable in this environment. scripts/cluster-99-run-pipeline.mjs automatically injects HF_ENDPOINT when it is not already set.Technical Analysis
The Skill directs the pipeline to retrieve the
Xenova/bge-small-zh-v1.5model throughhttps://hf-mirror.com, a mirror rather than the standard upstream service. It also states thatscripts/cluster-99-run-pipeline.mjsautomatically injects theHF_ENDPOINTconfiguration.No requirement is specified to pin an immutable model revision or verify the downloaded files using cryptographic hashes or signatures. Consequently, the effective model artifacts and associated metadata can change after the Skill has been reviewed. Trust is placed in the current content delivered by the mirror and the integrity of the network retrieval process.
This is a supply-chain risk rather than proof that the current mirror content is malicious. Exploitation requires compromise of the mirror, its distribution infrastructure, or the artifact publication process. Depending on the model loader and artifact format, substituted content could manipulate clustering results or attempt to exploit a vulnerability in the component parsing the downloaded files.
Attack Path
- An attacker compromises the mirror, its artifact storage, or the publication path for
Xenova/bge-small-zh-v1.5. - The attacker replaces a model or associated file while retaining identifiers expected by the pipeline.
- A user invokes `pn ...[truncated 1081 chars]
- An attacker compromises the mirror, its artifact storage, or the publication path for
- Remediation
View remediation
Remediation Suggestions
- Pin
Xenova/bge-small-zh-v1.5to an immutable, reviewed revision rather than relying only on a mutable model name. - Record cryptographic hashes for every required model artifact and verify them before loading.
- Prefer an organization-approved registry or an internally controlled artifact repository.
- Do not silently inject an alternate model endpoint. Require explicit configuration or clearly display the selected source before downloading.
- Cache verified artifacts in a read-only location and prevent automatic replacement without review.
- Run model retrieval and parsing with restricted filesystem and network permissions.
- Maintain an inventory of downloaded model files, versions, hashes, and provenance so changes can be audited.
- Pin
