⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

PolinRider GitHub Pull-Request Campaign Turned CircuitVerse Builds Into Malware Delivery | Alireza Bolbolabadi - Red Team Security
LOADING

PolinRider GitHub Pull-Request Campaign Turned CircuitVerse Builds Into Malware Delivery

Executive summary

The PolinRider campaign represents a significant software supply-chain attack that used GitHub pull requests as an execution and distribution surface. The suspended account Eternity0207 force-pushed rewritten commits into open pull requests affecting AsyncAPI Generator, CircuitVerse and Open Food Facts. The changes copied commit metadata from legitimate signed commits, concealed payloads behind long runs of tab characters and were periodically replaced with clean revisions.

The attack did not depend on npm lifecycle hooks such as preinstall or postinstall. Instead, PolinRider could execute through ordinary package.json build commands, configuration files loaded by Jest or PostCSS, or a concealed Visual Studio Code task. This made the malicious revisions relevant even to developers and organizations that had disabled npm install scripts.

CircuitVerse recorded the clearest downstream impact. Ten poisoned pull requests reached workflows without fork-review approval, including a release build for Windows, Linux and macOS. Maintainers subsequently removed 40 infected installers. AsyncAPI Generator prevented execution by requiring maintainer approval for fork workflows, while Open Food Facts had four poisoned builds fail and rotated a secret after the incident.

The campaign may have reached much farther. The source reports that GitHub code search returned 2,776 package.json files with the same hook and that 576 of 622 checked repositories contained the loader across 311 accounts. These figures describe repository-level detection at the time of reporting, not a confirmed count of compromised installations or successfully stolen credentials.

How the pull-request attack worked

The attacker first needed a compromised GitHub account and the ability to open pull requests, force-push branches and alter repository files. The malicious commits were injected while pull requests remained open. Each rewritten commit reused the message and date of a clean, signed commit but used a different committer name, reducing the visibility of the discrepancy during review.

At AsyncAPI, a malicious revision remained on the attacker’s branch for approximately 30–40 minutes before a force-push replaced it with a clean version. That sequence allowed CI or a developer tool to encounter the poisoned revision while the final pull-request diff eventually appeared clean. The important security boundary was therefore the tested commit revision, not the final state of the branch.

The malicious content was also designed to be difficult to see in GitHub’s rendered diff. In api.js, the payload followed 315 tab characters on a single line. Similar content appeared after the final statement in jest.config.js and postcss.config.js, behind roughly 300 additional tabs. The rendered result could look like whitespace or an empty line even though the raw file contained executable code.

Three execution paths

PolinRider used three separate ways to reach a build or developer environment:

  1. Build and development scripts: The attacker added a node api.js && prefix to commands in package.json. A common build or development operation could then launch the loader without relying on an npm install hook.

  1. Tool configuration: A poisoned Jest or PostCSS configuration could load the malicious code when the relevant tool initialized.

  1. Visual Studio Code tasks: A hidden task named eslint-check could execute a deceptive file named fa-solid.lkf when the repository folder was opened.

This design expanded the exposure beyond continuous-integration systems. A contributor could encounter the payload while running a normal project command or opening the repository in an editor, even if no package had been installed and no artifact had been downloaded.

CircuitVerse became a distribution channel

CircuitVerse’s workflows were the most consequential affected surface described in the source. CI ran the loader on 10 poisoned pull requests because those workflows did not require maintainer approval. The execution included a release build for Windows, Linux and macOS.

As a result, 40 installers were published with the loader embedded in the build process. Maintainers later deleted them. The incident therefore extended beyond repository contamination: the attack crossed the trust boundary between an unmerged external contribution and a release artifact offered to users.

The available intelligence does not state how many people downloaded the installers, whether any user executed the later stages, or how many credentials were stolen. The confirmed facts are that infected installers were published and subsequently removed.

AsyncAPI and Open Food Facts

AsyncAPI Generator did not run the payload because its fork workflows required maintainer approval. That control broke the path between an attacker-controlled pull request and CI execution. Maintainer Lukasz Gornicki nevertheless opened heads-up issues on November 25 in eight projects, including Meshery, Jitsi Meet, Jaeger, stdlib and PipeCD, indicating possible contamination or exposure that required review.

The warnings do not prove that CI executed the loader in those additional projects or that their users received malicious artifacts.

At Open Food Facts, CI executed four poisoned commits and all four builds failed. Maintainers rotated a secret, but the supplied source does not establish whether the loader accessed that secret, whether any data was exfiltrated, or whether the rotation was precautionary. The precise impact therefore remains uncharacterized.

Loader infrastructure and dynamic address selection

The loader queried the newest Ethereum transaction associated with wallet 0x1eef…cef3 through public RPC services including 1rpc.io, drpc.org and publicnode.com. The transaction recipient field encoded a server IP address followed by the marker helloipbot!!. This allowed the operator to direct copies of the loader to new infrastructure without changing every infected repository.

On November 25, the wallet posted the address 95.135.181.84 at 18:30 UTC. According to the source, this was the fifth server used since September 4. The loader then retrieved two stages from /0x/cls and /0x/ls over plain HTTP on port 443, decoded them with an XOR key and launched them as background Node.js processes designed to survive the build.

The intelligence does not include the complete stage scripts and therefore does not independently establish the exact behavior of every stage. Victim reports attribute the later stages with stealing browser passwords, macOS keychain data and GitHub access, then using GitHub access to push the loader into more repositories. That propagation mechanism would help explain how one account could become part of a much larger set of affected accounts and repositories.

Scale of repository contamination

GitHub suspended Eternity0207 and removed all 217 pull requests associated with the account, including merged ones. The source states that the removal was not explained to affected projects.

Repository scanning found a wider footprint. GitHub code search reportedly returned 2,776 package.json files with the same hook. Of 622 repositories checked, 576 contained the loader across 311 accounts. Among 402 decoded copies, 390 referenced the primary wallet and 12 referenced a wallet abbreviated as Accur in the supplied text.

These counts show that reviewing only the three initially identified projects would not have covered the campaign. They also should not be interpreted as 576 confirmed successful compromises: repository presence does not by itself establish that CI ran the payload, that an installer was published, or that credentials were stolen.

Why familiar controls did not contain the attack

Blocking npm lifecycle scripts was ineffective because PolinRider avoided preinstall and postinstall. Build scripts, test-tool configuration and editor tasks provided alternative execution paths. Blocking only 95.135.181.84 would likewise have had limited value because the Ethereum transaction mechanism allowed the operator to rotate server addresses.

The campaign also exposed a review problem. A clean final diff could not prove that earlier tested revisions were safe. Effective response required linking CI runs and artifacts to immutable commit identifiers, inspecting raw file content, and preserving evidence of the revision that actually executed.

Expert insight

This campaign illustrates that pull-request approval and artifact review are different controls. CircuitVerse’s 40 infected installers show how an unmerged contribution can become a distribution channel when CI automatically processes fork revisions. AsyncAPI’s approval requirement prevented execution, demonstrating the value of controlling whether untrusted code is allowed to run.

The whitespace technique is particularly important for review workflows. Rendered diffs can suppress meaningful source content, particularly when a line contains many horizontal-tab characters. Review tools and audit procedures need to expose raw bytes and identify hidden trailing content rather than trusting the visual representation alone.

The Ethereum-based control channel turns public RPC access into a command-and-control dependency. A single host block is fragile when the destination can be selected dynamically. Controls that deny unexpected build-time communication with Ethereum RPC services address that dependency more effectively, although they should be combined with endpoint governance, egress allowlists and artifact inspection.

Finally, the evidence supports different levels of impact for each project. CircuitVerse had confirmed malicious artifact publication; AsyncAPI Generator had attempted contamination but no reported execution; Open Food Facts had failed builds and an unspecified secret rotation. A precise assessment should preserve those distinctions rather than labeling the entire campaign as successful credential theft.

Actionable recommendations

  1. Require maintainer approval for every workflow triggered by a pull request from a fork, and restrict automatic execution to trusted branches, commits and pull-request events.

  1. Bind CI jobs and release artifacts to the exact tested commit SHA, retain immutable workflow logs and inspect the revision that ran rather than the pull request’s final diff.

  1. Review raw source bytes and repository files for unusual tab runs, hidden trailing content, unexpected package.json script changes, poisoned tool configuration and unknown Visual Studio Code tasks.

  1. Search repositories and history for node api.js, fa-solid.lkf, helloipbot!!, 0x1eef…cef3, Accur, /0x/cls, /0x/ls and the reported package.json hook pattern.

  1. Restrict build-time egress to approved services and block unexpected access to 1rpc.io, drpc.org, publicnode.com and other unapproved Ethereum RPC endpoints.

  1. Inspect CI logs, release inventories and artifact provenance for unexpected Node.js processes, outbound RPC requests and files that are inconsistent with the normal build.

  1. Revoke and replace GitHub tokens, cloud credentials, signing keys and other secrets accessible to poisoned CI jobs or affected developer workstations.

  1. Remove or quarantine the 40 infected CircuitVerse installers, confirm that replacement artifacts were rebuilt from known-clean revisions, and communicate any confirmed download exposure through the project’s established advisory channel.

  1. Pin dependencies and actions to trusted versions, minimize build-time secrets and run untrusted build analysis in isolated workers with restricted credentials and network access.

  1. Treat a clean final pull-request diff as insufficient evidence of safety when force-pushing is permitted; audit branch history and all tested commit revisions.

References

·
← News