T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned Third-Party Package Execution During Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:14
Vulnerability Type: Supply-chain risk caused by executing a mutable package version
Risk Level: MediumVulnerable Code
bash npx clawhub@latest install subtitle-translator-mcbaiTechnical Analysis
The documented installation command asks
npxto retrieve and execute the version of theclawhubpackage currently referenced by the mutablelatestdistribution tag. Because this tag can be changed after the skill has been reviewed, the code executed during a future installation is not necessarily the code that existed at audit time.The project does not include an exact package version, integrity hash, lockfile, vendored installer, or other mechanism that binds this command to a reviewed artifact. Consequently, compromise of the package publisher, registry account, release pipeline, package itself, or one of its install-time dependencies could cause the command to execute attacker-controlled code.
This finding concerns the documented installation process. The audited local Python scripts do not themselves retrieve or execute remote payloads.
Attack Path
- An attacker compromises the
clawhubpublishing account, release process, package, or relevant dependency. - The attacker publishes a malicious release and causes the mutable
latesttag to reference it. - A user follows the installation instruction in
SKILL.md. npxdownloads the package selected at that time and executes it locally.- Malicious package or lifecycle code runs with the permissions of the user performing the installation.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the installing user's account. The resulting scope would depend on that account's privileges and accessible resources, potentially including:
- Reading or modifying files available to the user.
- Accessing credentials or environment data available to the installation process.
- Insta ...[truncated 387 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed package version:bash npx clawhub@X.Y.Z install subtitle-translator-mcbai - Verify the selected release's registry provenance, publisher identity, and integrity before documenting it.
- Use package-manager integrity and lock mechanisms where supported so transitive dependencies are reproducible.
- Prefer a locally installed or vendored, reviewed installer over downloading and executing an installer at invocation time.
- Review package lifecycle scripts and the complete dependency graph before approving version updates.
- Introduce an update process in which new versions are audited before the pinned version in
SKILL.mdis changed.
- Replace
