T08 · Insecure Dependencies
- Location
SKILL.md:195- Finding
Unpinned Installation of an Executable Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 195; the same installation pattern also appears at lines 144 and 162
Vulnerability Type: Supply-chain risk caused by a mutable dependency version
Risk Level: MediumVulnerable command:
shell go install golang.org/x/vuln/cmd/govulncheck@latestTechnical Analysis
The Skill instructs users or Agents to install
govulncheckusing the mutable@latestversion selector. Although the referenced module is the official Go vulnerability scanner, this installation method does not pin the downloaded source to a specific reviewed release.Consequently, the code installed at execution time can differ from the code available when the Skill was audited. If the upstream module, publishing process, source repository, or module-distribution infrastructure is compromised, a malicious future release could be selected automatically. The resulting executable would subsequently run as part of the documented vulnerability-scanning workflow.
This is a supply-chain weakness rather than evidence that the current upstream package is malicious.
Attack Path
- An attacker compromises the upstream repository, release process, maintainer account, or relevant module-distribution channel.
- The attacker publishes a malicious version that becomes the version resolved by
@latest. - A user or Agent follows the Skill instructions and runs the unpinned installation command.
- The Go toolchain downloads and builds the attacker-controlled version.
- The documented workflow later invokes the installed
govulncheckbinary. - The malicious binary executes with the permissions and environmental access of the Agent or user running the scan.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the account that installs and invokes the scanner. The accessible scope could include source repositories, files readable or writable by ...[truncated 403 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an explicit, reviewed release:shell go install golang.org/x/vuln/cmd/govulncheck@vX.Y.Z - Record the approved version in the Skill documentation and update it only through a controlled review process.
- Verify the selected version against the official Go vulnerability-scanner release information before adoption.
- Retain Go checksum-database verification and avoid disabling module-integrity protections such as
GOSUMDBwithout a justified private-module configuration. - In managed environments, distribute the scanner through a trusted internal artifact repository and verify its provenance or digest before execution.
- Apply the pinned command consistently at all documented occurrences, including lines 144, 162, and 195.
- Run the scanner with least privilege and avoid exposing unrelated credentials or sensitive environment variables to the scanning process.
- Replace
