T08 · Insecure Dependencies
- Location
skill.md:28- Finding
Unpinned Runtime Installation of openai-whisper
- Content
View full analysis
Vulnerability Details
File Location:
skill.md, line 28
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: MediumComplete Code Snippet:
markdown 1. Install `openai-whisper` if needed (`pip3 install openai-whisper`)Technical Analysis
The skill instructs the agent to install
openai-whisperfrom the package index configured forpip3without specifying an approved version, package hash, trusted repository, or isolated environment. Consequently, the installed artifact can change after the skill has been reviewed.This creates a supply-chain risk if the configured index is compromised, a dependency is compromised, or local package-index configuration redirects installation to an untrusted source. Python packages may execute code during installation and subsequently when imported by the transcription workflow.
No evidence establishes that the current
openai-whisperpackage is malicious. The vulnerability is the unsafe and non-reproducible dependency acquisition process.Attack Path
- A user invokes the skill on a video.
- The agent determines that
openai-whisperis unavailable. - Following
skill.md, the agent runspip3 install openai-whisper. pip3resolves an unpinned release from its configured package index.- If the index, selected release, or dependency chain has been compromised, attacker-controlled installation or runtime code executes.
- The malicious code runs with the privileges of the account operating the agent and can access resources available to that account.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the agent user's privileges. The accessible scope may include the supplied video, neighboring media assets, generated transcripts, output files, environment variables, and other files readable or writable by that user. The instruction does not request elevated privileges, persistenc ...[truncated 99 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
openai-whisperand all transitive dependencies to reviewed versions in a lock file. - Require cryptographic hashes, such as through
pip install --require-hashes -r requirements.txt. - Explicitly use an approved HTTPS package index and prevent fallback to untrusted extra indexes.
- Install dependencies in a dedicated, least-privileged virtual environment rather than the user's global Python environment.
- Prefer a prebuilt and reviewed execution environment so skill invocation does not dynamically install packages.
- Add dependency vulnerability scanning and a controlled process for reviewing and updating pinned versions.
- Pin
