Answers · PolinRider

PolinRider in pull requests: the repo, CI and editor checks after malware was force-pushed into open PRs

If you maintain a repo that takes pull requests from forks: set Actions to require approval for all external contributors, don't upload installers or packages from fork-PR runs, and read a PR's force-push history, not only its final diff. StepSecurity's write-up (Nov 26, updated Nov 27) says the GitHub account Eternity0207 opened 217 pull requests, 145 were merged, and none of the merged ones contains the loader. On Oct 19 (UTC), rewritten commits carrying a PolinRider loader were force-pushed into PRs that were still open at AsyncAPI Generator, CircuitVerse, Open Food Facts and Jaeger; at AsyncAPI each sat 30 to 40 minutes before another force-push restored a clean diff. A Jaeger PR branch carried it from Jul 12 to Oct 10.

It needs no install script. The loader runs from a node api.js && prefix on build and dev scripts, from code appended after hundreds of tabs in jest.config.js and postcss.config.js, or from a hidden VS Code task that runs when the folder is opened. CircuitVerse's fork-PR workflows ran it with no approval step, and its maintainers deleted 40 installers that workflow had uploaded. AsyncAPI's CI didn't run it because fork-PR workflows there need a maintainer's approval. If you built or opened one of these branches on your machine, rotate GitHub tokens first: StepSecurity says PolinRider uses them to push itself into more repositories.

What happened, per StepSecurity

All from StepSecurity's post, which cites the maintainers' own issues (CircuitVerse #1586 and fix #1591, Open Food Facts #2267, Jaeger's findings). Times are UTC as StepSecurity gives them. StepSecurity sells tools for this, which it lists at the end of its post; we only use its findings.

  • The account. Eternity0207 opened 217 PRs; 145 were merged. The AsyncAPI maintainer scanned all 145 and found no loader; maintainers at Jitsi Meet, Floresta and Jaeger confirmed that in their own reviews. GitHub suspended the account on Nov 25 and removed every PR it had opened, merged ones included.
  • Oct 19, two waves. 01:39 to 02:08 and 05:31 to 06:12 at AsyncAPI Generator (PRs #2277 and #2278), with the same waves reaching CircuitVerse, Open Food Facts and Jaeger. At AsyncAPI, each malicious commit reused the message and date of a clean, signed commit from the same PR. The commits at AsyncAPI, CircuitVerse and Open Food Facts are unsigned and use a different committer name from the account's usual signed commits.
  • Hidden off-screen. api.js is one line: 315 tabs, then the obfuscated loader, so the added line looks empty in GitHub's diff view. In the config files the loader sits after the closing }; and roughly 300 more tabs. The CircuitVerse commits also carried .vscode/tasks.json with a hidden task labelled eslint-check that runs node ./public/fonts/fa-solid.lkf on folder open, a .vscode/settings.json turning automatic tasks on, and a fake font file that is JavaScript.
  • What each project's CI did. CircuitVerse (10 PRs): ran it with no approval step, including the desktop release build on four runners; maintainers deleted 40 installers on Nov 25 and merged a fix on Nov 26 so fork PRs no longer publish builds. Open Food Facts (4): its CI, which includes pnpm build, ran on each poisoned commit and all four runs failed; maintainers rotated a secret. AsyncAPI (2): not run, approval needed and none given. Jaeger (3): not run, per its maintainers; main is clean.
  • Secrets. For pull_request workflows from a fork, GitHub passes no repository secrets and gives GITHUB_TOKEN read access only. StepSecurity: "no project has reported stolen secrets." Those limits don't stop the code from running or reaching the internet.
  • The loader reads its server address from a public Ethereum wallet, downloads further stages and leaves them running in the background after the build exits. StepSecurity ties the wallet to a fake-recruiter campaign it wrote about earlier.

In GitHub: the settings that decided whether it ran

Needs gh signed in as a repo admin. We ran each read below on Nov 27 against repos we can read; none of them change anything.

  1. Fork-PR approval policy. StepSecurity's first fix is "Require approval for all external contributors" (repo Settings, Actions, General, under the controls for workflows from forks). The first-time-contributor options would not have stopped this account, which already had merged PRs at CircuitVerse and Open Food Facts. Read the current value:

    gh api repos/OWNER/REPO/actions/permissions/fork-pr-contributor-approval

    You want "approval_policy":"all_external_contributors". first_time_contributors or first_time_contributors_new_to_github is the weaker setting. On a private repo the API answers 422 ("Fork PR approval is not allowed for private repositories").

  2. Workflows that run on pull requests and upload or publish something. Any hit is a job a fork PR can trigger that produces a file people may download. Run in the repo root:

    grep -lE '^[[:space:]]*pull_request(_target)?:' .github/workflows/*.y*ml \
      | xargs -r grep -nHE 'upload-artifact|action-gh-release|gh release|npm publish|--publish'

    Ours, not StepSecurity's. We ran it on CircuitVerse's tauri-build.yml as it was before fix #1591 (it triggers on pull_request and uploads with actions/upload-artifact), and it flags line 73. It's a text match: it misses workflows that publish through a script, and it flags upload steps you may already skip for forks. Read each hit. StepSecurity's fix: build fork PRs if you need the check, upload installers and packages only from your own branches and releases.

  3. Re-approval after a force-push. StepSecurity: turn on "Require approval of the most recent reviewable push" on your main branch. Check classic branch protection, then rulesets:

    gh api repos/OWNER/REPO/branches/main/protection --jq '.required_pull_request_reviews.require_last_push_approval'
    gh api repos/OWNER/REPO/rules/branches/main --jq '.[] | select(.type=="pull_request") | .parameters.require_last_push_approval'

    true from either is what you want. The first answers 404 "Branch not protected" if there's no classic rule; the second prints nothing if no ruleset has a pull-request rule.

In each PR: force-push history and unsigned commits

The final diff at AsyncAPI was clean; the loader showed up only in commits that were later replaced. These read the history instead.

  1. Force-pushes across your last 50 PRs, with who pushed and the before and after commits:

    gh api graphql -F owner=OWNER -F repo=REPO -f query='
    query($owner:String!,$repo:String!){repository(owner:$owner,name:$repo){
      pullRequests(last:50,states:[OPEN,MERGED,CLOSED]){nodes{number author{login}
        timelineItems(itemTypes:[HEAD_REF_FORCE_PUSHED_EVENT],last:20){nodes{
          ... on HeadRefForcePushedEvent{createdAt actor{login} beforeCommit{oid} afterCommit{oid}}}}}}}}' \
      --jq '.data.repository.pullRequests.nodes[] | .number as $n | .author.login as $a
        | .timelineItems.nodes[] | ["#\($n)", $a, .createdAt, .actor.login, .beforeCommit.oid[0:7], .afterCommit.oid[0:7]] | @tsv'

    Force-pushes are normal; what matters is one after review, or two close together. To see what a replaced commit contained, gh api repos/OWNER/REPO/commits/BEFORE_SHA (it worked for the one we tried; GitHub may not keep them forever). One PR at a time over REST: gh api --paginate "repos/OWNER/REPO/issues/NUMBER/timeline?per_page=100" --jq '.[] | select(.event=="head_ref_force_pushed") | [.created_at, .actor.login] | @tsv'. We ran both against a public repo's PRs on Nov 27. Our note: PRs GitHub has removed, like this account's, no longer appear in these lists, so for them use your CI logs and the org audit log, as Jaeger did.

  2. Signature and committer on each commit in a PR. StepSecurity: every malicious commit was unsigned, with a different committer name, from a contributor who usually signs:

    gh api --paginate "repos/OWNER/REPO/pulls/NUMBER/commits?per_page=100" \
      --jq '.[] | [.sha[0:7], .commit.verification.verified, .commit.verification.reason, .commit.committer.name, (.commit.message|split("\n")[0])] | @tsv'

    Unsigned alone means little; plenty of contributors never sign. The signal is a change from the same person's earlier commits.

In the code: what the diff hides

StepSecurity's read-only commands, run from a checkout (a PR branch, or your default branch). We ran them on Nov 27 on a sample repo we built with harmless stand-ins for each file (an api.js of 315 tabs then a console.log, a jest.config.js with code after 300 tabs, a folderOpen task, an empty fa-solid.lkf); each line found its file and nothing else.

  1. Build scripts that run a file first:

    grep -rnE '"(build|dev|start|test)":[[:space:]]*"node (api\.js|init) &&' --include=package.json .
  2. Code hidden after long runs of tabs or spaces (catches api.js and the appended config files):

    grep -rlE '(^|[;})])[[:blank:]]{100,}[^[:blank:]]' --include='*.js' --include='*.mjs' --include='*.cjs' .
  3. Folder-open tasks, fake fonts and PolinRider's tool files:

    grep -rl '"runOn": *"folderOpen"' --include=tasks.json .
    find . -path '*/fonts/*' \( -name '*.lkf' -o -name '*.lfk' -o -name '*.fml' -o -name '*.orc' -o -name '*.llf' \)
    git log --all --oneline -- branch_structure.json temp_auto_push.bat

    Add node_modules to an --exclude-dir if it's slow; the loader in these PRs was in the project's own files. A hit means look closer, not proof: some projects have legitimate folder-open tasks. And these won't find code hidden some other way. StepSecurity also says to give extra scrutiny to any change to jest.config.js, postcss.config.js or .vscode/.

On your machine: if you opened or built one of these branches

  • Editor. StepSecurity: keep VS Code's Restricted Mode on for code you haven't reviewed; Restricted Mode doesn't run workspace tasks, so a folderOpen task in a PR branch won't fire. Our addition: grep -rn 'allowAutomaticTasks' --include=settings.json . shows a checkout that turns automatic tasks on (it found our sample's .vscode/settings.json).
  • Processes. StepSecurity's check for the loader's background stages: ps -axww -o pid,ppid,lstart,command | grep -E "_t_s|_H2|global\['r'\]=require" | grep -v grep. It says a match means the machine is compromised: note the process ID and command line, then rotate from a clean machine. We ran it on our own box only (no match, as expected); we have no infected machine to test it on.
  • Rotate, GitHub first. StepSecurity: GitHub, npm, SSH and cloud credentials, starting with GitHub tokens, because PolinRider uses them to push itself into more repositories. Victims on the OpenSourceMalware tracker report a token taken from VS Code's GitHub sign-in being used to clone every repo the victim could reach and force-push rewritten commits; that's their report, not something StepSecurity confirmed on each machine.
  • Your CI. If an affected account sent you PRs: StepSecurity says check CI logs from July onward for runs on those branches that ran node api.js or called public Ethereum services (its post lists them), and ask reviewers whether they checked the branches out.

What isn't known or we didn't verify

Related: wfx-loot: how to tell if your repo ran it (a stealer that hides in reverted commits and deleted runs) and AGENTS.md malware: how to tell if your coding agent ran a setup.js (code that runs from a repo's config before anyone reads it).

  • How many repos or developers are affected. The figures in circulation are separate lower bounds measured different ways (code-search hits for the build hook, repos StepSecurity sampled, another firm's count), not one victim total.
  • Who is behind it. StepSecurity ties the loader's wallet to its earlier fake-recruiter research; we don't name a country or group.
  • Whether anyone downloaded CircuitVerse's 40 installers before they were deleted, or what anyone who ran one should do. StepSecurity says the loader ran in the build; it doesn't say anyone was infected through an installer. Watch CircuitVerse's own issue for that.
  • We didn't run the loader, decode a payload, or test the ps line on an infected machine. Every gh read ran on Nov 27; the code greps ran on our stand-in sample, not real malware.

Checked against StepSecurity: PolinRider Malware Force-Pushed Into AsyncAPI, CircuitVerse and Open Food Facts Pull Requests (Nov 26, updated Nov 27), CircuitVerse issue #1586, CircuitVerse fix PR #1591, Open Food Facts issue #2267, GitHub docs: Approving workflow runs from forks, GitHub REST docs: Actions permissions on 2026-11-27. Only test apps and accounts you own or are allowed to test.