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

Compromised Repositories
7,609 Repos

86% belong to seasoned maintainer accounts

On-Chain Resolution
58-Line Loader

Ethereum calldata dead-drop C2 parsing

Host Tampering Target
5 Dev Applications

Persistence via Cursor, VS Code, and GitHub Desktop

Executive Takeaway ·Direct maintainer repository subversion bypasses registry-level SCA scanners, transforming standard test suites and local IDE processes into persistent co…

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.

PolinRider Execution Pipeline: From Test Runner to Blockchain Resolution

Multi-stage payload resolution bypassing static network egress rules

01 · Step 01
1. Repository Clone & Pytest Execution

Local test runs invoke conftest.py or poisoned utils packages automatically.

02 · Step 02
2. Ethereum On-Chain RPC Query

A 58-line Python loader fetches the latest self-directed wallet transaction calldata.

03 · Step 03
3. Interactive Node.js Detached Spawn

Hex-encoded input data is executed via a detached Node.js interactive process.

04 · Step 04
4. Dynamic C2 Host Extraction

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 marker 68656c6C6f6970626f742121 (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 DimensionStandard Registry Poisoning (npm / PyPI)PolinRider Repository SubversionEnterprise Operational Impact
Primary Infection VectorTyposquatting or hijacked release tagsSource tree poisoning (conftest.py, utils)Bypasses lockfile pinning and dependency hash checks
Detection CoverageStandard SCA tools (Snyk, Dependabot)Source code AST analysis, Runtime EDR0% detection by signature-based package monitors
Delivery Vehiclepackage.json, setup.py dependency pullsDirect Git clone, submodule pull, test runExecutes during local development and PR verification
C2 InfrastructureHardcoded HTTP endpoints or dynamic DNSEthereum calldata Dead Drop ResolversResistant to DNS filtering and traditional IP blocklists
Maintainer ProfileDisposable burner accountsAged accounts (86% >1 year, 5+ repos)High social proof disarms developer suspicion
Workstation FootprintEphemeral build-time credential theftPersistent local IDE and editor tamperingContinuous 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.

Security Boundary Comparison: Registry vs. Repository Poisoning

How source tree subversion circumvents the enterprise perimeter

High Observability
Registry Dependency Attack
  • • Monitored by central package managers and lockfiles
  • • Triggers automated CVE and vulnerability alerts
  • • Can be mitigated via internal artifact proxies
Zero Registry Trace
PolinRider Maintainer Attack
  • • Embedded within legitimate business logic and tests
  • • Runs automatically via Pytest test runners
  • • Completely invisible to manifest-based SCA tools
Verdict ·Direct repository poisoning neutralizes perimeter artifact firewalls by executing upstream of packaging pipelines.

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.

Workstation Persistence and Lateral Movement Cycle

Deconstructing the local development environment hijacking loop

01 · Local Execution
Dual-Process Execution

/0x/cls runs via eval() while /0x/ls forks a persistent, detached daemon.

02 · Host Inspection
Application Scanning

Enumerate local installations of VS Code, Cursor, GitHub Desktop, and Discord.

03 · Binary Tampering
Persistent IDE Hooking

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.

Enterprise Defense Vector Evaluation

Prioritizing remediation controls against source-level tampering

Detection of On-Chain RPC Queries 35%
Endpoint Controls:92
Repository Hygiene:45
Endpoint network monitoring catches outbound Ethereum JSON-RPC calls.
Pre-execution Static Analysis 35%
Endpoint Controls:82
Repository Hygiene:95
AST scanning flags unpinned dynamic eval() and detached process spawns.
IDE Integrity Verification 30%
Endpoint Controls:94
Repository Hygiene:60
Application file-integrity monitoring detects modified editor binaries.
Weighted Total
89/100
78/100

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.

Related Benchmark Reports

View All in Category →
Weekly Briefing

Weekly Tech & Business Data Briefing

Verified software analysis, practical gotchas, and essential supply-chain updates delivered weekly.

Unsubscribe with 1 click anytime. Zero spam.

* We may earn an affiliate commission from links in this report, at no extra cost to you and with zero impact on our benchmark data.