Trivy under attack again: Widespread GitHub Actions tag compromise secrets
TL;DR Highlight
Attackers force-pushed 75 Trivy Action tags to steal CI/CD secrets
Who Should Read
Backend or DevOps engineers whose CI/CD pipelines reference GitHub Actions by version tag
Core Mechanics
- 75 of 76 tags were rewritten
- Version tags in aquasecurity/trivy-action were force-pushed to malicious commits.
- No branch push or new release was made, so nothing showed in commit history or notifications.
- Only 0.35.0 was clean.
- Malware runs first, then the real scan
- Lines 4-105 of the 204-line entrypoint.sh were an infostealer.
- Lines 106-204 were the legitimate Trivy scan, so users saw normal output.
- Secrets taken from runner memory and files
- It dumped Runner.Worker process memory and searched for "isSecret":true patterns.
- It targeted SSH keys, AWS/GCP/Azure credentials, and Kubernetes service account tokens.
- Self-hosted runners ran a separate filesystem credential stealer.
- Spoofed commit metadata hid the change
- Author, dates, and messages were cloned from the original commits, but the parent was master HEAD.
- The original GitHub GPG signature can't be recreated, so malicious commits are unsigned.
- Releases showed "0 commits to master since this release" as a warning sign.
- The Immutable badge wasn't proof of safety
- Compromised releases still showed an Immutable badge.
- GitHub guidance says pinning to a full commit SHA is the only truly immutable option.
- Root cause: non-atomic secret rotation
- Credentials were rotated after the early-March breach, but not atomically.
- Maintainers said the attacker may have had access to newly issued credentials.
- That access allowed force-updating tags.
Community Reactions
- Opinion that GitHub should enforce immutable versions for Actions
- The argument is that this would prevent this class of attack.
- Opinion that an old GitHub setting could have prevented tag overwrites
- The commenter noted infrastructure was compromised in a way a simple setting could have stopped.
- Experience with security scanners demanding broad access
- One commenter said security teams ask for full code or cloud access for each new scanner.
- Another said they run such tools in sandboxes to limit blast radius.
- Information that Docker Hub images were also compromised on March 22
- Images 0.69.5 and 0.69.6 were published; a commenter suggested the attackers persisted through two rotations.
- Opinion criticizing use of third-party Actions without hashes
- The commenter suggested writing the script yourself.
- They conceded it doesn't help if the underlying CLI is compromised.
How to Apply
- Pin external Actions to SHAs
- Today, grep .github/workflows for `uses:` lines pinned to tags.
- Replace each tag with the full commit SHA and keep the version as a comment.
- For trivy-action, first check whether you used any tag other than 0.35.0.
- Rotate secrets if you used trivy-action
- If workflows ran during the exposure window, revoke and reissue all secrets injected into those runners.
- Prioritize AWS/GCP/Azure keys, Kubernetes tokens, and SSH keys.
- Invalidate the old value first, then issue the new one.
- Minimize CI secret scope and check for traces
- Reduce permissions and injected secrets per workflow to what's needed.
- Search logs for connections to scan[.]aquasecurtiy[.]org.
Try It
# Run in a terminal (shell): find external Actions not pinned to a SHA
grep -rnE 'uses:\s*[^./][^@]+@' .github/workflows | grep -vE '@[0-9a-f]{40}'
# Show where trivy-action is used
grep -rn 'aquasecurity/trivy-action' .github/workflows
# Search for the malicious domain in downloaded logs
grep -rn 'aquasecurtiy' . 2>/dev/nullTerminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques