T08 · Insecure Dependencies
- Location
README.md:8- Finding
Unpinned npm CLI Package Is Downloaded and Executed During Installation
- Content
View full analysis
Vulnerability Details
File Locations:
README.md:8-13README.md:32-35SKILL.md:8-13SKILL.md:32-35
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code
The installation instructions in both
README.mdand the rootSKILL.mdcontain the following command:markdown ## Install ```bash npx skills add adhikjoshi/macpilot-skillsThis uses the skills CLI to install skills into your agent of choice.
text The command is repeated in the quick-start section: ```bash # Install MacPilot skills into Claude Code npx skills add adhikjoshi/macpilot-skillsTechnical Analysis
The command invokes the npm package named
skillsthroughnpxwithout specifying an exact package version or integrity value. If the package is not already available locally,npxcan retrieve and execute the version currently resolved by the npm registry.Consequently, the executed installer is not fully represented by or immutable relative to the audited repository. Its behavior may change after this repository has been reviewed. Exploitation would require compromise of the relevant npm package, its publisher account, registry resolution, or another part of the package distribution chain. No evidence that the currently published package is malicious was identified during this audit.
This is an insecure dependency and supply-chain pattern rather than evidence of an embedded malicious payload in the project itself.
Attack Path
- An attacker compromises the
skillsnpm package, its publisher credentials, or its distribution path. - The attacker publishes a modified version containing malicious installation or runtime behavior.
- A user follows the documented command without an explicit version:
npx skills add adhikjoshi/macpilot-skills. npxresolves, downloads, and executes the attacke ...[truncated 906 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin the CLI to an explicitly reviewed version:
bash npx --yes skills@<reviewed-version> add adhikjoshi/macpilot-skills -
Record and verify the expected package publisher, version, and package integrity hash before execution.
-
Prefer a lockfile-backed installation process where practical, with dependency updates handled through review.
-
Disable or separately review dependency lifecycle scripts when they are not required.
-
Retain and prominently document the manual installation method for security-sensitive environments, because copying the reviewed
SKILL.mdfiles avoids executing a remotely resolved installer. -
Apply the same corrected instructions to both
README.mdand the rootSKILL.mdso the duplicated documentation remains consistent.
-
