Skip to content

Defender Daily

Attacker used stolen GitHub tokens to steal CI secrets, Aikido says

Starting Nov 10, an attacker used stolen GitHub credentials to push a script that steals GitHub Actions secrets and cloud credentials, Aikido says. It counted 4,837 compromised accounts opening probe pull requests in 61,764 repositories, and the script ran in more than 1,800 of them. Automated publishing also carried it into a Packagist package and a Go module. Aikido calls the campaign wfx-loot and says settings in the script suggest it may also run in private repositories.

For each repository a token can write to, the attacker first opens a pull request titled “docs: dependency audit notes” from a wfx-docs branch to confirm access. It then pushes the script by adding about 1,500 lines to an existing workflow, adding an npm postinstall hook or creating a workflow on a throwaway branch. Within a minute it reverts the change and deletes the workflow run and its logs, so a missing run number is often the only trace.

The script collects Actions secrets and variables, the workflow’s tokens, cloud and SSH credential files, shell histories and tokens for AI tools. It uses them to get into AWS, Google Cloud and Azure, where it can create long-lived AWS access keys and impersonate Google Cloud service accounts. In this campaign it sent data only by HTTP POST to two attacker servers, so the absence of wfx-loot artifacts doesn’t mean nothing was taken, Aikido says.

Three changes are built to outlast credential rotation. The script posts forged passing status checks that clear branch protection and rewrites a chained AWS role’s trust policy to accept any AWS account. It also adds federated identity credentials whose names start with wfx-ci- to Entra ID applications, so any workflow in the repository can sign in to Azure without a secret.

Aikido says any machine that installed or opened version 3.14.3 of the Packagist package digitalelvis/neuronai-studio should be treated as compromised. In the Go module, two tags hold the script only in a workflow file, which Go builds never run. At least 50 compromised users appear to publish packages for npm, Go, Packagist, PyPI or crates.

Accounts hit by October’s GhostAction campaign were more likely than others to be hit, and in more than 100 repositories the script went into GhostAction’s own workflow files. Aikido still assesses that the two are distinct campaigns likely run by different actors, since their infrastructure, tooling and tradecraft differ. It doesn’t say how the attacker got the tokens.

Vendors
GitHub, Amazon Web Services, Microsoft

What to do

8 steps

Indicators

IPs copy defanged. Use Copy raw for queries.

IP addressExfiltration server that receives stolen data by HTTP POST on port 8080
IP addressSecond exfiltration server, also on port 8080
SHA-256The stealer shell script

Timeline

  1. Nov 10Probe pull requests start at about 7:45 a.m. ET, Aikido says.
  2. Nov 11Aikido publishes its report at 8:45 p.m. ET.

Sources

Subscribe

Get the Daily Brief by email

Weekdays at 7am ET.

We’ll email you a link to confirm. Unsubscribe from any email.