T08 · Insecure Dependencies
- Location
SKILL.md:30- Finding
Unpinned Third-Party CLI Package Is Downloaded and Executed During Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:30-33;README.md:8-15
Vulnerability Type: Unpinned third-party executable dependency
Risk Level: MediumVulnerable code snippets (
SKILL.md:30-33):markdown ## Install ```bash npx skills add blammectrappora/mascot-generatortext **Vulnerable code snippets (`README.md:8-15`):** ```markdown ## Install Using the ClawHub skills CLI: ```bash npx skills add blammectrappora/mascot-generatortext ### Technical Analysis The documented installation procedure invokes `npx skills` without specifying an audited package version or integrity value. If the `skills` package is not already available locally, `npx` can download its current release from the configured package registry and execute it immediately. Consequently, the code executed during installation is mutable and can differ from the code that was reviewed. This creates a supply-chain exposure if the upstream package, package publisher account, registry, or dependency tree is compromised. The installed skill reference is also not pinned to a specific reviewed revision. ### Attack Path 1. An attacker compromises the upstream `skills` package, its publisher account, a transitive dependency, or the relevant distribution channel. 2. The attacker publishes a malicious version under the package name used by the documented command. 3. A user follows the installation instructions and runs `npx skills add blammectrappora/mascot-generator`. 4. `npx` resolves and downloads the mutable package release. 5. The downloaded package executes with the invoking user's permissions. 6. Malicious code can then access resources available to that user before or while installing the skill. ### Impact Assessment Successful exploitation can provide arbitrary code execution with the privileges of the user running the installation command. Depending on that user's permissions, the attacker could rea ...[truncated 276 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the installer CLI to a specifically audited version, such as
npx skills@<reviewed-version>. - Pin the installed skill to an immutable version, commit hash, or signed release where the installer supports it.
- Use a lockfile and registry integrity metadata for all executable dependencies.
- Prefer a locally installed, reviewed CLI invoked with installation disabled, rather than allowing
npxto retrieve an arbitrary current release. - Configure and document the expected trusted registry.
- Verify package signatures or published checksums before execution.
- Periodically review pinned versions and update them through an explicit security-review process.
- Pin the installer CLI to a specifically audited version, such as
