T08 · Insecure Dependencies
- Location
scripts/install.sh:13- Finding
Unpinned Third-Party CLI Installation
- Content
View full analysis
Vulnerability Details
File Location:
scripts/install.sh:13-23; also documented inSKILL.md:14-21
Vulnerability Type: Unpinned third-party executable installation
Risk Level: MediumComplete Code Snippet (
scripts/install.sh:13-23):bash if command -v brew &> /dev/null; then echo "Installing olcli via Homebrew..." brew tap aloth/tap brew install olcli echo "✓ Installed olcli $(olcli --version)" exit 0 fi # Fall back to npm if command -v npm &> /dev/null; then echo "Installing olcli via npm..." npm install -g @aloth/olcliRelated Documentation (
SKILL.md:14-21):bash # Homebrew (recommended) brew tap aloth/tap && brew install olcli # npm npm install -g @aloth/olcliTechnical Analysis
Both installation paths retrieve an unspecified current release of the third-party
olclipackage. The project does not pin an exact package version, Homebrew tap revision, artifact checksum, or cryptographic signature. It also contains no vendored CLI implementation against which the installed executable can be verified.The Homebrew path adds the external
aloth/taprepository and installs its mutable formula. The npm fallback performs a global installation of the mutable@aloth/olclipackage. Package installation may execute package-manager hooks or install executables that subsequently run with the invoking user's permissions. Consequently, the effective code installed by this script can change after this Skill has been reviewed.This is a supply-chain weakness rather than evidence that the current upstream package is malicious.
Attack Path
- An attacker compromises an upstream maintainer account, package registry account, Homebrew tap, release process, or transitive dependency.
- The attacker publishes a malicious release while retaining the expected
olclior@aloth/olclipackage identity. - A use ...[truncated 1078 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin npm installation to an explicitly reviewed version, such as
@aloth/olcli@<reviewed-version>. - Pin or otherwise verify the Homebrew tap and formula against a reviewed commit or immutable release artifact.
- Validate downloaded artifacts with publisher-provided cryptographic signatures or hardcoded checksums obtained through a trusted channel.
- Document the exact reviewed package version and trusted upstream source in
SKILL.md. - Prefer a project-local installation over
npm install -gto reduce host-wide exposure. - Disable unnecessary package lifecycle scripts where compatible with the package and installation workflow.
- Add automated dependency monitoring and require security review before updating pinned versions.
- Display the resolved version before installation and fail closed if it does not match the approved version.
- Pin npm installation to an explicitly reviewed version, such as
