T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:22
- Finding
- Unpinned Third-Party Package Installation<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 22 and 52-60 **Vulnerability Type**: Unpinned dependency installation and unverifiable supply-chain behavior **Risk Level**: Medium ### Evidence ```yaml install: "pip install llmwiki" ``` ```markdown - **PyPI**: `pip install llmwiki` ## Setup ```bash pip install llmwiki ``` ``` ### Technical Analysis The documented installation command retrieves the latest package published under the `llmwiki` name rather than the specific version declared by the Skill metadata. It also provides no package hash or signed artifact verification. The audited project contains only `SKILL.md`; the source code of the installed Python package is not included. Consequently, the package behavior—including its handling of API credentials, local documents, network requests, SSRF protection, server authentication, and telemetry—cannot be verified from this artifact. Python package installation can execute packaging hooks, and the installed application will subsequently run with the user's filesystem and network permissions. A compromised publisher account, malicious replacement release, or unexpected upstream update could therefore alter the effective behavior after this Skill has been reviewed. ### Attack Path 1. An attacker compromises the upstream package publisher account or package-distribution process. 2. The attacker publishes a malicious or backdoored release under the expected `llmwiki` package name. 3. A user follows the Skill instructions and executes `pip install llmwiki`. 4. The package manager retrieves the latest available release rather than the Skill's declared version `0.8.0`. 5. Malicious installation or runtime code executes with the installing user's privileges. 6. The code may access the configured `LLMBASE_API_KEY`, local knowledge-base documents, and any other files available to that user, then transmit data using the application's network privileges. ### Impact Assessment Successful ...[truncated 682 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the dependency to the reviewed version, such as: ```bash pip install llmwiki==0.8.0 ``` 2. Distribute a lock file or requirements file containing cryptographic hashes, and install with hash enforcement: ```bash pip install --require-hashes -r requirements.txt ``` 3. Include or vendor the exact executable source corresponding to the declared Skill version so its network, filesystem, authentication, and credential-handling behavior can be audited. 4. Build and publish reproducible artifacts, and document how users can verify package signatures or hashes. 5. Install the package in an isolated virtual environment or container with access limited to the required knowledge-base directory. 6. Avoid exposing unrelated environment variables and filesystem locations to the package. 7. Establish a controlled dependency-update process that requires review and testing before changing the pinned version. ]]>
