T08 · Insecure Dependencies
- Location
SKILL.md:28- Finding
Unpinned Global Installation of a Third-Party CLI
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 28-29
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: Mediummarkdown - **Homebrew:** `brew install hmbown/tap/deepseek-tui` - **npm:** `npm install -g deepseek-tui`Technical Analysis
The skill directs users or agents to install
deepseek-tuiglobally from mutable third-party distribution channels without pinning a reviewed version, package digest, commit, or cryptographic checksum.The npm command resolves the package version selected by the registry at installation time. It may also execute package lifecycle scripts with the privileges of the invoking user. The Homebrew command similarly trusts a third-party tap and its current formula definition. Consequently, the effective code installed can change after this skill has been reviewed.
There is no evidence in the audited file that the current package or Homebrew formula is malicious. The confirmed weakness is that the installation instructions do not provide dependency immutability or integrity verification, creating a supply-chain execution path if the package, publisher account, registry, repository, or Homebrew tap is compromised.
Attack Path
- An attacker compromises the npm publisher account, package, source repository, or
hmbown/tapHomebrew tap. - The attacker publishes a malicious package release or modifies the Homebrew formula to retrieve or install attacker-controlled content.
- A user or autonomous agent follows lines 28-29 and installs the dependency without a version or checksum constraint.
- The package manager resolves the attacker-controlled version or formula.
- Malicious lifecycle, installation, or executable code runs under the account performing the installation.
- The installed global CLI can subsequently execute attacker behavior whenever
deepseekis invoked.
Impact Assessment
Successful exploitation permits arb ...[truncated 619 chars]
- An attacker compromises the npm publisher account, package, source repository, or
- Remediation
View remediation
Remediation Suggestions
- Pin the dependency to an explicitly reviewed version, such as an exact npm version rather than the registry's current release.
- Prefer a lockfile-backed, project-local installation over a global installation.
- Verify package integrity using a trusted digest, signed release artifact, provenance attestation, or equivalent cryptographic mechanism.
- For Homebrew, pin or otherwise verify the exact formula revision and downloaded artifact checksum. Avoid relying solely on a mutable third-party tap.
- Review npm lifecycle scripts and Homebrew formula installation logic before use. Disable lifecycle scripts during installation when they are unnecessary.
- Run the CLI as an unprivileged user inside a sandbox or container with access restricted to the required workspace.
- Do not expose unrelated repositories, SSH keys, cloud credentials, or API tokens to the interactive tool.
- Document the trusted package publisher, expected version, checksum, and verification procedure directly in the skill.
