ConicPlex

Start Your Project

An open red cardboard box with faint smoke rising from it sits beside a laptop showing red terminal text, symbolizing a hidden malicious payload inside trojanized npm packages

On this Page

14 Trojanized npm Packages Are Smuggling an AI-Powered Linux Backdoor

Sajil Memon

August 23, 2026

Trend Micro’s TrendAI research team disclosed on August 20, 2026 that 14 npm packages published under names like streak-metrics-math and kit-map-vim were trojanized to drop a Linux backdoor called RedC2 4.0 the moment they’re imported, no install script or postinstall hook required. The packages posed as small date and streak-tracking utilities, worked exactly as advertised, and quietly launched a bundled binary in the background on any machine that pulled them in, even as a transitive dependency.

npm has since pulled all 14 packages. Checking the registry directly, each one now resolves to a single 0.0.1-security placeholder version, which is npm’s standard marker for a confirmed malicious takedown.

How the Backdoor Hid Inside a Math Library

According to TrendAI’s writeup, each package shipped legitimate date-math code sitting right next to a hidden Linux ELF binary with a name like math-core.bin or calc-mapping.bin, framed as a native performance accelerator. On import, the loader checks the filesystem for the binary, marks it executable with fs.chmodSync, verifies its integrity against a SHA-256 hash, and spawns it as a detached background process. No preinstall or postinstall entry appears in package.json, which is exactly what most dependency-scanning tools flag first, so this attack skipped the trip wire entirely.

What RedC2 4.0 Actually Does

RedC2 is a commercial command-and-control framework that’s been sold on hacking forums since June 2026, built for Windows, macOS, and Linux. TrendAI’s report describes version 4.0’s Linux implant as giving an operator interactive shell access, file operations, credential harvesting, persistence, and network pivoting, plus an AI component called Red Agent that turns plain-language instructions into beacon command sequences. TrendAI published two indicators worth checking against your own logs: a command-and-control IP at 217.60.77.63, and a SHA-256 hash of 4537b1189ce419f1a595cf47216c03f80e9170ce80dad8d9227a1e52f9cb3466.

What Node.js Teams Should Do This Week

  • Grep package-lock.json or yarn.lock across every repo for the 14 package names TrendAI listed, including as transitive dependencies, not just direct ones.
  • Search build and production servers for the binary filenames TrendAI documented (variants of math-core.bin, calc-cache.bin, calc-mapping.bin) and for outbound connections to 217.60.77.63.
  • If a match turns up anywhere, treat that machine’s credentials, API keys, and SSH access as compromised and rotate them, not just remove the package.
  • Pin dependency versions and review anything pulled in as a low-download, single-maintainer utility package before it lands in a lockfile.

This is the kind of exposure that’s easy to miss on a site that was built once and hasn’t had its dependency tree looked at since. If you inherited a Node.js backend from a previous developer or agency, it’s worth having someone audit the full dependency graph as part of any web application development work, not just the code you wrote yourselves. It’s a similar lesson to what we covered when a WordPress plugin vendor’s supply chain got compromised back in mid-August: the risk isn’t always in your own code, it’s in what your code pulls in.

Sources

Sajil Memon is a co-founder of ConicPlex and a Senior Full Stack Developer focused on backend work: Node.js, PHP, APIs, and the infrastructure decisions that determine whether a system holds up under real traffic. He’s spent years on the side of a project that doesn’t get demoed, the part that has to keep working after launch. He writes here about the technical tradeoffs in backend architecture, deployment, and data handling that only become obvious once something breaks in production.

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep reading

Plugins

Illustration of a gift box unlocking above a rising row of purple cart-value steps, representing a free gift reward unlocked at a WooCommerce cart spending threshold

How to Add a Free Gift When Customers Spend Over a Set Amount in WooCommerce (3 Plugins Compared)

WooCommerce has no native way to reward big carts with a free gift. Three plugins add it: GIFTiT for tiered…

Husen Memon

October 17, 2026

News & Updates

Laptop glowing with an abstract geometric pattern on a dark desk beside scattered photographs, symbolizing a Next.js image-processing security flaw

Next.js Ships an Emergency Security Update for Two Critical RCE Flaws

Next.js patched two critical remote code execution flaws and a denial-of-service bug on October 14, 2026. Here is what is…

Sajil Memon

October 17, 2026

Plugins

Flat illustration of a diagonal timeline with milestone node markers, representing WordPress timeline block plugins

3 Timeline Block Plugins Built for the WordPress Block Editor

Three real timeline block plugins for the WordPress block editor compared: Cool Timeline, Timeline Block by bPlugins, and Advanced Timeline…

Husen Memon

October 16, 2026

WhatsApp
Husen Memon
Husen Memon
Typically replies instant