T08 · Insecure Dependencies
Error
- Location
- SKILL.md:16
- Finding
- Execution of an Unpinned Third-Party CLI Package## Vulnerability Details **File Location**: `SKILL.md`, lines 16-25 **Vulnerability Type**: Supply-chain risk from mutable third-party package execution **Risk Level**: High ### Vulnerable Code ```bash # Install via clawhub clawhub install feishu-agent # Or run directly with bunx bunx @teamclaw/feishu-agent <command> # Or install globally via bun bun add -g @teamclaw/feishu-agent feishu-agent <command> ``` ### Technical Analysis The Skill instructs users and agents to download and execute `@teamclaw/feishu-agent` without pinning an exact reviewed version or integrity digest. The submitted project contains only documentation and does not include the CLI source, dependency lockfile, package integrity metadata, or other material with which the downloaded implementation could be audited. In particular, `bunx @teamclaw/feishu-agent` may resolve the current package release at execution time. The effective code can therefore change after this Skill has been reviewed. A global installation additionally persists the package in the user's environment. The package is expected to handle Feishu application secrets, OAuth tokens, calendar data, organizational contacts, and Bitable records. A compromised or malicious release would consequently execute in a highly sensitive context. ### Attack Path 1. An attacker compromises the package registry account, maintainer account, package publication process, or another component of the dependency chain. 2. The attacker publishes a modified release under the same package name. 3. A user or AI agent follows the Skill instructions and runs `bunx @teamclaw/feishu-agent` or installs the package globally. 4. Bun retrieves and executes the mutable package with the invoking user's privileges. 5. Malicious package code reads locally available credentials or intercepts credentials during setup and authentication. 6. The code may transmit credentials or Feishu data to an atta ...[truncated 581 chars]
- Remediation
- ## Remediation Suggestions - Pin the CLI to an exact, independently reviewed package version rather than resolving a mutable latest release. - Verify the package with a cryptographic integrity hash and use a trusted, explicitly configured registry. - Include the complete executable source and dependency lockfile in the reviewed artifact. - Prefer an isolated, non-global installation with minimal filesystem and environment access. - Disable or carefully review installation lifecycle scripts. - Publish provenance attestations and signed release artifacts. - Restrict the execution environment so the package can access only the credentials and resources required for the selected command. - Document the expected network destinations and reject communication with unapproved hosts.
