Graphalgo is a remote-access trojan and associated malicious-package campaign active since at least May 2025, linked to North Korea’s Lazarus Group. It targets software developers through fraudulent recruitment and cryptocurrency-themed coding assessments, with later distribution extending to Go modules and Terraform providers used by infrastructure engineers and DevOps personnel. Variants have been identified in JavaScript, Python, VBS, and Go, with infections observed on Windows, Linux, and macOS.
Operators impersonate recruiters and blockchain businesses, approaching candidates through LinkedIn, Facebook, and Reddit. Apparently benign interview projects hosted on GitHub depend on malicious npm or PyPI packages, causing infection when candidates run or debug the projects. Some packages initially provide legitimate functionality before receiving malicious updates. Later activity uses malicious Go modules and Terraform providers, including provider namespace impersonation, to introduce payloads through normal dependency installation workflows.
The RAT supports arbitrary command execution, system-information collection, process listing, file and directory enumeration, file manipulation, file exfiltration, and additional payload delivery. It also checks for the MetaMask browser extension. Earlier variants use token-protected command-and-control communications, registering system information before receiving a token for subsequent requests.
The Go variant uses encrypted, per-client communications over Slack and an Ethereum-compatible blockchain, including smart-contract-based command retrieval. It can execute additional Go code, run JavaScript through Node.js, and delete itself. Selected Go delivery components conceal encrypted payloads behind narrowly defined activation conditions, while victim-specific command handling limits execution during automated analysis. Shared cryptographic keys and command-and-control infrastructure connect the Go variant to JavaScript samples. The campaign combines targeted social engineering, software supply-chain abuse, and conditional execution to compromise developer workstations and environments with access to sensitive infrastructure.
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
North Korea’s Lazarus Group has maintained a sustained presence in PyPI and npm targeting AI and developer tool packages under the campaign codenamed “Graphalgo.”
The coordinated campaign has been codenamed graphalgo in reference to the first package published in the npm registry... The packages ultimately act as a conduit to deploy a remote access trojan (RAT) that periodically fetches and executes commands from an external server.
19 distinct techniques documented for this family, organized by ATT&CK tactic.
Both of the threat actor-controlled GitHub organizations have companion websites purporting to be new Go package ecosystems, gogets[.]dev and gocommunity[.]io. Both domains were registered within one day of the threat actor-controlled GitHub organizations.
The following GitHub accounts and organizations were used to support this activity... the threat actor periodically cleans up its malware on GitHub, likely to prolong the lifespan of GitHub accounts.
Instead of direct attachments, attackers embed malicious dependencies inside packages on popular developer registries — npm and PyPI. When candidates run or debug the code as part of the “interview exercise,” these hidden packages install a remote access trojan (RAT) on their machine.
Instead of direct attachments, attackers embed malicious dependencies inside packages on popular developer registries — npm and PyPI. When candidates run or debug the code as part of the “interview exercise,” these hidden packages install a remote access trojan (RAT) on their machine.
Go malware [was] distributed via at least two Terraform providers and at least two Go Modules.
“The attack begins on social platforms like LinkedIn, Facebook, and even Reddit, where developers are approached with job opportunities…”
[The malware] executes the decrypted code as a Go package using a detached go run command. Decrypted C2 messages contain a header that tells the malware to execute the body as additional Go or JavaScript code (via node).
When candidates run or debug the code as part of the “interview exercise,” these hidden packages install a remote access trojan (RAT) on their machine.
The SHA256 hash is used as an AES key to decrypt a file path from within the package. The malware unzips the archive contents, AES decrypts each contained file.
kreuzwenker/docker [is] a typosquat of the popular kreuzwerker/docker Terraform provider.
Decrypted C2 messages contain a header that tells the malware to execute the body as additional Go or JavaScript code ... or to self-delete.
The threat actor used forged commits in the gogets-dev/btreex repository to backdate commits to November 2025. Because Go Modules treats commit dates as authoritative, the Go module proxy and pkg.go.dev display the falsified release date.
The malware initially gathers system information including hardware attributes, OS, hostname, and whether node is available on the infected system.
Once installed, the RAT can: • Check for browser crypto extensions like MetaMask — a strong signal the motivation includes cryptocurrency theft.
“The malicious functionality is hidden using several layers of indirection across public services which include GitHub, npm and PyPI…”
For blockchain-based C2, the malware retrieves data from an Ethereum smart contract on the Arbitrum Sepolia testnet ... [and] reads encrypted commands from serviceData1 and serviceData2.
The second-stage RAT is a Go agent with dual command-and-control channels, using blockchain dead drops and a Slack bot token.
The malware generates shared keys by combining its ephemeral key with two threat actor public keys... all communication is encrypted using the shared key.
Once installed, the RAT can: • Exfiltrate files and data
6 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.