T08 · Insecure Dependencies
- Location
SKILL.md:38- Finding
Mutable CloudBase CLI Dependency Is Installed Without Version Pinning
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 38-42
Vulnerability Type: Supply-chain exposure through an unpinned executable dependency
Risk Level: MediumVulnerable Code
sh cd ~/.workbuddy/binaries/node/workspace npm install @cloudbase/cli@latestTechnical Analysis
The deployment instructions install the mutable
latestrelease of@cloudbase/cli. The effective code executed by this workflow can therefore change after the skill has been reviewed, without any corresponding change to this repository.An npm installation may execute package lifecycle scripts, while subsequent deployment steps directly execute the installed CLI in an authenticated CloudBase context. If the package, one of its transitive dependencies, its publisher account, or the package registry delivery path is compromised, malicious code could execute with the operating-system privileges of the deployment user.
No lockfile, exact version, integrity validation, or provenance verification is specified. This finding does not establish that the current
@cloudbase/clipackage is malicious; it identifies an avoidable supply-chain trust boundary.Attack Path
- An attacker compromises the package publisher, a transitive dependency, or the registry delivery channel.
- A malicious release becomes the package version identified by the
latesttag. - The operator follows the skill and runs
npm install @cloudbase/cli@latest. - Malicious package or lifecycle code executes under the deployment user's local account.
- The malicious code may inspect accessible files, environment variables, npm configuration, or CloudBase authentication state.
- When the installed CLI is used, it may also alter deployment inputs, deploy modified functions, or make unauthorized requests using the operator's authenticated session.
Impact Assessment
Successful exploitation could obtain the local privileges of the user runn ...[truncated 407 chars]
- Remediation
View remediation
Remediation Suggestions
-
Replace
@latestwith an exact, reviewed version, for example:sh npm install --save-exact @cloudbase/cli@3.8.1 -
Maintain and review a committed
package.jsonandpackage-lock.json, then install using:sh npm ci --ignore-scriptsIf lifecycle scripts are genuinely required, review them before allowing execution rather than disabling them permanently.
-
Verify package integrity and npm provenance where available. Review the resolved package source and transitive dependency changes before upgrades.
-
Execute deployment tooling from a dedicated, minimally privileged environment with no unrelated secrets or files.
-
Use a least-privileged CloudBase deployment identity and short-lived authentication.
-
Establish an explicit upgrade process instead of automatically consuming the newest release.
-
