T08 · Insecure Dependencies
- Location
README.md:17- Finding
Unpinned Third-Party Installer and Mutable Skill Source
- Content
View full analysis
Vulnerability Details
File Location:
README.md:17-25
Vulnerability Type: Unpinned third-party package execution and mutable remote dependency
Risk Level: MediumVulnerable Code
bash npx skills add anivar/msw-skill -gOr with full URL:
bash npx skills add https://github.com/anivar/msw-skillTechnical Analysis
The documented installation procedure invokes the
skillsnpm package throughnpxwithout specifying an audited version. It also retrieves the Skill from a mutable repository reference rather than a verified commit SHA or immutable release artifact.npxmay download and execute the currently published version of the named package. Consequently, the code executed at installation time may differ from the version reviewed during this audit. Likewise, the GitHub repository reference can resolve to newer content after review.This creates a supply-chain trust gap: compromise of the npm package, package-maintainer account, GitHub repository, or repository-maintainer account could replace the installer or Skill content with a malicious version. Global installation through
-gfurther increases the persistence and scope of installed content.The audited artifact itself contains no malicious scripts, encoded payloads, persistence mechanisms, SSH-key operations, credential harvesting, or unauthorized external transmission. The risk arises from the mutable installation chain documented in the README.
Attack Path
- An attacker compromises the npm account that publishes the
skillspackage, the package itself, the GitHub repository, or a maintainer account. - The attacker publishes a malicious package version or modifies the repository's default branch.
- A user copies one of the documented installation commands.
npxresolves and executes the current, unpinned installer package.- The installer retrieves the current mutable repository content instead of the audited revision.
- Malicious installer cod ...[truncated 844 chars]
- An attacker compromises the npm account that publishes the
- Remediation
View remediation
Remediation Suggestions
- Pin the installer package to a reviewed version:
bash npx skills@<verified-version> add anivar/msw-skill - Pin the Skill source to a verified commit SHA or immutable, signed release rather than the repository's mutable default branch.
- Publish and verify integrity hashes or signed provenance for release artifacts.
- Avoid global installation by default. Prefer project-local installation to limit the scope of compromised content.
- Document how users can inspect the resolved npm package and Skill contents before execution.
- Use npm provenance, lockfiles where supported, protected release workflows, multi-factor authentication, and restricted publishing tokens.
- Warn users not to run the installation command with administrative privileges.
- Pin the installer package to a reviewed version:
