T08 · Insecure Dependencies
- Location
SKILL.md:65- Finding
Unpinned npm Package Is Downloaded and Executed
- Content
View full analysis
--config meegle-config.json ``` ### Technical Analysis The documented installation and execution commands do not pin `@lark-project/meego-mcporter` to an exact, reviewed version. When the package is unavailable locally, `npx` can retrieve it from the npm registry and immediately execute its lifecycle or application code. Consequently, the code executed by the Skill can change after this package has been audited. The package runs with the permissions of the user invoking the Skill. It also implements the OAuth process and accesses `~/.mcporter/credentials.json`, making dependency compromise particularly sensitive. The repository contains neither a lockfile nor an integrity hash that would constrain the downloaded artifact to an audited release. This does not establish that the current npm package is malicious. It establishes an unsafe, mutable supply-chain execution path through which a future compromised or unexpectedly changed release could execute arbitrary code. ### Attack Path 1. An attacker compromises the npm package, a maintainer account, or the package publication process. 2. The attacker publishes a malicious version under the legitimate package name. 3. A user follows the Skill instructions and invokes an unversioned `npx` or global installation command. 4. npm resolves and downloads the attacker-contro ...[truncated 899 chars]- Remediation
View remediation
