T08 · Insecure Dependencies
- Location
skill.md:45- Finding
Unpinned External Package and Source Installation
- Content
View full analysis
Vulnerability Details
File Location:
skill.md:45-65; duplicated inreadme.md:51-63
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: MediumVulnerable Code
skill.md:45-65:bash npm install -g openclaw-audit-trail npm install openclaw-audit-trail clawhub install openclaw-audit-trail git clone https://github.com/ZhenRobotics/openclaw-audit-trail.git cd openclaw-audit-trail npm install npm linkThe same installation pattern appears in
readme.md:51-63.Technical Analysis
The documented commands install mutable third-party content without pinning an exact package version, source commit, integrity hash, or cryptographic signature. The supplied project contains only documentation and does not include the package implementation, dependency manifest, lockfile, or source code needed to verify what these commands will execute.
An npm installation may execute package lifecycle scripts. Global installation with
npm install -gexposes package executables broadly within the user's environment, whilenpm linklinks the checked-out package into the active Node.js environment. The Git installation procedure checks out the repository's moving default branch instead of a reviewed commit.Consequently, the content executed by a user can differ from the content available when this Skill was audited. A compromised registry account, repository, release process, or transitive dependency could introduce malicious code after review.
Attack Path
- An attacker compromises the npm or ClawHub publisher account, the Git repository, the release pipeline, or a transitive dependency.
- The attacker publishes malicious content under the expected package name or adds it to the repository's mutable default branch.
- A user follows one of the documented unpinned installation procedures.
- The package manager retrieves the attacker-controlled version rather than a p ...[truncated 1214 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin npm and ClawHub installations to an exact reviewed version rather than resolving the latest release.
- Pin source installations to a full reviewed Git commit hash or signed release tag.
- Publish and verify cryptographic checksums or signatures for release artifacts.
- Include the implementation, package manifest, dependency lockfile, and tests in the auditable Skill artifact.
- Use a reproducible lockfile-based installation such as
npm cifor source builds. - Initially inspect dependencies with lifecycle scripts disabled, such as through
npm install --ignore-scripts, and enable scripts only after review. - Avoid global installation and
npm linkwhere possible. Prefer a dedicated, least-privileged environment or container. - Audit direct and transitive dependencies, enforce provenance verification, and monitor publisher ownership and release changes.
- Document the exact verified artifact version, commit, checksum, and expected executable behavior.
