T08 · Insecure Dependencies
- Location
SKILL.md:115- Finding
Unpinned Code Execution Through npx and Mutable Repository Content
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:115
Vulnerability Type: Supply-chain exposure through unpinned executable dependencies
Risk Level: MediumVulnerable Code
markdown - **Install source.** `npx skills add Lightprotocol/skills` installs from the public GitHub repository ([Lightprotocol/skills](https://github.com/Lightprotocol/skills)). Verify the source before running.Technical Analysis
The documented command invokes
npx, which may retrieve and execute the currently resolved version of theskillsnpm package. It then installs Skill content from the mutableLightprotocol/skillsrepository reference. Neither the executable npm package nor the repository content is pinned to a reviewed version, immutable commit, or integrity hash.Consequently, the code and instructions executed or installed when a user follows this command can differ from those reviewed during this audit. The warning to verify the source does not provide a concrete integrity-verification mechanism and does not prevent dependency substitution or later upstream compromise.
Attack Path
- An attacker compromises the npm package used by
npx, the upstream repository, a maintainer account, or the relevant publishing workflow. - The attacker publishes malicious installation behavior or modifies the repository content referenced by
Lightprotocol/skills. - A user follows the documented
npx skills add Lightprotocol/skillscommand. npxresolves and executes the mutable package version, which retrieves or installs the current upstream content.- Malicious installer code may execute with the privileges of the invoking user, or malicious Skill instructions may be installed and subsequently loaded by the agent.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the invoking user's privileges during installation. Depending on the user's environment, this may expose accessible files, environment varia ...[truncated 310 chars]
- An attacker compromises the npm package used by
- Remediation
View remediation
Remediation Suggestions
- Pin the
skillsnpm package to a reviewed exact version rather than allowingnpxto resolve the latest release. - Pin
Lightprotocol/skillsto a reviewed immutable Git commit or signed release tag. - Configure
npxto avoid implicit package installation where possible, and install the verified tool separately using a locked dependency manifest. - Verify package integrity using a lockfile and registry integrity hash.
- Verify repository signatures or commit hashes before loading installed Skill content.
- Document the exact expected package version, repository commit, and verification commands.
- Perform installation in a restricted environment without production wallet files or sensitive environment variables.
- Re-audit the installed files after retrieval and before loading them into an agent session.
- Pin the
