T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:5
- Finding
- Unpinned Third-Party CLI Dependency Creates a Supply-Chain Risk<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:5` **Vulnerability Type**: Unpinned executable dependency **Risk Level**: Medium ### Vulnerable Code ```yaml metadata: {"openclaw":{"emoji":"🤖","requires":{"bins":["pine"]},"install":{"pip":{"package":"pineai-cli"}}}} ``` ### Technical Analysis The skill declares `pineai-cli` as an installable Python dependency without specifying an exact version, package hash, trusted artifact URL, or provenance requirement. Consequently, the code installed under the `pine` executable name can change independently of the reviewed skill. Because the dependency supplies a command-line program that the agent is instructed to execute extensively, compromise of the package publisher account, package repository, or a future release could introduce arbitrary code into the skill's execution path. The reviewed project does not itself contain evidence that the current package is malicious; the vulnerability is the absence of controls ensuring that the installed artifact is the same artifact that was audited. ### Attack Path 1. An attacker compromises the package publisher, package distribution account, or another relevant supply-chain component. 2. The attacker publishes a malicious release of `pineai-cli`. 3. A skill installation or update resolves the unversioned dependency to the malicious release. 4. The agent invokes the installed `pine` executable as directed by `SKILL.md`. 5. Malicious package code executes with the operating-system permissions and environment access of the agent process. ### Impact Assessment A compromised dependency could access resources available to the agent process, potentially including Pine credentials stored under `~/.pine/config.json`, user task details, account information supplied to the CLI, local files readable by the process, and accessible network services. It could also falsify CLI responses or perform unauthorized network activity. The attainable privileges are limited b ...[truncated 147 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin `pineai-cli` to an exact, security-reviewed version rather than accepting the latest available release. - Require a cryptographic hash for the selected package artifact, using a hash-locked requirements file or an equivalent package integrity mechanism. - Verify the package publisher, repository ownership, release signatures, and build provenance before deployment. - Install and execute the dependency in a restricted environment with minimal filesystem and network permissions. - Prevent the CLI process from reading unrelated secrets or files. - Establish a controlled update process in which each new dependency version is reviewed and tested before the pin is changed. ]]>
