r/devsecops • u/ToddGergey • 8h ago
On a persistent self-hosted runner, a malicious workflow gets more than its own job's secrets
Disclosure: I work at Bitrise, which sells managed CI runners. The write-up linked at the bottom covers the self-managed options too, and everything below applies whatever you run.
In the GitHub account hijacking campaign that started on November 10, Aikido counted at least 1,806 repos that ran a script built to collect secrets and cloud credentials from the runner. The attacker reverted each change within about a minute and deleted the run and its logs, so a skipped run number is often the only trace.
On any runner, that script gets what the job gets: Actions secrets, GITHUB_TOKEN, and whatever cloud roles the workflow can assume through OIDC. A fresh VM doesn't change that.
A persistent runner adds everything earlier jobs left on the disk. After a few months that tends to include cloud credentials from deploy jobs, registry tokens in package manager configs, signing keys in the keychain, shell history, and checkouts from every repo that used the machine. If an org-level runner serves both your open-source SDK and your main app, a malicious workflow in the SDK repo can read the app's store publishing key.
It also makes cleanup harder. With the logs gone, you can't show the machine wasn't modified, so the safe answer is to reimage it.
--ephemeral and just-in-time runners take one job and then deregister, but they don't touch the machine. You still need something that throws the VM away after each job.
Write-up, with a checklist for teams keeping their current runners: https://bitrise.io/blog/post/github-actions-self-hosted-runner-security?utm_medium=organic_social&utm_source=reddit&utm_campaign=bh_blog-article_self-hosted-runner-security_all_2026-12-03&utm_content=r-devsecops