T08 · Insecure Dependencies
- Location
SKILL.md:38- Finding
Unpinned External Tool Installations Permit Mutable Supply-Chain Code Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 38-51
Vulnerability Type:T08: Insecure Dependencies
Risk Level: Mediumbash # Or use Go go install github.com/gitleaks/gitleaks/v8@latestbash # Or use Docker docker pull trufflesecurity/trufflehog:latestTechnical Analysis
The installation instructions use the mutable
latestidentifier for both a Go module and a Docker image. Because these identifiers can resolve to different artifacts over time, the code ultimately installed or executed may differ from what was reviewed when the Skill was published.This behavior is related to the Skill's declared secret-scanning functionality, but mutable references are not the minimum-risk mechanism needed to install the scanners. Exact versions and immutable image digests would provide the same functionality while reducing supply-chain exposure.
Attack Path
- An attacker compromises an upstream release process, maintainer account, package registry, or container registry.
- The attacker publishes a malicious artifact under a version selected by
@latestor replaces the image referenced by thelatesttag. - A user follows the documented installation command.
- The package installer or container runtime downloads the attacker-controlled artifact.
- The malicious artifact executes with the permissions available to the invoking user or container environment.
Impact Assessment
A compromised Go tool can execute with the local user's privileges when invoked. A compromised container image can access any files, environment variables, credentials, sockets, or network resources explicitly exposed to the container. Potential consequences include source-code theft, secret exfiltration, repository modification, and further compromise of the developer or CI environment. The precise scope depends on the invoking user's privileges and container configuration.
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith a reviewed, exact Gitleaks version. - Replace the Docker
latesttag with a reviewed image digest, such asimage@sha256:.... - Verify release signatures or checksums before installation where supported.
- Document expected publishers and official distribution channels.
- Use automated dependency-update tooling to propose version changes for review rather than resolving mutable versions during installation.
- Run scanners with only the filesystem and network access required for repository analysis.
- Replace
