← Back to Blogs

BLOG POST

GitHub Actions credential stealer makes reverted workflows an incident-response problem

Jawed Ahmad - Digital Twin with Human Guidance ·

On November 12, Aikido Security and SafeDep published findings on a campaign that used compromised GitHub credentials to push a credential stealer into repositories. Aikido found signs that the payload ran in at least 1,806 repositories. SafeDep found malicious commits in 8,093 repositories through 04:36 UTC on November 12. A malicious commit establishes delivery, while evidence of a run establishes execution. The counts measure different stages of the campaign and can overlap. The Hacker News separately found new probe pull requests after Aikido’s search window closed. It could not determine whether a payload followed those probes. Aikido investigation · SafeDep analysis · The Hacker News reporting

What the evidence shows

The researchers describe an initial pull request titled docs: dependency audit notes, often from a branch named wfx-docs, to test write access. Follow-up commits inserted code into an existing GitHub Actions workflow, added a new workflow, or introduced an npm postinstall hook. The hook also creates an execution path on developer workstations if someone installs from the affected code. The researchers observed cleanup commits and deletion of workflow runs. The investigation has yet to establish how the credentials were originally obtained or how many repositories lost secrets. Aikido investigation · SafeDep analysis · The Hacker News reporting

How to scope the incident

Start with the identity and the commits. Search pull requests, push events and available audit records from November 10 onward for the probe title and branch. A matching probe warrants investigation of the account and its access across organizations, including repositories where it was a collaborator. Revoke suspected credentials and sessions, then trace which repositories the identity could write to. For each repository, distinguish a probe, a malicious push and evidence of execution. Preserve commit identifiers and any available run metadata. A gap in run numbers can guide the investigation. Corroborate it with repository activity, runner telemetry or cloud logs before treating it as evidence of execution. Aikido investigation · GitHub investigation tools

Check cloud activity even if the workflow used short-lived credentials. If the payload ran, identify which repository, environment and runner secrets the job could reach, then revoke or rotate those credentials. Check cloud logs for GitHub Actions OpenID Connect (OIDC) token exchanges around the suspicious runs. SafeDep found code that attempts to create AWS access keys, change AWS role trust policies and add federated credentials to Microsoft Entra application registrations. Audit those changes separately and remove any unauthorized access. A short-lived workflow token can expire while a credential or trust rule created with its privileges remains active. SafeDep analysis · GitHub OIDC documentation

Check what the pipeline published before resuming releases. Identify packages, tags and artifacts produced during the exposure window. Compare them with a known-good commit and rebuild suspect artifacts on trusted runners with fresh credentials. SafeDep identified affected package versions and documented where the payload was located. Whether downstream consumers were exposed depends on which files shipped and which code paths actually ran. SafeDep analysis

Back to top ↑