Live data from Hacker News

Trivy under attack again: Widespread GitHub Actions tag compromise secrets

socket.dev

31–40 of 97 posts

Re: Trivy under attack again: Widespread GitHub Actions tag compromise secrets

#34
post #10

I always run such tools inside sandboxes to limit the blast radius.

The sandbox will need internet access (to update data) and you will need to send code to test into it; so compromise already equals leaking all your code, without even breaking the sandboxing

You only need internet access to grab the image, I don't think trivy requires internet access itself. All of my image scanning tools run in isolation.

Re: Trivy under attack again: Widespread GitHub Actions tag compromise secrets

#35
post #3

> On March 22, 2026, a threat actor used compromised credentials to publish a malicious Trivy v0.69.5 and v0.69.6 DockerHub images. ( https://github.com/aquasecurity/trivy/security/advisories/GH... ) So the first incident was on March 19th and the second incident is March 22nd —- evidently the attackers maintained persistence through maybe two separate credential rotation efforts.

As far as I understood it, their entire repo got pwnd in February, and this now is the third successful attack by the same actor.

Re: Trivy under attack again: Widespread GitHub Actions tag compromise secrets

#36
post #14
post #10

I always run such tools inside sandboxes to limit the blast radius.

I don't think it would help here, they were stealing credentials

> I don't think it would help here, they were stealing credentials

So, stealing credentials in the current directory and in all other directories are the same thing?

Re: Trivy under attack again: Widespread GitHub Actions tag compromise secrets

#38
"GitHub's own security guidance recommends pinning actions to full commit SHAs as the only truly immutable way to consume an action"

Why doesn't GitHub just enforce immutable versioning for actions? If you don't want immutable releases, you don't get to publish an Action. They could decide to enforce this and mitigate this class of issue.

Re: Trivy under attack again: Widespread GitHub Actions tag compromise secrets

#39
post #15
post #4

Friendly reminder that just because someone is building security software it doesn't mean they are competent and won't cause more harm than good. Every month the security team wants me to give full code or cloud access to some new scanner they want to trial. They love the fancy dashboards and lengthy reports but if I allowed just 10% of what they wanted we would be pwned on the regular...

I audited Trivy's GitHub Actions a while back and found some worrying things, the most worrying bit was in the setup-trivy Action where it was doing a clone of main of the trivy repo and executing a shell script in there. There was no ref pinning until somebody raised a PR a few months ago. So a security company gave themselves arbitrary code execution in everyone's CI workflows. Aqua were breached earlier this month…

It seems they did end up contracting with Sygnia
Post reply on HN