Skip to content
PolinRider infects over 7,600 GitHub repos, which tokens to revoke

PolinRider infects over 7,600 GitHub repos, which tokens to revoke

Pasqualepillitteri.It • November 27, 2026

PolinRider is a malware campaign, linked by researchers to North Korea, which uses access taken from developers to hide a loader (a small program that downloads and runs more code) in their GitHub repositories. Application security company Apiiro puts the figure at no fewer than 7,609, belonging to 2,330 accounts .

On November 24, SafeDep, which builds tools against malicious software packages, documented a Python variant of a campaign known mostly for its JavaScript code. For anyone who doesn't use it, GitHub is the Microsoft platform where millions of programmers store and code; a repository is a project's folder with its entire history.

For victims, the trouble lies in the disguise. The malicious code often arrives in a commit (a change saved to the history) carrying the name, message and date of the real one. Finding it takes targeted checks. Stopping it then means revoking access in the right order.

What is PolinRider and how many repositories has it hit?

PolinRider is malware that targets developers and spreads on its own. It steals credentials from the infected computer, then uses that access against other projects. OpenSourceMalware, a research group focused on malicious packages, has been tracking it since March 2026, and in late October it found its code again in npm packages from May 2025 (npm is the main registry of JavaScript libraries). Traces on the blockchain go back as far as February 2025, although that sample lacks proof of automatic propagation.

The campaign overlaps with Contagious Interview, the run of sham job interviews in which fake recruiters ask candidates to run a test project. Researchers consider it a parallel branch. The interview is the way into the computer; PolinRider, for its part, uses that access to turn repositories into malware distributors. The fake interview scheme is the same kind of lure described in the case of the bogus job interview behind the attack on Binance .

Three very different figures are circulating on its scale. The gap comes mainly from method, since the three groups counted different things on different days.

Apiiro's estimate is the broadest and is stated as a lower bound, because many branches (a project's parallel lines of work) were left out of the count. Between October 27 and November 6, the loader reached 2,040 repositories, 956 of them new. StepSecurity, which protects automated build pipelines, started instead from 2,776 package.json files found through GitHub . The returns 1,000 results at most, the group obtained 715 results across 622 repositories, and the loader was present in 576.

So the three figures shouldn't be added together. The ratio of 576 out of 622 shows how reliable that particular indicator is, not what of GitHub is infected.

Most victims are individuals rather than large companies. According to Apiiro, 86% of the repositories in the census belong to personal accounts more than a year old with real activity. Projects named include Neutralinojs, a framework for desktop apps. There is also the WordPress plugin InstaWP Connect, where the infected file was removed after 23 hours, before any stable release.

Limitations to keep in mind

The counts come from companies that sell protection against attacks of this kind. They help gauge the order of magnitude, but they are not an independent census (Apiiro reports 48 correct classifications out of 50 repositories rechecked by hand).

The link to North Korea is an assessment by private researchers, based on code, keys and infrastructure shared with earlier campaigns. For defenders, the steps stay the same whoever is behind it.

In the Python chain, the contents of the last two downloaded scripts remain unknown, because SafeDep did not the attacker's server. The theft of passwords and wallets was observed in an earlier chain, so it should be treated as possible, not as established for every victim.

How does a repository get infected?

There are three ways to pick up the malware, according to OpenSourceMalware . The first is the test project from a fake interview, the second a malicious package with a name similar to a well-known one. The third runs through an already infected colleague, via one of their repositories, a pull request (a proposed change sent to someone else's project) or a package they publish.

Once inside, the victim's computer does the work. On Windows, a script called temp_auto_push.bat rewrites the latest commit, turns back the clock and sends it with a force push (the command that overwrites history on the server) using the credentials already saved. To GitHub, it's the usual device with the usual account. Apiiro checked the infected pushes in GitHub's records, and in 4,402 of 4,460 resolved cases the new commit had the same author, the same message and the same timestamps as the one it replaced, plus the loader.

In JavaScript code, the loader ends up at the bottom of configuration files that hardly anyone rereads ( postcss.config.mjs , tailwind.config.js , eslint.config.mjs ), after hundreds of spaces that push it off the screen. Other variants disguise it as a font file. A routine action is enough to set it off.

According to Apiiro, simply cloning a repository runs nothing. The risk begins with the step and closely concerns coding assistants too, which run builds and tests as a matter of routine (293 affected repositories contain configurations for agents of this kind). Blocking npm install scripts doesn't help, because none of these triggers uses them.

In the Python variant, the loader sits in conftest.py or in a fake utils folder with harmless-looking file names such as session.py or transport.py . SafeDep did notice a detail, however, that tones down the alarm for several projects. The import lines work only if Python finds a utils package in that location; in the three sample programs tested, the documented startup stopped with an error. Beware if you "fix" that error by adjusting the path, because that is the moment the code runs.

The server address isn't written into the code. The Python variant reads the program from the data of a transaction on the Ethereum blockchain. That program in turn queries a second wallet to learn where to connect (the address is hidden in the transaction's dummy recipient, a technique called NullReceiver). The attacker updates the pointer at will. Taking down a server therefore does little, since a single transaction moves every copy to the one.

The later stages, in short, go after work tools. In the chain analyzed by Abnormal AI , the code looks for Cursor, VS Code, Antigravity, GitHub Desktop and npm, then tries to modify some of their startup files so it can relaunch every time you open them. The data stealer written in Python targets browsers, cryptocurrency wallets, password manager vaults, .env files and Git credentials. The target is the one we saw with the VS Code extension used to steal GitHub's internal repositories , namely the developer's environment.

Poisoned pull requests in AsyncAPI, CircuitVerse and Open Food Facts

The best documented case involves three open source projects. On October 19, the GitHub account Eternity0207 force-pushed infected commits into pull requests that were still open. In AsyncAPI Generator, each malicious version stayed on the branch for 30 to 40 minutes, then a second push restored the clean one, so the final comparison showed nothing.

The account had 217 pull requests, 145 of them accepted. According to checks by AsyncAPI maintainer Lukasz Gornicki, none of the accepted ones contained the loader. Gornicki also writes in his reports to the projects that the account may have been compromised rather than run by an attacker from the start, because the malicious commits were unsigned, unlike its usual ones.

A single setting changed the outcome, as StepSecurity's reconstruction shows. AsyncAPI requires approval before running automations on pull requests from external copies (forks), and its system launched nothing. In CircuitVerse, the code also ran in the process that prepares the desktop app, so much so that the maintainers deleted 40 installer files. On Open Food Facts, the process started on the infected commits (all four runs failed) and the team replaced one secret as a precaution. None of the three projects reported stolen secrets.

On November 25, GitHub suspended the account and removed all its pull requests, including those already accepted, without explaining why to the projects involved. Several of them got their explanation from the reports Gornicki opened. Apiiro also says it alerted GitHub on October 15, offering the full list of infected repositories (a second notice is dated October 28). If you received contributions from that account, the merged commits remain in your history and your October logs are worth another look.

How do you check whether your GitHub repository is infected?

To check a GitHub repository, start from the Activity page, filter for force pushes and compare the code before and after. Then your files for text hidden after long runs of spaces, VS Code automatic tasks, scripts prepended to the build and traces of the Python loader.

Before you touch the code: don't run builds or tests, and don't open the folder in an editor that executes automatic tasks. In VS Code, stay in Restricted Mode , which blocks tasks, the terminal and agents for untrusted folders. If you can, work from a clean computer or a disposable virtual machine.

1. Read the force pushes on GitHub

Git history is misleading here, because whoever creates a commit writes its dates. GitHub's Activity view , on the other hand, records when the push happened and which account made it. Open it from the repository's main page, choose the "Force pushes" filter and use "Compare changes". The signal to look for is a recent force push carrying a commit dated days or weeks earlier. If you prefer the terminal, you can get the same list with the GitHub CLI.

A force push on its own proves nothing, since an ordinary rebase produces one. What counts are the differences the comparison shows.

2. the files for traces

The commands for JavaScript code, taken from the reports by Apiiro, the AsyncAPI maintainer and StepSecurity, only read. Run them from an external terminal, inside the cloned folder. The first one examines all local and remote branches.

A task with folderOpen can be legitimate, so open the file as text and see what it executes. It is suspicious when it launches node on a file in the fonts folder, even one with a believable extension such as .woff2 or .woff (the find command above doesn't catch it). Also check whether someone has added a .env with an AUTH_API_KEY key that turns into a web address once decoded.

The Python loader calls for a different check. A dependency scan won't find it , because it doesn't come from PyPI (the Python library registry) and uses only the standard library. SafeDep has published commands to hunt for it.

Read the results with judgment. A project that works with Ethereum may use those functions for normal reasons; many projects also have their own utils package. The wallet address in the code, by contrast, is a strong signal. Finding nothing doesn't guarantee the repository is clean, because the malware changes its signatures.

3. Check the computer

If you have set off one of those triggers, the problem is in the machine even before it's in the code. On macOS and Linux, the command ps -axww -o pid,ppid,lstart,command | grep -E "_t_s|_H2|global\['r'\]=require" | grep -v grep looks for processes left by the JavaScript variant. On Windows, Get-CimInstance Win32_Process -Filter "Name='node.exe'" | Select-Object ProcessId, CommandLine lists Node processes with their arguments. The Python variant passes the code to node -i without writing it on the command line, so a process of this kind with no open terminal deserves a closer look.

In network logs, look for connections to 95.135.181[.]84 (reported active on November 25) and 95.135.181[.]151 (used from October 16 to November 12). Also check the lib/cli.js file in the global npm installation, which OpenSourceMalware found replaced on several infected machines.

Which tokens to revoke and in what order

The order matters as much as the list, in fact more. If you change credentials from the infected computer, a process that is still running can harvest the new ones too. First, cut the machine off from the network and note down suspicious processes. Then, from a clean device, revoke everything that computer could reach. Killing the process alone isn't enough, because the code returns the time the infected file runs.

Deleting a local file doesn't cancel a token, which stays valid on the server until you revoke it or it expires. A revoked GitHub token can't be restored, so plan on recreating the ones your automations need.

The OAuth apps row is the one people are likely to skip. GitHub CLI is the clear example, because gh auth logout removes the configuration only from the computer. To cancel its tokens, you have to revoke the "GitHub CLI" application on the Applications page. Revocation applies to all devices, though. StepSecurity also reports that some victims, on OpenSourceMalware's public tracker, described a token taken from the VS Code sign-in and used to clone and rewrite every repository within reach. In June, a VS Code flaw that exposed the GitHub OAuth token had shown how valuable a token like that is.

Don't go looking for a single button that does it all. GitHub's Credentials page offers bulk actions tied to enterprise environments. Revoking SSO authorizations removes access to protected resources without deleting credentials, while wholesale deletion of keys and tokens is reserved for enterprise-managed accounts. With a personal account, you go through them item by item.

Once you've finished revoking, open the Security log , which covers the last 90 days. With the operation:create filter, look for keys, tokens or authorizations you don't recognize. Passwords saved in the browser and session cookies need changing too. If you used a cryptocurrency wallet extension or file on that computer, move the funds from a clean device. For new SSH keys, you might consider keeping them in a hardware component , which makes them much harder to copy.

How to clean up the repository without reinfecting it

Removing the code doesn't shut the door it came through. Apiiro counted 1,949 affected repositories that received new infected pushes after appearing on public lists. Of 16 repositories with a commit titled as a PolinRider removal, 9 saw the loader come back on top of the cleanup. SafeDep found the Python loader inside two commits that claimed to remove the malware.

Lock down write access. Turn on branch protection that forbids force pushes, require signed commits and pause automated publishing.

Secure your machines. Look for processes still running, scheduled tasks and startup entries. Reinstall Node, npm and your editors. According to OpenSourceMalware, wiping the machine isn't mandatory if you follow the right order; if any doubt remains, it is still the safest choice.

Revoke from the clean device all the access listed in the table.

Clean up on GitHub. OpenSourceMalware advises fixing files in the web editor, one repository at a time, because a clone made right afterward can bring the code back to your machine.

Warn your collaborators and check releases, published packages and automated runs after the infection date.

Open source maintainers have one more check to make. In the Actions settings, it's wise to choose "Require approval for all external contributors" . The options limited to newcomers don't stop someone who has already had a change accepted, which is exactly what had happened in CircuitVerse. Files published by builds from external forks should also be avoided, while the "Require approval of the most recent reviewable push" protection rule forces a fresh approval after any push made following the review.

On your laptop, keep VS Code's task.allowAutomaticTasks setting disabled. If your software doesn't use blockchains, you can stop the pipeline's runners (the machines doing the builds) from calling public Ethereum, BSC, TRON and Aptos services. That barrier holds up better than blocking a single IP address. Access stolen from an automation is the same risk seen with wfx-loot and the CI secrets stolen from GitHub accounts (a separate campaign) and, in May, with the Megalodon backdoor in CI/CD workflows . For the basic habits, see our guide on how to protect your development environment from supply chain attacks .

Frequently asked questions

1. Is npm audit enough to detect PolinRider?

No, a dependency check isn't enough. The Python loader lives in the repository's files, not in a package. Many JavaScript variants in fact end up in the project's configuration files. You need to the code and read the force pushes.

2. Does the gh auth logout command revoke the token?

No, gh auth logout only deletes the login saved on the computer. The command's own help text says so. Revocation happens in GitHub's settings, on the Applications page, under the GitHub CLI application.

3. Are private repositories at risk too?

Yes, if the stolen access can write to them. The researchers' counts rely mostly on what is public, so they offer no reassurance private projects. Check every repository where the account or key had write permissions.

4. I only reviewed a pull request, should I be worried?

It depends on what you ran. Reading the change in the browser doesn't start the code. If you downloaded the branch and ran builds or tests, or opened it in VS Code with automatic tasks allowed, run the checks on your computer. Remember that the added line can look empty in the diff view.

5. Does blocking the server's IP address stop the malware?

Only for that server, and not for long. The loader reads the updated address from a wallet on the blockchain. StepSecurity traced five different servers pointed to by the same wallet since September 4.

6. Does a clean antivirus scan mean a clean computer?

No. According to OpenSourceMalware, a scan is useful but proves nothing, since in many variants the code is decrypted in memory. Take an alert seriously, but silence doesn't close the case.

Where to start tonight

If you see no signs of infection , open the Activity view of your most used repositories with the force push filter, then disable automatic tasks in VS Code.

If you find the loader , isolate the computer, revoke access from another device and only then clean up the code.

What stands out, all things considered, is how little the malware needs to force. Keys already saved, files nobody rereads, maybe a command run without a second thought are enough for it. A commit with your name, your date, your message. And some extra code, very far off to the right.

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

PolinRider malware infects over 7,600 GitHub repositories via stolen developer access PolinRider, a malware campaign linked by researchers to North Korea, has been found in at least 7,609 GitHub repositories belonging to 2,330 accounts, according to application security firm Apiiro, which describes this as a lower bound. The malware spreads through stolen developer credentials rather than a flaw in GitHub itself, and attackers rewrite existing commits so the malicious loader appears under the original author, message and timestamps. The loader is a 58-line Python script, hidden in utility folders or conftest.py files, that reads Ethereum transactions to retrieve its next stage and locate command-and-control servers, a method researchers call NullReceiver. SafeDep documented the loader in 375 public repositories belonging to 260 accounts. Apiiro reports 2,040 repositories were reached between October 27 and November 6, and 86% of affected repositories belong to personal accounts more than a year old. The campaign overlaps with Contagious Interview, a scheme of fake recruiters asking candidates to run test projects, which researchers consider a parallel branch. Blockchain records tied to the activity reportedly go back to February 2025, and OpenSourceMalware found related code in May 2025 npm packages, though that sample lacks evidence of automatic propagation. GitHub suspended one account linked to poisoned pull requests on November 25. The three published counts differ in method and should not be added together. 4 sources 78

Extracted Entities

Companies (2)

Countries (1)

Platforms (1)

Tools (1)