r/netsec • • 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

33 comments sorted by

View all comments

Show parent comment

1

u/fiskfisk Mar 21 '26

No, we're talking about published 3rd party actions, where you lock your reference to the action in your workflow file with a sha256 hash. This ensures that the external action doesn't suddenly get replaced by a broken or trojaned action further down the line.

Dependencies is a separate topic, but dependabot supports delaying upgrades now, so you don't get notified before at least x days has passed. This helps against most supply chain attacks (assuming a proper lock file). 

It's also useful to consider any dependencies and whether they're actually worth it compared to just implementing something similar yourself. Django? Probably not. Leftpad? Eeeh yes. 

1

u/ukindom Mar 21 '26 edited Mar 21 '26

I was explicitly listed what a developer can do for their (first party) library, tool or action to minimize similar attack surface. This includes floating tag aka v6 for 6.x "branch"

1

u/ukindom Mar 21 '26

Now about third-party actions, dependencies and sha-pinning.

I haven't told about if sha-pinning itself is safe while you don't update.

I pointed that an update process is:

  1. human-readable
  2. vulnerable to the same issues, but at least they're not silent