T08 · Insecure Dependencies
- Location
SKILL.md:18- Finding
Unpinned Remote Repository Installation Creates a Mutable Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 18-19
Vulnerability Type: Unpinned remote dependency installation
Risk Level: MediumVulnerable Code:
bash git clone https://github.com/openclaw/openclaw.git cd openclaw && npm installTechnical Analysis
The documented installation process clones the current default branch of a remote repository without pinning a reviewed commit hash or signed release. It then immediately runs
npm install, which resolves third-party dependencies and may execute package lifecycle scripts such aspreinstall,install, andpostinstall.Because both the repository branch and unverified dependency resolution are mutable, the code ultimately installed can change after this Skill has been reviewed. A compromise of the upstream repository, its maintainer accounts, the package registry, or a transitive dependency could cause users following these instructions to retrieve and execute attacker-controlled code.
No malicious payload is embedded in the audited project itself. The risk arises from the unsafe and non-reproducible remote installation procedure.
Attack Path
- An attacker compromises the upstream repository, a maintainer account, or a dependency resolved during
npm install. - The attacker introduces malicious code into the default branch or into an install-time dependency or lifecycle script.
- A user follows the instructions and clones the mutable default branch.
- The user runs
npm install, which retrieves the affected dependencies and can execute malicious lifecycle scripts. - The payload executes with the operating-system privileges of the user performing the installation.
Impact Assessment
Successful exploitation could allow arbitrary command execution in the installation environment with the privileges of the installing user. Depending on those privileges and the environment, an attacker could access source code ...[truncated 441 chars]
- An attacker compromises the upstream repository, a maintainer account, or a dependency resolved during
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable clone operation with a pinned, reviewed commit or cryptographically verified signed release:
bash git clone https://github.com/openclaw/openclaw.git cd openclaw git checkout --detach <reviewed-commit-sha> - Publish the expected commit hash and verify it before installation.
- Include a reviewed lockfile and use
npm cirather thannpm installto enforce reproducible dependency versions. - Require package integrity metadata and monitor direct and transitive dependencies for compromise.
- Audit all package lifecycle scripts. Where compatible with the application, install with
npm ci --ignore-scriptsand explicitly run only reviewed build steps. - Perform installation as a dedicated, unprivileged account in an isolated container or build environment with minimal filesystem, credential, and network access.
- Avoid exposing production secrets or developer credentials to the installation environment.
- Document a dependency-update review process so that changes to the pinned revision and lockfile receive security review before release.
- Replace the mutable clone operation with a pinned, reviewed commit or cryptographically verified signed release:
