T08 · Insecure Dependencies
- Location
references/cuda-and-deps.md:7- Finding
Unverified Binary Dependencies Installed from Direct URLs
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a coherent Hugging Face ZeroGPU guidance package, with a supply-chain caution around direct wheel URLs but no hidden execution, persistence, or data access behavior.
This skill is reasonable to install for ZeroGPU work. Before following its CUDA wheel advice, prefer official PyPI or verified upstream releases, pin exact versions, use immutable URLs where possible, and record or verify SHA-256 hashes for any binary wheel installed from a direct URL.
references/cuda-and-deps.md:7Unverified Binary Dependencies Installed from Direct URLs
Skill instructs the agent to omit warnings, disclaimers, or ethical commentary. Stripping safety caveats hides risk from the user and is a common jailbreak preamble.
## torch-family side-car drift
`torchvision`, `torchaudio`, `torchcodec`, and similar side-car packages are built against a specific `torch` major.minor (and CUDA major). On ZeroGPU, the runtime's supported `torch` list lags behind PyPI, so projects often pin a non-latest `torch` — and a bare `uv add <side-car>` can silently resolve to a newer release that targets a different `torch` / CUDA, producing ABI/import failures even though `uv lock` succeeded without warnings.
Concretely observed (2026-04) with `torch==2.9.1` pinned:
The trigger guidance is unusually broad: it says to invoke the skill not only when users explicitly mention ZeroGPU or @spaces.GPU, but also on indirect cues such as import spaces, specific error strings, and even when the user does not ask for ZeroGPU guidance. In an agent system, this can cause unintended skill activation in unrelated contexts, increasing the chance of wrong guidance being injected, tool-routing mistakes, or context hijacking by adversarial prompts that deliberately include trigger terms.
Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
requires_dist:
curl -s https://pypi.org/pypi/<pkg>/<version>/json \
| python3 -c "import json,sys,re; rd=json.load(sys.stdin)['info'].get('requires_dist') or []; print('\n'.join(x for x in rd if re.match(r'^torch(?![a-z])', x)) or '(no torch constraint declared)')"
torch==X.Y.Z line appears and matches the pinned torch, good. If it appears and does NOT match, the side-car is wrong — pin it down explicitly.No suspicious patterns detected.