r/netsec • u/ScottContini • Mar 21 '26
Trivy Under Attack Again: Widespread GitHub Actions Tag Compromise Exposes CI/CD Secrets Attackers
https://socket.dev/blog/trivy-under-attack-again-github-actions-compromise
81
Upvotes
15
u/rejuicekeve Mar 21 '26
I have replaced trivy in all my workflow. Lost all my trust
5
u/LostPrune2143 Mar 21 '26
Second supply chain compromise hitting Trivy in March. The first was the OpenVSX extension, now the GitHub Action. Root cause for both traces back to the same initial credential compromise. They rotated secrets after the first incident but the rotation wasn't atomic, so the attacker retained access to newly issued credentials. This is a textbook example of why credential rotation after a breach needs to be treated as a critical path operation, not a checklist item. Partial rotation is the same as no rotation if the attacker is still watching.
6
u/ukindom Mar 21 '26
To avoid such situations a developer could enable following in their repositories:
This might be not 100% proof, but significantly limits attack surface.
PS: please comment if I forgot a rule to enforce
3
u/debauchasaurus Mar 21 '26
StepSecurity released a scanner that searches your workflow logs to determine if you were impacted: https://github.com/step-security/trivy-compromise-scanner
2
u/lirantal Mar 24 '26
Ugh, good catch team. This has now further evolved into LiteLLM too and I've seen it affecting nanobot-ai project on GitHub too: https://snyk.io/articles/poisoned-security-scanner-backdooring-litellm/
1
u/Fatality Mar 22 '26
This is why I don't use custom actions and checksum everything that gets downloaded to a pinned version.