Attackers are rapidly exploiting CVE-2026-39987 in the marimo Python notebook platform to deploy a new NKAbuse backdoor variant hosted on Hugging Face Spaces, turning AI/ML developer environments into high‑value infection points.
The campaign combines pre-auth RCE, credential theft, lateral movement to PostgreSQL and Redis, and a blockchain-based C2 channel that is difficult to monitor or block.
CVE-2026-39987 is a critical pre-authorization remote code execution flaw in Marimo that allows an unauthenticated attacker to run arbitrary commands on exposed instances.
The underlying advisory (GHSA-2679-6mx9-h9xc) was published on GitHub on April 8, 2026, and exploitation began in less than 10 hours, underscoring how little buffer defenders have once technical details are public.
The most sophisticated operator (159.100.6.251, Germany) conducted 195 events over 3+ hours.

Between April 11 and 14, Sysdig’s Threat Research Team (TRT) observed hundreds of exploit events from more than ten distinct IPs, ranging from simple one‑shot RCE checks to multi‑hour interactive sessions.
During these sessions, adversaries focused on harvesting environment variables, opening reverse shells, and pivoting into backend services reachable from marimo containers.
Post-exploitation and lateral movement
Once code execution was established, multiple operators systematically dumped secrets using environment-variable scraping commands to capture cloud keys, database URLs, and API tokens.
In one sequence, an attacker exhausted a wide set of reverse shell techniques across different ports and protocols, then fell back to using a leaked DATABASE_URL to log into a PostgreSQL instance and enumerate schemas, tables, and configuration.
Another actor pivoted into a Redis deployment using credentials recovered from marimo’s .env file, then looped through all 16 logical databases to list and read application keys, including admin sessions and task metadata.
Elsewhere, a different operator relied on DNS-based callbacks to confirm code execution using external DNS logging infrastructure, a common way to validate RCE when outbound TCP traffic is filtered but DNS remains open.
The most notable activity came from an attacker who used the marimo exploit to run a curl bash command pointing to a Hugging Face Space named vsccode-modetx, a deliberate typosquat of “VS Code.”
The Space hosts a shell script (install-linux.sh) that installs a Go-based ELF binary named kagent, mimicking a legitimate Kubernetes AI agent tool and blending naturally into developer environments.
The dropper script implements cross‑platform installation for Linux and macOS, kills existing kagent instances, and sets up persistence via systemd user services, crontab entries, or macOS LaunchAgents while silently logging to a hidden directory.

The payload itself is a UPX‑packed, statically linked Go binary whose strings and behavior match NKAbuse, a multi‑platform malware family that abuses the NKN blockchain protocol for resilient, anonymous C2 communications.
Why this campaign matters
Earlier NKAbuse activity primarily targeted Linux systems via long‑patched vulnerabilities like CVE‑2017‑5638, whereas this wave chains a fresh pre-auth RCE in marimo with a Hugging Face‑hosted payload tailored for AI/ML developer workstations.
Developer notebook environments are attractive because they typically hold cloud credentials, SSH keys, and direct access to internal data pipelines, so a persistent backdoor here can open the door to broader cloud-native compromise.
Hosting the implant on hf.space allows attackers to ride on the clean reputation of a widely trusted AI platform, a pattern already seen in Android RAT campaigns that leveraged Hugging Face repositories for staging.
The speed of exploitation, focus on AI/ML tooling, and reliance on reputable platforms for distribution show how quickly threat actors are adapting to modern developer and data science workflows.
Defenders should immediately identify and patch all marimo instances vulnerable to CVE-2026-39987, prioritizing any exposed to the internet or reachable from untrusted networks.
Environments that cannot be upgraded promptly should restrict access with strong authentication, network segmentation, and, where possible, web application firewall rules to block known exploit patterns.
Security teams should hunt for signs of compromise, including suspicious curl bash executions referencing vsccode-modetx, presence of ~/.kagent directories, unusual systemd user services, and outbound NKN-related traffic from developer workstations.
More broadly, organizations need stronger controls around AI/ML infrastructure and should not treat domains like Hugging Face, GitHub, or PyPI as inherently safe, instead applying content inspection and allow‑listing to downloads that originate from these platforms.
Indicators of Compromise
| Indicator | Type | Context |
| https://vsccode-modetx.hf.space/ | Payload host | HuggingFace Space (typosquats “VS Code”) |
| https://vsccode-modetx.hf.space/install-linux.sh | Dropper URL | Shell script with 3-method download fallback |
| https://vsccode-modetx.hf.space/kagent | Binary URL | UPX-packed NKAbuse variant |
| bskke4.dnslog.cn | DNS oracle | OOB RCE confirmation (used by 203.10.98.186) |
Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.
.webp?w=356&resize=356,220&ssl=1)




