>We used a separate GitHub App for local development and testing. It was installed on two of our own repositories and had more permissions than it needed, including permission to change deployment environments. Acting as that app, the attacker pushed a commit to one of those repositories and tagged it as a release. Our production environment trusted release tags, so their code ran in our CI with access to our production credentials, and the attacker copied them.
How did the attacker act as the app? How did the attacker gain access to the app credentials?
I wonder which audits would have uncovered this over-permissioning. Certainly not ISO 27001 or SOC 2 as I've seen them done.