loopback
← All posts

News / Security / Source code / Recovery

GitHub CI Secret Theft: What Aikido Found

By Loopback 3 min read

Flat monochrome illustration: a GitHub repository terminal beside a CI build machine, credential key and cloud service.

A stolen developer account can put more than source code at risk. A build job may also have permission to publish software or access cloud services. Aikido's November 12 report describes a campaign it calls wfx-loot, which began on November 10 and used stolen GitHub credentials to reach CI workflows.

What Aikido counted

Aikido reports 4,837 compromised accounts opening probe pull requests in 61,764 repositories. That is the probing footprint, not a count of successful payload executions. Its opening summary says at least 1,835 repositories ran the payload and had credentials exfiltrated. A later section instead reports execution indicators in at least 1,806 repositories. The report does not reconcile those figures. Both figures remain attributed to Aikido. Loopback has not independently counted thefts.

Package exposure also needs qualification. Aikido identifies github.com/onuragtas/docker-env versions v1.0.278 and v1.0.280, but says their payload sits only in a GitHub Actions workflow. It reports unchanged Go source and release binaries. A normal Go build does not run that workflow, so those tags do not establish compromise of every module consumer.

Why CI secrets can reach beyond GitHub

Continuous integration runs code on behalf of a project. The permissions granted to that job determine what it can do outside the repository. A release process might need to upload a package, while a deployment job might need to change a cloud workload. Those are separate privileges even when the same repository controls both jobs.

GitHub's security guidance recommends minimum permissions for workflow tokens and other credentials. It also warns that automatic masking cannot guarantee that secrets stay out of logs. A concealed value in the interface is not evidence that the running job cannot use it. GitHub recommends auditing how workflows handle secrets and rotating exposed credentials.

For an affected project, the investigation should produce an inventory of the access available to each suspect job. Record which identity it used, which services accepted that identity, and when the run occurred. Use that inventory to test the scope of access. Evidence of an available permission alone cannot show that an attacker used it or breached a connected cloud account.

Flat monochrome illustration: a repository notebook and CI terminal beside an old credential key and its replacement.
Repository cleanup and credential replacement need separate checks.

Recovery needs more than a reverted commit

NIST's incident-response guidance treats containment, eradication and recovery as distinct activities. Removing malicious code addresses one part of an intrusion. Responders must also address compromised accounts, persistence and affected systems, then verify recovery. Applied to a CI incident, that means the repository review and the identity review need their own results.

Record why the workflow was unauthorized and which credentials it could use. Track the response to each credential separately. Cloud audit records can then help establish whether anyone used those identities. If logs are missing, record the gap. The absence of a retained log cannot settle what a job did, and a repository probe alone cannot establish that secrets left the runner.

Keep the cleanup record precise enough for another maintainer to check. List the revoked access and the tests of replacement credentials, with unresolved cloud permissions assigned to an investigator. A successful build answers whether the project builds again. Closing the incident also requires evidence about the access still available to the attacker. The same distinction appears in our report on persistence after application patching.

Sources