T08 · Insecure Dependencies
Error
- Location
- SKILL.md:26
- Finding
- Unpinned Third-Party Package Is Downloaded and Executed<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 26–42 **Vulnerability Type**: Supply-chain exposure caused by dynamic execution of an unpinned dependency **Risk Level**: High ### Vulnerable Code ```bash # Interactive setup wizard (recommended) bunx @teamclaw/feishu-agent setup # Or manual configuration bunx @teamclaw/feishu-agent config set appId <your_app_id> bunx @teamclaw/feishu-agent config set appSecret <your_app_secret> ``` ```bash bunx @teamclaw/feishu-agent auth ``` ```bash bunx @teamclaw/feishu-agent whoami ``` ### Technical Analysis The Skill instructs users to execute `@teamclaw/feishu-agent` through `bunx` without specifying an exact, audited package version. In the absence of a committed lockfile or integrity verification, `bunx` may retrieve the package version currently resolved by the package registry when each command is run. Consequently, the code executed at runtime can differ from the code reviewed during this audit. A compromised package release, package-maintainer account, or registry distribution path could introduce arbitrary code. This concern is amplified because the package is used to configure a Feishu application secret, conduct OAuth authorization, and access calendar functionality. The repository contains only `SKILL.md`; it does not include the dependency's implementation or an integrity manifest. Therefore, the actual behavior of the downloaded package and the claimed conflict-detection functionality cannot be independently verified from this project. ### Attack Path 1. An attacker compromises the package maintainer's publishing credentials, package distribution channel, or a future release of `@teamclaw/feishu-agent`. 2. The attacker publishes a modified package version containing malicious installation or runtime behavior. 3. A user follows the Skill documentation and runs an unversioned `bunx @teamclaw/feishu-agent ...` command. 4. `bunx` resolves, downloads, and executes the attacker-control ...[truncated 727 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin `@teamclaw/feishu-agent` to an exact, reviewed version in every command, rather than relying on registry resolution of an unspecified version. 2. Maintain a committed lockfile and use an installation mode that refuses unexpected dependency changes. 3. Verify package integrity through trusted checksums or package-manager integrity metadata before execution. 4. Document the package's authoritative source repository and validate the publisher and release provenance. 5. Prefer a vendored or locally installed implementation that has been reviewed before use, especially for commands that handle credentials and OAuth tokens. 6. Run the package with the minimum required operating-system and Feishu permissions. 7. Establish a controlled upgrade process in which new versions are reviewed and tested before the pinned version is changed. ]]>
