T08 · Insecure Dependencies
- Location
README.md:24- Finding
Unpinned Third-Party Package Execution in Recommended Installation Command
- Content
View full analysis
Vulnerability Details
File Location:
README.md, line 24
Vulnerability Type: Supply-chain risk from unpinned external tooling and mutable repository content
Risk Level: MediumComplete Code Snippet
bash npx skills add https://github.com/op7418/Humanizer-zh.gitTechnical Analysis
The recommended installation command invokes
npxwithout specifying a reviewed version or integrity value for theskillspackage. If that package is absent locally,npxmay retrieve and execute its current registry version. The Git repository is also identified by a mutable repository URL rather than a verified commit.Consequently, the effective installation code and installed Skill content can change after this project has been audited. Compromise of the npm package, its publisher account, the source repository, or its maintainer account could cause users following the documentation to execute or install attacker-controlled content.
This issue is confined to the documented installation process. The audited project itself contains no dependencies, lifecycle hooks, executable scripts, or embedded malicious code.
Attack Path
- An attacker compromises the npm package used by
npx, its publisher credentials, or the referenced Git repository. - The attacker publishes a malicious package version or changes content in the repository's default branch.
- A user follows the recommended installation command from
README.md. npxretrieves and runs the current package version, which processes content from the mutable repository.- The malicious installer can execute commands with the user's privileges, or it can install altered Skill instructions that affect later Agent sessions.
Impact Assessment
Successful exploitation of the npm execution path could permit arbitrary actions under the privileges of the user running the installation command, including reading or modifying user-accessible files an ...[truncated 440 chars]
- An attacker compromises the npm package used by
- Remediation
View remediation
Remediation Suggestions
- Pin the npm installer package to a specifically reviewed version instead of allowing
npxto resolve the latest release. - Pin the source repository to a verified immutable commit or signed release rather than its default branch.
- Record expected cryptographic hashes or signatures and explain how users can verify downloaded artifacts before installation.
- Prefer a non-executing installation procedure: download the small set of Skill files, inspect them, verify their hashes, and copy them into the destination directory.
- If an automated installer remains necessary, document precisely which package is executed, what files it writes, and which permissions it requires.
- Recommend installation as an unprivileged user and avoid commands run through
sudoor an administrator shell.
- Pin the npm installer package to a specifically reviewed version instead of allowing
