T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned and Automatically Approved Supply-Chain Installations
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:13-16andSKILL.md:40-45
Vulnerability Type: Unpinned third-party package and unreviewed remote skill installation
Risk Level: MediumVulnerable Code
SKILL.md:13-16:yaml - id: node kind: node package: "@anygen/cli" bins: ["anygen"]SKILL.md:40-45:markdown If the `anygen-workflow-generate` skill is not available, install it first: ```bash anygen skill install --platform <openclaw|claude-code> -ytext ### Technical Analysis The npm dependency `@anygen/cli` is declared without an exact version or integrity hash. Consequently, installation can resolve to a mutable package release that differs from the version originally reviewed. The fallback workflow also directs the agent to install another skill using the `-y` option. This suppresses interactive approval and does not require the downloaded skill's source, version, signature, checksum, or contents to be reviewed before installation. These behaviors create a supply-chain trust boundary in which externally maintained content can change after this skill has been audited. If the package registry account, distribution channel, CLI backend, or referenced workflow is compromised, malicious content could be delivered through an apparently legitimate installation operation. No evidence establishes that the current package or workflow is malicious. The vulnerability is the absence of controls that ensure future installed content is identical to reviewed content. ### Attack Path 1. An attacker compromises the publisher account, package release process, workflow distribution service, or another relevant upstream source. 2. The attacker publishes or substitutes a malicious release of `@anygen/cli` or `anygen-workflow-generate`. 3. The environment resolves the unpinned package or invokes the documented fallback installation. 4. The `-y` option permits the workflow installation to proceed without an interactive revie ...[truncated 1028 chars]- Remediation
View remediation
Remediation Suggestions
- Pin
@anygen/clito an exact, reviewed version rather than allowing mutable version resolution. - Use a lockfile and verify package integrity through registry-provided hashes, checksums, or cryptographic signatures.
- Pin
anygen-workflow-generateto a specific immutable version, commit, or content digest. - Document and validate the expected publisher, registry, and download origin before installation.
- Remove
-yfrom the skill-installation command so that users can inspect and explicitly approve the source and requested changes. - Download workflow content for review before activating it, and reject unexpected scripts, executable hooks, or instruction changes.
- Perform dependency installation in a sandbox or least-privilege environment with restricted filesystem, secret, and network access.
- Avoid exposing
ANYGEN_API_KEYto package installation hooks or unrelated workflow components. - Add automated dependency scanning and periodic verification to detect publisher changes, compromised releases, and unexpected differences from approved artifacts.
- Pin
