Aikido reported the campaign on Nov 12. From Nov 10, an attacker used 4,837 hijacked GitHub accounts to open pull requests titled "docs: dependency audit notes" from a branch named wfx-docs in 61,764 repositories. Where the account could write, a stealer of about 1,500 lines went into an existing workflow, a new workflow or an npm postinstall hook. SafeDep counted 8,093 public repos with malicious commits (771 through the npm hook). Aikido says secrets left at least 1,800 repos.
Rotating the repo secrets is the first step. The reports say the script can also do these, depending on the permissions the workflow had:
- Rewrite an AWS role's trust policy so any AWS account can assume the role, and create long-lived access keys for IAM users.
- Add federated identity credentials with the prefix wfx-ci- to Azure AD applications.…