Trivy ecosystem supply chain briefly compromised
TL;DR Highlight
Incomplete credential rotation let attackers swap Trivy releases and Action tags for malware.
Who Should Read
A DevOps or backend developer who runs image scans in CI with trivy-action or setup-trivy referenced by tag.
Core Mechanics
- Malicious release and tag hijack on Mar 19
- An attacker with stolen credentials published a malicious Trivy v0.69.4.
- 76 of 77 trivy-action tags were force-pushed to malicious commits.
- All 7 setup-trivy tags were replaced with malicious commits.
- DockerHub images poisoned on Mar 22
- Malicious v0.69.5 and v0.69.6 images were pushed to Docker Hub.
- Separately compromised Docker Hub credentials were used, and no GitHub tag or release existed.
- Root cause was non-atomic rotation
- The incident continues an attack that began in late February 2026.
- Credentials were rotated after the Mar 1 disclosure but not revoked all at once.
- A valid token may have exfiltrated newly rotated secrets during the multi-day window.
- The malware went after CI secrets
- It ran before the real scan and dumped Runner.Worker process memory.
- It swept 50+ paths for SSH keys, AWS/GCP/Azure credentials, K8s tokens and .env files.
- If exfiltration failed and INPUT_GITHUB_PAT was set, it created a public tpcp-docs repo on the victim's account.
- Exposure windows and safe versions are defined
- trivy v0.69.4 was exposed ~3 hours, trivy-action ~12 hours, setup-trivy ~4 hours.
- Safe versions are trivy v0.69.2/v0.69.3, trivy-action v0.35.0, setup-trivy v0.2.6.
- v0.69.3 and 0.35.0 were protected by GitHub immutable releases.
- SHA pinning and source builds were unaffected
- Pinning to a safe commit SHA avoided the problem.
- Trivy built from source and the official homebrew formula were not affected.
- trivy-action pinned to a SHA before 2025-04-09 could still pull a malicious setup-trivy.
Community Reactions
- Commenters objected to the 'supply chain attack' wording
- One view was that Aqua controlled the compromised components, so the term borrows undeserved sympathy.
- Others said 'briefly' is inaccurate.
- Many saw it as a follow-up to an earlier breach
- One commenter said Trivy should have reassessed risk fully and isolated credentials after the first incident.
- Another argued the short gap suggests the attacker persisted.
- Commenters shared spread and ongoing-status info
- A link described the attack spreading as CanisterWorm across 47 npm packages.
- Socket's founder shared a technical analysis, and others said Trivy is still compromised.
- Pinning to SHAs was repeated advice
- Commenters said using tags over hashes in 2026 is baffling.
- One asked how anyone can revoke all credentials across services simultaneously.
How to Apply
- Grep your workflows for trivy references today
- Search repos for aquasecurity/trivy-action and setup-trivy to find tag references.
- Check run logs from Mar 19-20 if you have them.
- Also search your org for tpcp-docs repositories.
- Pin Action references to full commit SHAs
- Replace tags in uses lines with the 40-character SHA of a safe version.
- If you need a version below 0.35.0, check the commit behind the v-prefixed tag.
- Rotate all secrets if exposure is possible
- Treat every secret reachable by a pipeline that may have run a malicious version as leaked.
- Revoke them all at once, leaving none behind.
- Verify installed trivy with cosign
- Run cosign verify on v0.69.2 or v0.69.3 binaries and images.
- Reference images by digest instead of tag.
Try It
# Run in shell at repo root. Quick check for tag-referenced trivy Actions
grep -rnE 'aquasecurity/(trivy-action|setup-trivy)@' .github/workflows | grep -vE '@[0-9a-f]{40}' || echo 'no tag references'
# Check whether your org has tpcp-docs repos (needs gh CLI; {{ORG}} is your org name)
gh repo list {{ORG}} --limit 1000 | grep tpcp-docs || echo 'no tpcp-docs'Terminology
Related Papers
Gemini 4 Neon is the new #1 on the Models Engineering Index
Gemini 4 Neon ranks first on the Models Engineering Index with 68.0, combining multiple benchmarks.
LLMs can read and write executables byte by byte from a hex dump
Given only a hex dump and no tools, an LLM analyzed, patched and wrote working executables.
Claude was trained on protein sequences at scale
Next-amino-acid tests on obscure proteins show only the latest Claude models predict them
Remembered as Brief: Stored Preferences SilentlyRemove Decision-Critical Information
A stored 'keep it short' preference silently drops warnings; listing must-know points first restores content.
All AI-generated code should be Open Source
A blog argues AI-generated code should be open source; most HN commenters disagreed.
What thousands of conversations look like inside a language model
Mapping Qwen3-1.7B states showed Chinese sitting apart from English, while German and Croatian overlapped it.
AI, activity, and outcomes in software engineering
AI sped up writing code, but shipping speed did not rise as much, says a talk
LLMs Play Zachtronics' TIS-100
16 LLMs played TIS-100 and set 133 new Pareto frontier points across 18 puzzles
Related Resources
- https://github.com/aquasecurity/trivy/security/advisories/GHSA-69fq-xp46-6x23
- https://www.aquasec.com/blog/trivy-supply-chain-attack-what-you-need-to-know/
- https://docs.github.com/en/actions/reference/security/secure-use#using-third-party-actions
- https://socket.dev/blog/trivy-under-attack-again-github-acti...
- https://it.slashdot.org/story/26/03/22/0039257/trivy-supply-...