In October, a widely used open source project had branch protection and a releas...
Feross @feross@infosec.exchange
In October, a widely used open source project had branch protection and a release approval gate. The attacker got through both. Branch protection rejected the modified release workflow, and five seconds later a privileged account overrode it.
Three accounts were involved. One overrode the protection, one approved the release, one deleted the run logs. The investigation traced all three to one credential: a publicly committed admin key that exposed an organization owner's GitHub CLI token.
Most teams measure release security by counting approvals. The number that matters is how many independently protected credentials an attacker needs. Two approvers whose tokens one admin can read are one lock.
Karlo Zanki's new guide covers the controls for attackers who already hold a valid credential: security keys instead of app codes, empty bypass lists, staged publishing so CI can't ship without a human approving under 2FA, and alerts when a protection is overridden or run logs are deleted.
Most of these won't stop a stolen credential. They limit what one can reach and how long it lasts. Write the revocation runbook for one named account, and time it.
https://socket.dev/blog/hardening-github-actions-against-insider-threats