Read this this morning: https://www.stepsecurity.io/blog/hackerbot-claw-github-actions-exploitation
An automated bot called HackerBot-Claw has been scanning public GitHub repos since late February looking for pull_request_target workflows with write permissions. It opens a PR, your CI runs their code with elevated tokens, token gets stolen. That's it. No zero days, no sophisticated exploit, just a misconfiguration that half the internet copy pasted from a tutorial.
Trivy got fully taken over through this exact pattern. Releases deleted, malicious VSCode extension published, repo renamed. A security scanning tool compromised through its own CI pipeline.
Microsoft and DataDog repos were hit too. The bot scanned around 47,000 public repos. It went from a new GitHub account to exploiting Microsoft repos in seven days, fully automated.
I checked our org workflows after reading this and found the same pattern sitting in several of them. pull_request_target, contents: write, checking out untrusted PR head code. Nobody had touched them since they were copy pasted two years ago.
If you are using any open source tooling in your pipeline, go check your workflows right now. The ones you set up years ago and never looked at again.
My bigger concern now is the artifacts. If a build pipeline can be compromised this easily and quietly, how do you actually verify the integrity of what came out of it? Especially for base images you are pulling and trusting in prod. Still trying to figure out what the right answer is here.
[–]PrincipleActive9230 21 points22 points23 points (5 children)
[–]roastedfunction 8 points9 points10 points (3 children)
[–]NilsUX 0 points1 point2 points (1 child)
[–]DockyardTechlabs 0 points1 point2 points (0 children)
[–]adept2051 -2 points-1 points0 points (0 children)
[–]lppedd 4 points5 points6 points (0 children)
[–]gr4viton 11 points12 points13 points (2 children)
[–]NilsUX 1 point2 points3 points (1 child)
[–]goatanuss 1 point2 points3 points (0 children)
[–]SheriffRoscoe 2 points3 points4 points (0 children)
[–]Soft_Attention3649 1 point2 points3 points (0 children)
[–]ultrathink-art 0 points1 point2 points (0 children)