T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:75
- Finding
- Unpinned Third-Party Code Execution in the Recommended Installation Command<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:75-77` **Vulnerability Type**: Unpinned package and repository supply chain **Risk Level**: Medium ### Vulnerable Code ```bash # One-click retrieval (skills CLI) npx skills add zhaoxinghua09-cell/agent-skills -g ``` ### Technical Analysis The recommended installation procedure invokes the `skills` npm package through `npx` without specifying an exact package version. Depending on the local npm configuration and cache state, `npx` can download and execute the current version of that package from a remote registry. The referenced repository is also identified by a mutable repository name rather than an immutable commit hash or signed release. Consequently, the code executed or installed at deployment time can differ from the artifact reviewed during this audit. The global installation flag (`-g`) increases the scope of any compromised installation by placing content in globally accessible locations for the invoking user. No evidence shows that the current package or repository is malicious. The vulnerability arises from trusting mutable, unverified upstream content during installation. ### Attack Path 1. An attacker compromises the npm package, its publisher account, the package registry path, or the referenced source repository. 2. The attacker publishes a modified package version or replaces repository content. 3. A user follows the documented installation command. 4. `npx` retrieves and executes the current unpinned package. 5. The compromised installer runs with the privileges of the invoking user and can install altered Skill content globally. ### Impact Assessment Successful exploitation could execute arbitrary code with the privileges of the user running `npx`. The attacker could read or modify files accessible to that user, steal environment variables or credentials, alter installed Skills, and introduce malicious instructions or scripts into the global Skill installation. The co ...[truncated 208 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the CLI to an exact reviewed version, for example by using an explicit npm version rather than the latest available release. 2. Pin the Skill repository to an immutable commit hash or cryptographically signed release. 3. Publish and verify SHA-256 checksums or signed provenance attestations before installation. 4. Avoid global installation unless it is operationally required. Prefer a project-local or isolated installation. 5. Disable or carefully review package lifecycle scripts where supported. 6. Document the expected package publisher, registry, version, repository commit, and verification procedure. 7. Periodically review pinned dependencies and update them through a controlled security-review process. ]]>
