T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:275
- Finding
- Unverified Third-Party Package Installation and Execution<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 275-278 **Vulnerability Type**: Unverified third-party dependency installation and execution **Risk Level**: Medium ### Vulnerable Code ```bash python3 -m venv .venv && . .venv/bin/activate # keep it off the system python pip install 'edge-tts==7.2.8' # pinned on purpose, bump deliberately edge-tts --voice en-US-GuyNeural --text "The server room hummed." --write-media seg1.mp3 ``` ### Technical Analysis The Skill instructs users or agents to download `edge-tts` from the package index and execute its command-line program. Although the dependency is pinned to version `7.2.8`, no package hash, trusted artifact, signature, or verified repository source is specified. Version pinning prevents unexpected upgrades but does not establish artifact integrity. If the package index account, distribution artifact, dependency chain, or configured package mirror is compromised, the installed package could contain attacker-controlled code. That code would execute when its command-line program is invoked and, depending on the artifact and installation path, could also execute during package building or installation. The use of a Python virtual environment limits package placement but is not a security sandbox. Code executed inside the environment retains the invoking user's operating-system permissions and can access environment variables, local files, network resources, and writable directories available to that user. This dependency is related to the optional narration feature and is not necessary for the Skill's core text-publishing workflow. Consequently, automatically following these instructions expands the Skill's trust boundary and privileges beyond the minimum required for publishing text. ### Attack Path 1. An attacker compromises the `edge-tts` package release, one of its transitive dependencies, a configured Python package mirror, or the artifact delivered for versio ...[truncated 1361 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Maintain a reviewed lock file containing the complete dependency graph and cryptographic hashes. 2. Install with hash enforcement, for example: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 3. Obtain hashes from independently verified release artifacts and update them only after deliberate source and dependency review. 4. Document the expected official package index and reject untrusted mirrors or additional package indexes. 5. Prefer a reviewed, prebuilt artifact or platform-provided text-to-speech capability over runtime package installation. 6. Keep narration explicitly optional and require user approval before installing or executing third-party software. 7. Run narration in a restricted container or sandbox with: - No access to `LATENTPRESS_API_KEY` or unrelated secrets. - Read access only to the narration input. - Write access only to a dedicated output directory. - Restricted outbound network access. 8. Generate narration in a separate process with a minimized environment rather than inheriting all variables from the publishing session. ]]>
