The PolinRider Supply Chain Breach: How North Korean Actors Weaponized 7,600 GitHub Repositories via Blockchain Resolvers
An architectural breakdown of the PolinRider malware campaign, analyzing its 58-line conftest.py loader, Ethereum-based C2 resolvers, and targeted tampering of local IDE environments.
Published: 2026.11.28
86% belong to seasoned maintainer accounts
Ethereum calldata dead-drop C2 parsing
Persistence via Cursor, VS Code, and GitHub Desktop
Architectural Mechanics: How PolinRider Turns conftest.py and Ethereum Transactions into an Uncensorable C2 Resolver
Software supply chain defenses historically center on package registries like npm and PyPI. The PolinRider campaign, attributed to North Korean state-sponsored threat groups operating alongside Contagious Interview clusters, bypasses registry-level scanning entirely. Instead of publishing typosquatted packages, the threat actors systematically inject malware directly into verified, seasoned maintainer repositories on GitHub. Telemetry reveals that out of 7,609 affected repositories across 2,330 accounts, 86% (6,541 repositories) belong to active developer accounts older than one year with multiple active projects.
The initial foothold relies on social engineering disguised as technical hiring assessments. Decoy career portals present candidates with technical onboarding pages that require a custom camera verification driver. When executed, these commands run shell scripts that install Node.js, execute background JavaScript payloads, and harvest local credentials. Attackers then reuse these stolen GitHub session tokens to commit backdoors directly into the maintainers’ source trees, targeting high-traffic repositories such as Neutralinojs, InstaWP Connect, and fxhash.
Multi-stage payload resolution bypassing static network egress rules
Local test runs invoke conftest.py or poisoned utils packages automatically.
A 58-line Python loader fetches the latest self-directed wallet transaction calldata.
Hex-encoded input data is executed via a detached Node.js interactive process.
Second wallet destination bytes resolve the active C2 IP address (helloipbot!!).
The embedded weapon is an obfuscated 58-line Python loader placed inside utility packages or conftest.py files. Because standard test frameworks such as Pytest automatically load conftest.py before executing test suites, cloning and running standard unit tests immediately triggers execution without user interaction.
Once executed, the loader implements an Ethereum-based Dead Drop Resolver (DDR) to evade network-level IP blocking:
- Primary Wallet Query: The loader queries the public Ethereum blockchain for self-directed transactions from wallet
0x3b1574417524c11a7403c4b232CAcBb320CceBC6. - Payload Extraction: It decodes the transaction input data field (
calldata) directly into executable JavaScript. - Detached Execution: It executes the payload inside a detached interactive Node.js process (
node -i), bypassing parent-process process tree surveillance. - Secondary Address Routing: The JavaScript queries a secondary wallet (
0x1eEf0849EDa15d87f64e51C73C8442Cf3c8bCEF3) to retrieve dynamic target addresses containing the marker68656c6C6f6970626f742121(helloipbot!!). The leading bytes decode to the dynamic C2 IP.
By hosting C2 resolution logic inside immutable, globally distributed blockchain transactions, the attackers ensure resilience against domain takedowns and perimeter DNS sinkholing.
Comparative Blast Radius: Registry Poisoning vs. Maintainer Repository Subversion
Traditional enterprise Application Security (AppSec) tooling depends on Software Bill of Materials (SBOM) analyzers and Software Composition Analysis (SCA) databases. These tools trigger alerts when a dependency references a known malicious package version listed in public registries.
PolinRider circumvents this entire defense layer. By modifying repositories directly rather than publishing poisoned packages, the malicious code executes in developer environments prior to packaging or dependency tree resolution.
| Threat Dimension | Standard Registry Poisoning (npm / PyPI) | PolinRider Repository Subversion | Enterprise Operational Impact |
|---|---|---|---|
| Primary Infection Vector | Typosquatting or hijacked release tags | Source tree poisoning (conftest.py, utils) | Bypasses lockfile pinning and dependency hash checks |
| Detection Coverage | Standard SCA tools (Snyk, Dependabot) | Source code AST analysis, Runtime EDR | 0% detection by signature-based package monitors |
| Delivery Vehicle | package.json, setup.py dependency pulls | Direct Git clone, submodule pull, test run | Executes during local development and PR verification |
| C2 Infrastructure | Hardcoded HTTP endpoints or dynamic DNS | Ethereum calldata Dead Drop Resolvers | Resistant to DNS filtering and traditional IP blocklists |
| Maintainer Profile | Disposable burner accounts | Aged accounts (86% >1 year, 5+ repos) | High social proof disarms developer suspicion |
| Workstation Footprint | Ephemeral build-time credential theft | Persistent local IDE and editor tampering | Continuous access across engineering projects |
The architectural risk lies in developer trust dynamics. Enterprise engineers routinely audit third-party dependencies declared in manifest files, yet rarely inspect the contents of cloned repositories or their test harness configurations before running test suites locally.
How source tree subversion circumvents the enterprise perimeter
- • Monitored by central package managers and lockfiles
- • Triggers automated CVE and vulnerability alerts
- • Can be mitigated via internal artifact proxies
- • Embedded within legitimate business logic and tests
- • Runs automatically via Pytest test runners
- • Completely invisible to manifest-based SCA tools
When an enterprise developer forks or clones an affected project, the malware executes with the full permissions of the local user context. This grants attackers immediate read access to .env configurations, SSH private keys, and cloud infrastructure credentials without triggering corporate gateway alerts.
Workstation Infiltration Mechanics: From Build-Time Eval to IDE Process Injection
The PolinRider post-exploitation routine focuses on developer workstation persistence. Once the Node.js loader activates, it spawns two distinct operational stages: /0x/cls and /0x/ls.
The /0x/cls payload executes twice—first synchronously within the running build process using eval(), and second as an independent background daemon. The /0x/ls script launches exclusively as a detached background process, ensuring malware execution continues even after the developer terminates the terminal or build job.
The stage-two remote-access payload inspects the infected host specifically for developer utilities and workstation applications. The scanning routine targets five specific binaries:
- Cursor
- Visual Studio Code (
code) - GitHub Desktop
- Discord
- Google Antigravity
Upon identifying installed software, the malware alters application startup configurations and configuration files. It injects startup hooks that execute attacker-controlled JavaScript whenever the developer launches their code editor or desktop tool.
Deconstructing the local development environment hijacking loop
/0x/cls runs via eval() while /0x/ls forks a persistent, detached daemon.
Enumerate local installations of VS Code, Cursor, GitHub Desktop, and Discord.
Inject malicious startup code into editor bundles to survive reboots and branch resets.
This persistence mechanism represents a shift from transient build exploitation to permanent workstation interception. Because developers operate within code editors daily, malicious hooks embedded inside Cursor or VS Code configuration directories establish long-term access.
The malware captures clipboard buffers, monitors active keystrokes, and steals browser session cookies, local crypto wallets, and cloud API tokens. When engineers switch repositories, the hooked editor process injects backdoors into new projects, creating an automated lateral propagation vector across enterprise internal source repositories.
Enterprise Defense Playbook: Detecting Silent Repository Taint and Workstation Tampering
Mitigating attacks like PolinRider requires transitioning from reactive package scanning to active developer endpoint telemetry and repository integrity validation. Because the initial vector abuses trusted developer accounts, security teams must deploy defensive controls across source repositories and local developer workstations.
Prioritizing remediation controls against source-level tampering
1. Developer Endpoint Network & Process Hardening
Security Operations Centers (SOC) must monitor developer endpoints for anomalous runtime behaviors during local development and testing:
- Block Ethereum JSON-RPC Endpoints: Filter outbound traffic from developer workstations to public Web3 nodes and Infura/Alchemy gateways unless explicitly authorized for blockchain development.
- Audit Detached Node Processes: Alert on interactive Node.js executions (
node -i) spawned by Python parent processes, specifically those originating from test execution paths (pytest,unittest). - IDE Directory File Integrity Monitoring (FIM): Monitor file modifications within application support directories for Cursor, Visual Studio Code (
~/.vscode/extensions,%APPDATA%\Code), and GitHub Desktop. Any unauthorized script injection into core editor bundles should trigger immediate quarantine.
2. Repository Hygiene and CI/CD Isolation
Enterprise engineering organizations must eliminate implicit trust in cloned source trees:
- Containerized Test Execution: Forbid developers from running test suites (
pytest,npm test) directly on bare-metal host operating systems. Enforce devcontainer workflows or isolated virtual machines that prevent access to local SSH keys and host file systems. - Static AST Inspection for Test Harnesses: Integrate pre-commit and CI static analysis rules that scan
conftest.py,setup.py, and test fixtures for dynamic execution routines (eval(),exec(), base64 decoding, and network socket operations). - Session Token Rotation & MFA Enforcement: Mandate hardware-bound FIDO2 security keys for all GitHub enterprise accounts. Audit OAuth tokens and personal access tokens (PATs) regularly, terminating tokens showing activity across unmanaged IP ranges.
Engineering leaders must recognize that developer workstations represent high-value production jump hosts. Securing the engineering perimeter requires treating untrusted source code with the same containment protocols applied to third-party binaries.