T08 · Insecure Dependencies
- Location
- references/tmeet-cli-reference.md:8
- Finding
- Unpinned Global Installation of a Mutable Third-Party Package<![CDATA[ ## Vulnerability Details **File Location**: `references/tmeet-cli-reference.md:8-12` **Vulnerability Type**: Unpinned global npm dependency installation **Risk Level**: Medium ### Vulnerable Code ```bash ### Installation ```bash npm install -g @tencentcloud/tmeet@latest ``` ``` ### Technical Analysis The Skill instructs the Agent to install `@tencentcloud/tmeet` globally using the mutable `latest` distribution tag. No exact version, integrity hash, lockfile, package provenance check, or reviewed dependency manifest is provided. Consequently, the code installed during a future Skill invocation may differ from the package version that existed when the Skill was audited. Global installation also expands the impact beyond an isolated project environment. Depending on the host's npm configuration and user privileges, package lifecycle scripts and installed executables may run with access to the user's files, environment variables, authentication state, and network. The package namespace appears consistent with Tencent Cloud, and the audit found no evidence that the referenced package is currently malicious. The vulnerability is the unsafe and non-reproducible dependency acquisition method. ### Attack Path 1. An attacker compromises the package publisher, registry account, release pipeline, or one of the package's transitive dependencies. 2. A modified release is assigned to the `latest` npm tag. 3. The Skill invokes or recommends: ```bash npm install -g @tencentcloud/tmeet@latest ``` 4. npm downloads the modified package and may execute its lifecycle scripts. 5. The globally installed CLI subsequently runs with the user's access to meeting authentication and local resources. 6. Malicious package code can access or transmit data available to the CLI process. ### Impact Assessment Successful exploitation could affect: - Local files accessible to the user running npm. - Environment variables and other process-accessible secrets. - Tencent ...[truncated 478 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace `@latest` with a reviewed, exact version: ```bash npm install --global --ignore-scripts @tencentcloud/tmeet@<reviewed-exact-version> ``` 2. Verify package provenance, publisher identity, registry origin, and integrity before installation. 3. Provide a lockfile or integrity digest for the approved package and its transitive dependency tree. 4. Prefer a project-local or isolated installation rather than a global installation. 5. Run the CLI under a dedicated, least-privileged account or sandbox with access only to required meeting data. 6. Disable npm lifecycle scripts where compatible, and separately review any scripts required for installation. 7. Require explicit user approval before installing software. 8. Establish a dependency update process in which each new version is reviewed before the pinned version is changed. ]]>
