T08 · Insecure Dependencies
- Location
SKILL.md:5- Finding
Unpinned Executable Installation from a Mutable Third-Party Homebrew Tap
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 5
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumComplete Code Snippet:
yaml metadata: {"clawdbot":{"emoji":"🔱","requires":{"bins":["caseclaw"]},"install":[{"id":"brew","kind":"brew","formula":"legal-tools/tap/caseclaw","bins":["caseclaw"],"label":"Install caseclaw (brew)"}]}}Technical Analysis
The skill instructs the host environment to install the
caseclawexecutable from the external Homebrew formulalegal-tools/tap/caseclaw. The dependency is referenced through a mutable package name without an immutable source commit, fixed package version, checksum, or cryptographic signature recorded in the audited project.Neither the Homebrew formula nor the executable's source is included in the project, which contains only
SKILL.mdand_meta.json. Therefore, the behavior and integrity of the code ultimately executed ascaseclawcannot be verified from this artifact. A future update to the tap, compromise of its publishing account or repository, or compromise of an upstream release could change the installed payload after this skill has been reviewed.This is a supply-chain weakness rather than evidence that the current external package is malicious.
Attack Path
- An attacker compromises the
legal-tools/taprepository, its publishing credentials, the referenced formula, or an upstream artifact used by that formula. - The attacker changes the formula or upstream release so that it installs a malicious
caseclawexecutable. - A user loads or installs the skill in an environment where
caseclawis not already available. - The skill's installation metadata causes Homebrew to resolve the mutable
legal-tools/tap/caseclawformula. - Because this project specifies no trusted version or expected digest, the modified package may be accepted and installed without detection by the skill.
- The user later in ...[truncated 1120 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin the dependency to a reviewed, immutable release rather than relying solely on a mutable Homebrew formula name.
- Record and verify a SHA-256 digest or a trusted cryptographic signature for the downloaded artifact before installation.
- Pin the Homebrew tap or formula source to an immutable commit and ensure that the formula itself verifies the integrity of its upstream archive.
- Include the formula and executable source in the auditable package, or provide reproducible-build documentation that allows reviewers to map the installed binary to reviewed source.
- Protect release and tap publishing workflows with multi-factor authentication, least-privilege tokens, protected branches, mandatory review, signed tags, and provenance attestations.
- Fail closed if signature, checksum, provenance, package version, or source verification does not match the approved release.
- Display the exact package version and source to the user and require explicit confirmation before installing an executable that will process confidential legal data.
- Run the executable with least privilege and restrict its filesystem and network access where practical.
- Independently review the external formula and executable before treating the package's documented security, storage, or network-processing claims as verified.
