T08 · Insecure Dependencies
- Location
SKILL.md:17- Finding
Unpinned Third-Party CLI Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 17–20
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
yaml install: - kind: node package: "@yummysource/yummycli" bins: ["yummycli"]Technical Analysis
The skill installs and executes the third-party npm package
@yummysource/yummycliwithout specifying an exact version or integrity digest. Consequently, installation may resolve to a package release that was not reviewed as part of this audit.If the package publisher, registry account, distribution infrastructure, or package namespace is compromised, an attacker could publish a malicious release. Package installation can also invoke npm lifecycle scripts, while later calls to the installed
yummycliexecutable run package-controlled code with the invoking user's privileges.This finding concerns dependency pinning and provenance. The reviewed file does not itself prove that the current package is malicious.
Attack Path
- An attacker compromises the package publisher, registry account, namespace, or package distribution process.
- The attacker publishes a malicious version of
@yummysource/yummycli. - A user installs this skill's dependency without an exact version constraint or verified integrity digest.
- The package manager resolves and downloads the attacker-controlled release.
- Malicious code runs through an installation lifecycle script or when the agent invokes
yummycli. - The code accesses resources available to the invoking account and may exfiltrate data, tamper with files, or execute additional commands.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the account installing or invoking the CLI. Accessible resources may include project files, local reference images supplied for editing, environment variables such as
GEMINI_API_KEY, and other ...[truncated 293 chars]- Remediation
View remediation
Remediation Suggestions
- Pin
@yummysource/yummyclito a reviewed exact version rather than allowing unconstrained resolution. - Record and verify the package's registry integrity hash or equivalent immutable digest.
- Use a lockfile where supported and include it in the reviewed artifact.
- Verify package provenance, publisher identity, and registry source before installation.
- Review package contents and lifecycle scripts for every dependency update.
- Disable npm lifecycle scripts during installation where they are unnecessary and operationally feasible.
- Run installation and image-generation commands in a sandbox with minimal filesystem access, restricted network access, and only the required environment variables.
- Avoid exposing unrelated credentials to the CLI process, and rotate
GEMINI_API_KEYif dependency compromise is suspected.
- Pin
