T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:82
- Finding
- Unpinned Third-Party Package Execution During Installation<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:82-84` **Vulnerability Type**: Unpinned dependency and global package execution **Risk Level**: Medium ### Vulnerable Code ```bash # One-click installation using the skills CLI npx skills add zhaoxinghua09-cell/agent-skills -g ``` ### Technical Analysis The documented installation procedure invokes `npx skills` without specifying an exact package version or verifying package integrity. Consequently, the package and executable resolved by the package manager at installation time may differ from those reviewed during this audit. The `-g` option also requests a global skill installation. Although it does not inherently elevate operating-system privileges, it expands the scope of modifications beyond an isolated project and may affect other agent sessions that use the same global skill directory. This is a supply-chain risk rather than evidence that the currently reviewed local Python script is malicious. Exploitation depends on compromise, replacement, or unexpected resolution of the externally sourced package. ### Attack Path 1. An attacker compromises the package, publisher account, distribution registry, or another component involved in resolving the unpinned `skills` executable. 2. The victim follows the documented `npx skills add ... -g` command. 3. `npx` retrieves and runs the package version available at that time rather than a version tied to this audit. 4. Malicious package or lifecycle code executes with the invoking user's privileges. 5. The package may modify user-accessible files, steal credentials readable by that user, or install altered skills globally. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the privileges of the user running `npx`. The accessible scope may include that user's files, environment variables, development credentials, agent configuration, and global user-level skill installation directories. This command does n ...[truncated 71 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin the installer package to an exact reviewed version, such as `npx skills@<exact-version>`. - Verify package provenance and publisher identity before documenting it as the recommended installer. - Use package-locking and registry-supported integrity hashes where available. - Prefer a project-local installation over `-g` unless global installation is strictly required. - Provide the expected artifact digest or signed release metadata so users can verify downloaded content. - For higher-assurance environments, install directly from a reviewed, immutable Git commit and verify its checksum before execution. - Document that the installer executes third-party code and should be run with least privilege. ]]>
