T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:78
- Finding
- Unpinned Third-Party Package Execution During Installation## Vulnerability Details **File Location**: `SKILL.md:78` **Vulnerability Type**: Supply-chain risk from unpinned package execution **Risk Level**: Medium **Vulnerable Code**: ```bash npx skills add zhaoxinghua09-cell/agent-skills -g ``` ### Technical Analysis The documented installation command invokes the `skills` package through `npx` without specifying a package version or integrity constraint. If the package is not already available locally, `npx` may download the currently published version from the configured package registry and execute it. Consequently, the code executed during installation is mutable and is not fully represented by the audited project. A compromised package release, package-owner account, registry response, or dependency in the package's transitive supply chain could cause arbitrary code to run when a user follows the installation instructions. The referenced skill repository is also not pinned to a commit hash in this command. The combination of an unpinned installer and mutable source reference prevents users from reliably reproducing the reviewed installation state. ### Attack Path 1. An attacker compromises the package, its publisher account, the package registry, or a transitive dependency used by the `skills` CLI. 2. The attacker publishes or serves a malicious version under the expected package name. 3. A user follows the installation instructions and runs the documented `npx skills add ... -g` command. 4. `npx` resolves and downloads the mutable package version. 5. The malicious CLI, lifecycle logic, or dependency executes with the privileges of the invoking user. 6. The payload can access resources available to that user and may modify globally managed skill files because the command requests global installation. ### Impact Assessment Successful exploitation could provide arbitrary code execution under the installing user's account. The accessible scope may include the user's f ...[truncated 469 chars]
- Remediation
- ## Remediation Suggestions 1. Pin the installer to a reviewed, immutable version, for example by using an explicit package version rather than the latest registry version. 2. Publish and verify the expected package integrity hash or signed provenance before execution. 3. Pin the installed skill source to a specific reviewed commit or immutable release artifact. 4. Avoid global installation unless it is operationally required; prefer a scoped local installation with least privilege. 5. Document the expected registry, publisher identity, package version, source commit, and checksum. 6. Provide a manual installation procedure that downloads a versioned artifact, verifies its checksum or signature, and copies only the reviewed files without executing a mutable installer. 7. Advise users not to run the installation command with administrator or root privileges.
