T08 · Insecure Dependencies
- Location
README.md:14- Finding
Unpinned Remote Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 14-16
Vulnerability Type: Execution of a mutable third-party package version
Risk Level: Mediumbash npx clawhub@latest install humanizerTechnical Analysis
The documented installation command uses
npxto download and execute thelatestversion of the third-partyclawhubpackage. Thelatesttag is mutable, and neither a fixed package version nor an integrity value is provided. Consequently, the code executed by this command may differ from the version that existed when the project was audited.npxexecutes the downloaded package with the permissions of the user running the command. If the package, its publishing account, or an upstream dependency is compromised, malicious package or lifecycle code could run during installation. Pinning only the Skill version would not address this exposure because the installer package itself is currently unpinned.Attack Path
- An attacker compromises the
clawhubpackage, its registry publishing credentials, or a dependency included in a future release. - The attacker publishes a malicious release and assigns it to the mutable
latestdistribution tag. - A user follows the installation command from
README.md. npxretrieves and executes the attacker-controlled release.- The malicious code operates with the invoking user's privileges and may access resources available to that account.
Impact Assessment
Successful exploitation could permit arbitrary code execution under the invoking user's account. Depending on that account's permissions and environment, the malicious package could read or modify project and user files, access environment variables or locally stored credentials, alter installed Skill content, or download additional payloads.
The command does not directly grant administrative privileges. The attainable scope is limited to the permissions and credentials avai ...[truncated 110 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
latesttag with an explicitly reviewed package version:bash npx clawhub@<reviewed-version> install humanizer - Commit an appropriate lockfile where the installation workflow permits it, and ensure transitive dependencies are resolved to reviewed versions.
- Verify package integrity and provenance using registry checksums, signatures, or attestations before execution.
- Retrieve packages only from an explicitly configured, trusted registry rather than relying on ambient registry configuration.
- Review package lifecycle scripts and dependencies before publishing the recommended installation command.
- Run installation from a minimally privileged account or isolated environment without unrelated credentials or sensitive files.
- Establish a controlled update process in which newer installer versions are reviewed and tested before the documentation is updated.
- Replace the mutable
