Trivy Ecosystem Supply Chain Compromise
A threat actor compromised the Trivy ecosystem supply chain by publishing malicious releases of Trivy binaries, container images, and GitHub Actions to steal credentials, with observed impacts including exfiltration to attacker-controlled infrastructure and public repositories.
What's new
- 1. new vendor Aug 12, 08:35 via the-hacker-news
On March 19 and 22, 2026, a threat actor compromised the Trivy ecosystem by leveraging compromised credentials. This resulted in the publication of malicious releases, including Trivy v0.69.4 binaries and container images, v0.69.5 and v0.69.6 DockerHub images, and malicious versions of the aquasecurity/trivy-action and aquasecurity/setup-trivy GitHub Actions. The attacker injected an infostealer into the GitHub Actions to collect secrets. The malicious code targeted SSH keys, AWS/GCP/Azure credentials, Kubernetes tokens, Docker configs, .env files, database credentials, and cryptocurrency wallets. This attack affected users who utilized the compromised versions within specific exposure windows and highlights the risks associated with supply chain vulnerabilities in widely used security tools. The incident underscores the importance of immutable releases, dependency verification, and robust credential management practices.
Attack Chain
- The attacker gained unauthorized access to credentials used to manage the Trivy project's GitHub repository and Docker Hub account.
- The attacker pushed a malicious commit (
1885610c) to the Trivy repository, which swapped theactions/checkoutreference to a malicious commit (70379aad). This malicious commit contained a composite action to download Go source files from a typosquatted domain (get.trivy.dev). - The attacker tagged the malicious commit as
v0.69.4, triggering the automated release pipeline. - The malicious release was distributed across various Trivy distribution channels, including GitHub Releases, GHCR, ECR Public, Docker Hub, deb/rpm packages, and
get.trivy.dev. - For the
trivy-actionGitHub Action, the attacker force-pushed 76 of 77 version tags to malicious commits, injecting an infostealer intoentrypoint.sh. - The infostealer collected secrets by dumping process memory and sweeping the filesystem for sensitive files and credentials.
- The stolen data was encrypted using AES-256-CBC with RSA-4096 hybrid encryption.
- The encrypted data was transmitted to attacker-controlled infrastructure. As a fallback, if exfiltration failed and
INPUT_GITHUB_PATwas set, the attacker created a public repository namedtpcp-docson the victim's GitHub account and uploaded the stolen data as a release asset.
Impact
The Trivy supply chain compromise had a critical impact, potentially exposing sensitive credentials and secrets of numerous users and organizations that rely on Trivy for security scanning and vulnerability management. While the exact number of victims remains unknown, the widespread use of Trivy binaries, container images, and GitHub Actions suggests a broad potential impact. Successful exploitation could lead to unauthorized access to cloud environments, data breaches, and other security incidents. The creation of public tpcp-docs repositories on victim's GitHub accounts serves as a clear indicator of successful exfiltration and data compromise.
Recommendation
- Upgrade to a known-safe version of Trivy (v0.69.2 or v0.69.3) and the
trivy-action(v0.35.0) andsetup-trivy(v0.2.6) GitHub Actions as listed in the advisory. - Rotate all potentially exposed secrets accessible to affected pipelines if there is any possibility that a compromised version of Trivy ran in a project's environment as stated in the overview.
- Audit GitHub Action references in all workflows using
aquasecurity/trivy-actionoraquasecurity/setup-trivy, checking workflow run logs from March 19–20, 2026 for signs of compromise, and search for repositories namedtpcp-docsin your GitHub organization, as described in the "Recommended Actions" section. - Block the domain
get.trivy.devat the network perimeter to prevent access to potentially malicious resources served from the typosquatted domain, based on the "Attack Details" section.
Detection coverage 2
Detect Public Repository Creation After Trivy Compromise
highDetects the creation of a public repository named `tpcp-docs` on GitHub, potentially indicating successful secret exfiltration following the Trivy supply chain compromise.
Detect Outbound Connection to Typosquatted Trivy Domain
mediumDetects network connections to the typosquatted domain get.trivy.dev, which was used to serve malicious Go source files during the Trivy supply chain compromise.
Detection queries are available on the platform. Get full rules →
Indicators of compromise
1
domain
| Type | Value |
|---|---|
| domain | get.trivy.dev |