T08 · Insecure Dependencies
- Location
SKILL.md:77- Finding
Unpinned Third-Party Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 77
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumVulnerable Code
bash npx clawhub install ai-tools-waaiTechnical Analysis
The documented installation command uses
npxto resolve and execute theclawhubpackage without specifying a version or integrity hash. It then requests installation ofai-tools-waaiwithout pinning that artifact to a reviewed version.Consequently, the code executed during installation can differ from the code that was originally audited. Package installation may also execute package entry points or lifecycle scripts. If the package, publisher account, registry resolution, or transitive dependency chain is compromised, following the documented command could execute attacker-controlled code.
This installation behavior is not required by the runtime implementation in
ai_tools.py, which only provides a static, read-only catalog and requires no third-party Python dependencies.Attack Path
- An attacker compromises the
clawhubpackage, the referenced Skill package, a publisher account, or a transitive dependency. - The attacker publishes a malicious version under the same package identity.
- A user follows the installation command from
SKILL.md. npxresolves the current mutable package version because no version or integrity value is specified.- The package manager or installer executes attacker-controlled package code or lifecycle behavior.
- The payload runs with the privileges of the user performing the installation.
Impact Assessment
Successful exploitation could permit arbitrary code execution under the installing user's account. Depending on that account's permissions, the payload could access or modify user files, environment variables, credentials available to the process, agent configuration, and installed Skills. If installation is performed by an administrator or in a privil ...[truncated 272 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto a specifically reviewed version rather than allowingnpxto select the current release. - Pin
ai-tools-waaito an immutable version or content digest supported by the installer. - Use a lockfile or registry integrity metadata to verify downloaded package contents.
- Document the expected registry, package publisher, version, checksum, and verification procedure.
- Prefer downloading and verifying a fixed artifact before executing any installer code.
- Disable or restrict package lifecycle scripts where the package manager supports doing so.
- Run installation with a minimally privileged account and avoid administrator or root execution.
- Periodically audit the pinned package and its complete transitive dependency chain before updating versions.
For example, use the installer's supported version-pinning syntax and verify the artifact checksum before installation. The exact command should be based on documented, supported
clawhubpackage and Skill version syntax rather than an assumed format.- Pin
