T08 · Insecure Dependencies
- Location
SKILL.md:31- Finding
Unpinned Third-Party Executable Dependencies
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:31-47
Vulnerability Type: Supply-chain exposure through mutable dependency versions
Risk Level: MediumVulnerable Code
bash # install the binary (or download a prebuilt release) go install github.com/liliang-cn/cortexdb/v2/cmd/cortexdb-grpc@latestbash npm install cortexdb-clientTechnical Analysis
The documented installation procedure retrieves the CortexDB gRPC binary using the mutable
@latestversion and installs the Node.js client without specifying a reviewed version. Consequently, the code installed by users can change after the skill itself has been audited.This creates a supply-chain trust gap: compromise of an upstream repository, package registry account, release pipeline, or transitive dependency could cause users to install code that was not included in this audit. Because installation and package lifecycle behavior occur with the invoking user's privileges, a compromised release could execute arbitrary code in that user's security context.
No evidence indicates that the current upstream components are malicious. The vulnerability is the absence of immutable version selection and integrity verification.
Attack Path
- An attacker compromises the upstream repository, npm publishing account, release pipeline, or a relevant dependency.
- The attacker publishes a malicious version as the latest release.
- A user follows the documented
go install ...@latestor unversionednpm installcommand. - The package manager retrieves the attacker-controlled release rather than the version originally reviewed.
- Malicious installation or runtime code executes with the privileges of the user running the agent or sidecar.
Impact Assessment
Successful exploitation could result in arbitrary code execution under the installing user's account. Depending on that account's permissions, the attacker could access agen ...[truncated 238 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith a reviewed, immutable CortexDB version or commit hash. - Pin
cortexdb-clientto an exact reviewed version rather than relying on the registry's current resolution. - Add and commit an npm lockfile with integrity metadata in an executable project distribution.
- Provide SHA-256 checksums or verified release signatures for prebuilt sidecar binaries.
- Use automated dependency scanning and controlled update procedures before changing pinned versions.
- Run the sidecar and agent under a dedicated, least-privileged operating-system account to limit the consequences of a dependency compromise.
- Replace
