T08 · Insecure Dependencies
- Location
SKILL.md:28- Finding
Unpinned Third-Party Packages and Skill Repository Content
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 28, 117, 123, 201, and 319
Vulnerability Type: T08: Insecure Dependencies
Risk Level: MediumVulnerable code snippets:
Line 28:
bash npx skills add XhanGlobal/skillsLines 117 and 123:
bash npm install -g @xhanglobal/nicechat-clibash npx @xhanglobal/nicechat-cli --helpLine 201:
bash npm install -g @xhanglobal/nicechat-cli@latestLine 319:
bash npm install -g @xhanglobal/nicechat-cliTechnical Analysis
The documented installation commands retrieve mutable third-party content without pinning an exact package version, repository commit, or integrity hash. In particular,
npx @xhanglobal/nicechat-cli --helpmay download and immediately execute package code. Global npm installation may also execute package lifecycle scripts with the permissions of the invoking user.The
npx skills add XhanGlobal/skillscommand installs content from an entire external skill collection rather than only the audited NiceChat skill. This expands the supply-chain trust boundary to unrelated or subsequently added repository content.Although
SKILL.mdadvises users to review the npm page and source code, this does not ensure that the reviewed content is identical to the mutable package or repository version later retrieved. No malicious package content was present in the audited project, but the unpinned installation process creates a supply-chain exposure.Attack Path
- An attacker compromises the referenced npm publisher account or the external skill repository, or gains control through a malicious upstream update.
- The attacker publishes a hostile package version or modifies the mutable repository content.
- A user or agent follows the documented unpinned
npx,npm install, or@latestcommand. - The package manager retrieves the attacker-controlled version.
- The malicious pa ...[truncated 1017 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a reviewed, exact version, for example
@xhanglobal/nicechat-cli@X.Y.Z, rather than using an implicit current version or@latest. - Pin the skill repository to a verified commit hash or immutable release tag supported by the installation tool.
- Publish and verify package integrity hashes or signed release provenance before installation.
- Avoid executing newly downloaded packages directly through
npx. Download the package, verify its provenance and contents, and then execute the reviewed artifact. - Prefer installing only the required NiceChat skill instead of the complete
XhanGlobal/skillscollection. - Review npm lifecycle scripts and use
--ignore-scriptswhere compatible with the package's operation. - Run installation and CLI operations in a restricted environment with minimal filesystem permissions and only the credentials required for the immediate task.
- Replace automatic recommendations to install
@latestwith a controlled upgrade process that reviews release changes and pins the approved version.
- Pin the CLI to a reviewed, exact version, for example
