T08 · Insecure Dependencies
- Location
SKILL.md:175- Finding
Unpinned Third-Party Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:175
Vulnerability Type: Unpinned and mutable supply-chain dependency execution
Risk Level: HighVulnerable Code:
bash npx clawhub@latest install atrisTechnical Analysis
The Skill instructs users to execute the mutable
latestversion of the third-partyclawhubpackage throughnpx. This operation can download and execute package code that was not included in, or reviewed as part of, the audited Skill.Because
latestis a mutable release tag, the effective installer payload may change at any time. The instruction also installs another Skill whose exact version, contents, publisher identity, and integrity digest are not specified. Consequently, auditing this repository cannot establish the safety of the code that the command will execute.The external installation is optional rather than strictly necessary: the document immediately provides a manual codebase-scanning alternative. Executing an unpinned remote dependency therefore exceeds the minimum privileges required to explain or implement the declared token-optimization functionality.
Attack Path
- An attacker compromises the relevant package publisher, registry account, release process, or another component in the package distribution chain.
- The attacker publishes a malicious package version and causes the mutable
latesttag to resolve to it. - A user follows the instruction in
SKILL.mdand runsnpx clawhub@latest install atris. npxretrieves and executes the currently resolved package with the invoking user's permissions.- The malicious installer or installed Skill can perform unauthorized operations available to that user before the user notices that the retrieved content differs from the previously reviewed release.
Impact Assessment
Successful exploitation can provide arbitrary code execution under the account running
npx. The resulting access is li ...[truncated 637 chars]- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
@latestreference with an exact, reviewed package version. - Pin the installed
atrisSkill to an exact reviewed version as well, if the installer supports version selection. - Record and verify an integrity digest or signed release provenance before execution.
- Document the expected registry and publisher identity to reduce dependency-confusion and account-impersonation risks.
- Prefer a locally downloaded and reviewed installation artifact rather than allowing
npxto retrieve and immediately execute remote content. - Run installation in a sandbox or restricted container with no secrets, minimal filesystem access, and limited network permissions.
- Present the manual
rg-based mapping procedure as the default because it does not require executing a remote installer. - If remote installation remains available, clearly warn users that it executes third-party code and require explicit confirmation before proceeding.
- Replace the mutable
