T08 · Insecure Dependencies
- Location
SKILL.md:28- Finding
Unpinned External Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 28-31
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: MediumVulnerable Code
markdown 1. Install: ```bash clawdhub install cooking-recipe ```Technical Analysis
The installation instruction retrieves the
cooking-recipepackage without specifying an immutable version, integrity hash, commit identifier, or other verification mechanism. The executable implementation is not included in the reviewed artifact, so the code that handles OAuth credentials, backend communication, recipes, and grocery lists cannot be verified from the supplied project.Because package resolution can change after this skill has been reviewed, a compromised, replaced, or unexpectedly updated registry release could cause users to install code different from the implementation originally intended. This is a supply-chain risk rather than evidence that the current external package is malicious.
Attack Path
- An attacker compromises the package publisher account, registry entry, distribution infrastructure, or another component of the external package supply chain.
- The attacker publishes a modified release under the package name
cooking-recipe. - A user follows the documented command without selecting a trusted immutable version.
- The package manager resolves and installs the attacker-controlled release.
- When invoked, the installed package executes with the permissions of the user running the CLI.
- The malicious release may read accessible environment variables, including configured OAuth credentials, manipulate local files available to that user, or redirect authentication and recipe-related traffic.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the privileges of the user who installs or runs the package. Within that user's access boundaries, a malicious depend ...[truncated 501 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
cooking-recipeto a specific immutable version rather than installing the mutable latest release. - Require verification using a cryptographic integrity hash, signed release, or equivalent package-manager integrity control.
- Explicitly document the trusted registry and canonical publisher identity to reduce dependency-confusion and package-substitution risks.
- Include the CLI source code, dependency manifest, and lockfile in the auditable artifact so its credential handling and network behavior can be reviewed.
- Use automated dependency and provenance verification in the release pipeline, such as signature validation, reproducible builds, and software-bill-of-materials generation.
- Run the CLI with least privilege and expose only the environment variables required for the specific operation.
- Provide the missing
.env.exampleand referenced output-template file so configuration defaults and secret-handling behavior can be reviewed.
- Pin
