T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:17
- Finding
- Unpinned Third-Party Package Installation Creates Supply-Chain Risk## Vulnerability Details **File Location**: `SKILL.md`, lines 17–24 and line 139 **Vulnerability Type**: Unpinned and unaudited third-party dependency installation **Risk Level**: Medium ### Vulnerable Code ```markdown ## Installation ```bash npm install molt-life-kernel ``` Or clone directly: ```bash git clone https://github.com/X-Loop3Labs/molt-life-kernel.git ``` ``` The package is also promoted again without a version pin: ```markdown - **npm:** `npm install molt-life-kernel` ``` ### Technical Analysis The skill instructs users or agents to install `molt-life-kernel` without specifying an exact package version, integrity hash, lockfile, or reviewed source commit. The Git clone alternative similarly refers to the repository's mutable default branch rather than an immutable commit. The audited project contains only `SKILL.md`; it does not include the referenced package's source code, package manifest, lockfile, or tests. Consequently, the behavior of the dependency—including installation lifecycle scripts—cannot be verified from the reviewed artifact. A future package release or default-branch update can change the effective code after this skill has been reviewed. This is a supply-chain weakness rather than proof that the current upstream package is malicious. ### Attack Path 1. An attacker compromises the upstream npm publisher account, repository, or another component in the package's dependency chain. 2. The attacker publishes a modified release under the existing package name or changes the repository's default branch. 3. A user or agent follows the documented `npm install molt-life-kernel` or `git clone` instruction. 4. The package manager retrieves the mutable, attacker-controlled version. 5. Malicious package code or an npm lifecycle script executes with the permissions of the installing user. 6. The code may access files, environment variables, agent workspaces, or network resources ...[truncated 435 chars]
- Remediation
- ## Remediation Suggestions - Pin the dependency to an exact, reviewed version rather than installing the latest release. - Commit a lockfile containing verified integrity hashes. - For Git-based installation, reference a reviewed full commit hash instead of a mutable branch or tag. - Audit the package source, transitive dependencies, and npm lifecycle scripts before recommending installation. - Use `npm install --ignore-scripts` when lifecycle scripts are unnecessary. - Run the package in a least-privilege environment with restricted filesystem and network access. - Document the verified version, commit, expected checksums, and update-review procedure in `SKILL.md`.
