T08 · Insecure Dependencies
- Location
- SKILL.md:32
- Finding
- Unpinned Global Package Installation Can Retrieve Unaudited Code<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:32-35` **Vulnerability Type**: Unpinned third-party package installation **Risk Level**: Medium ### Vulnerable Code ```bash ## Quick Start: npm install -g web3-yield-automator ``` ### Technical Analysis The documented installation command retrieves the current package associated with `web3-yield-automator` from the user's configured npm registry. It does not specify an exact version or verify an expected package digest. Consequently, the code installed by a user may differ from the artifact covered by this audit. A later release, compromised publisher account, registry substitution, or malicious registry configuration could cause the same documented command to retrieve altered code. The global installation scope also exposes the downloaded package as a system-wide command. Although the audited package does not declare an installation lifecycle script, future or substituted package versions are outside the guarantees of this review and could contain such scripts or malicious CLI behavior. ### Attack Path 1. A user trusts the installation instructions in `SKILL.md`. 2. The user runs `npm install -g web3-yield-automator`. 3. npm resolves the current package version through the configured registry rather than a specifically audited release. 4. An attacker who has compromised the package, publisher account, or registry response supplies a modified release. 5. npm installs the substituted package globally. 6. Malicious behavior can run through package lifecycle hooks, if introduced in the substituted release, or when the user invokes `yield-automator`. ### Impact Assessment A malicious substituted package could execute code with the privileges of the account running npm or the CLI. Depending on those privileges, the impact could include access to user files, environment variables, wallet-related material available to the process, network resources, and modification of globally installed comma ...[truncated 176 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin the installation command to an exact reviewed version, for example: ```bash npm install -g web3-yield-automator@1.0.0 ``` - Publish and document the expected package integrity digest or signed provenance. - Recommend installation with a lockfile in a dedicated project instead of global installation where practical. - Use npm provenance and protected publisher credentials with multi-factor authentication. - In release documentation, state the exact source commit and package digest corresponding to each published version. - Require a new security review whenever the published package contents or dependency graph changes. ]]>
