T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:15
- Finding
- Unpinned Third-Party Package Installed Globally<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 15-19 **Vulnerability Type**: Unpinned global dependency installation **Risk Level**: Medium ### Vulnerable Code ```bash ## Installation ```bash npm install -g dida365-ai-tools ``` ``` ### Technical Analysis The Skill instructs users to install the latest available version of the third-party `dida365-ai-tools` npm package globally. It does not specify a reviewed version, integrity hash, lockfile, verified source repository, or package provenance. An npm package can execute lifecycle scripts during installation. Global installation also makes the package available throughout the user's environment and executes its CLI with the user's privileges. Because this project contains only documentation, the installed package's implementation, network destinations, credential-storage behavior, and lifecycle scripts cannot be audited from the supplied artifact. This represents an unsafe software supply-chain boundary rather than evidence that the named package is malicious. ### Attack Path 1. The package publisher account, npm package, or distribution process is compromised, or a future release introduces malicious behavior. 2. A user follows the documented command without pinning a specific reviewed version. 3. npm retrieves the current package release and may execute its installation lifecycle scripts. 4. The installed package subsequently receives the user's Dida365 session cookie or OAuth credentials through the documented authentication workflow. 5. Malicious package code can access those credentials, Dida365 task data, and other resources available to the user's local account. ### Impact Assessment Successful exploitation would execute code with the privileges of the user running npm or the CLI. The likely scope includes theft of the Dida365 session cookie and OAuth credentials, unauthorized access to task data, modification or completion of tasks, and access to other files and envir ...[truncated 183 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin the dependency to an explicitly reviewed version instead of installing the latest release. - Publish or reference the package's auditable source repository and verify that the npm package corresponds to that source. - Provide a lockfile, package integrity value, signed release, or other verifiable provenance information. - Review npm lifecycle scripts before installation and use `--ignore-scripts` when lifecycle execution is not required. - Prefer a project-local or isolated installation over a global installation. - Run the CLI under a dedicated least-privileged account or sandbox where practical. - Document package ownership, expected network destinations, credential-storage behavior, and a process for reviewing upgrades. ]]>
