T08 · Insecure Dependencies
- Location
README.md:8- Finding
Mutable Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
README.md, line 8
Vulnerability Type: Supply-chain risk caused by executing an unpinned dependency
Risk Level: MediumVulnerable Code
bash npx clawhub@latest install tractusx-edc-v3Technical Analysis
The installation command uses
npxto retrieve and execute the mutablelatestrelease of the third-partyclawhubpackage. Because neither an exact version nor an integrity digest is specified, the code executed by this command can change after the Skill has been reviewed.This creates a time-of-check/time-of-use supply-chain risk. If the package publisher account, registry, package, or release process is compromised, an attacker can publish a modified version under the
latesttag. A user following the documented installation procedure would then retrieve and execute that version without assurance that it is the version evaluated during this audit.Attack Path
- An attacker compromises the
clawhubpackage, its publisher credentials, or its distribution channel. - The attacker publishes a malicious release and assigns or causes it to receive the
latesttag. - A user runs the installation command from
README.md. npxdownloads the attacker-controlled package release.- The package executes with the privileges of the user running the command.
- The malicious package may perform any operation permitted to that user before, during, or after installing the Skill.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the installing user's privileges. Depending on that user's permissions and environment, the affected scope could include:
- Reading or modifying files accessible to the user.
- Accessing environment variables and locally available credentials.
- Altering the installed Skill or other user-owned tools and configuration.
- Making network requests from the host.
- Establishing additional persistence where the user's permissi ...[truncated 210 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable tag with an exact, reviewed package version:
bash npx clawhub@X.Y.Z install tractusx-edc-v3- Verify the selected package version's provenance, publisher, release signatures, and registry integrity metadata before recommending it.
- Where supported, enforce an integrity digest or checksum so installation fails if the retrieved artifact differs from the reviewed artifact.
- Document a trusted registry explicitly and prevent fallback to untrusted or unexpected package sources.
- Review new versions before updating the documented pin rather than automatically tracking
latest. - Consider installing the tool through a lockfile-backed workflow or another mechanism that records and verifies the complete dependency graph.
- Advise users to run installation with the minimum required privileges and not from an administrator or root account.
