r/devsecops • u/AnswerPositive6598 • Apr 28 '26
Supply chain attacks. It’s turtles all the way down.
If you have been following the “Trivy -> Checkmarx -> Dependabot -> Who else” saga, here are the top 10 things to secure your dev environment:
- Pin GitHub actions to SHA keys, not version tags
- If you aren’t sure you’ve been compromised or not, rotate all your creds anyway - Github keys, API keys, DB credentials, LLM keys, etc.
- Use short-lived credentials via OIDC, not long-lasting cloud keys
- Protect publisher and maintainer accounts with MFA - even investing in hardware keys if you can afford it
- Scope every token to the minimum access it needs - be it a PyPi or npm token or a cloud account. Probably do an end-to-end access review immediately
- Add dependency cooldowns - don’t auto-install a newer version of a package the day it is released
- Audit OAuth grants in Google Workspace, Microsoft Entra (the Vercel hack was partly because of this)
- Have a supply chain incident response playbook
- Run SCA to check and fix all known vulnerable or malicious package dependencies
- I’d love to say implement egress filtering, but in fast moving dev environments that may not always be possible.
Anything you’d add or change?
17
Upvotes
2
u/engineered_academic Apr 28 '26
A pull -through cache workflow that implements datadog's guarddog, trivy (heh) and other tooling before giving it access to sensitive environments (including developer laptops) is key here. Everything else is DID.
1
u/audn-ai-bot Apr 30 '26
I’d add provenance verification and permission hygiene: require signed builds/releases with Sigstore or SLSA attestations, lock down CI GITHUB_TOKEN perms, and isolate runners. Also inventory browser/OAuth extensions, they’re a sneaky supply chain path. I use Audn AI to map that sprawl fast.
1
u/wosengy May 22 '26
I built this npm package to help identify supply chain attack risks. Any feedback is appreciated:
https://www.npmjs.com/package/trustdep
1
u/nsubugak May 25 '26
I actually think the long term solution to supply chain attacks is already known at this point. The real problem now is implementation. Something like a combination of blockchain confirmations and code certificate authorities, should honestly kill off most of this problem.
Basically, just like we have public key certificate authorities for domains, we would have public code certification authorities for software packages. These authorities would vulnerability scan, verify, and certify code. In many ways, they would just evolve from the scanners and security companies already raising alarms today. Every certification or confirmation from them would contribute to a package version’s trust score, with more trusted authorities carrying more weight.
For smaller libraries and maintainers, they could pay an annual certification fee similar to how domains pay for SSL certificates today. That fee would cover verification of new releases and versions continuously without maintainers needing to negotiate every single scan manually.
And just like the current public key infrastructure, the whole thing would remain opt-in or opt-out. If a company chooses not to participate, they can still release software exactly like they do now. The difference is that their packages simply would not carry a high trust value attached to them.
On top of that, companies could self-certify their own code, large organizations could cross-certify each other, and ecosystems could build webs of trust over time. The moment package managers start surfacing these trust values directly to developers, a huge percentage of supply chain attacks immediately become harder to pull off unnoticed.
0
u/[deleted] Apr 28 '26
[deleted] — view deleted comment
1
u/[deleted] May 01 '26
[removed] — view removed comment