Three npm Packages Deliver NastyC2, a Rust Post-Exploitation C2
TL;DR
- Three npm packages (node-ci-utils@2.1.4, win-env-setup@3.0.6, macos-ci-utils@1.0.0) delivered NastyC2, a Rust-based post-exploitation framework with over 80 commands.
- NastyC2 implements Kerberoasting, DCSync, container escape, cloud metadata theft, and AMSI/ETW patching, placing it in the same tier as Cobalt Strike or Sliver.
- Panther uncovered the packages; the report names no affected organizations, victim counts, or attributed threat actor group.
Developer environments are a popular target precisely because they are trusted by default. The three npm packages identified in this week's ThreatsDay Bulletin, node-ci-utils@2.1.4, win-env-setup@3.0.6, and macos-ci-utils@1.0.0, mimicked the kind of utility package any CI/CD pipeline might pull in without a second look.
What they actually delivered was NastyC2, a post-exploitation framework written entirely in Rust that runs across Linux, Windows, and macOS. Panther, which uncovered the threat, reports it implements over 80 commands: credential harvesting, Active Directory attacks, container escape, cloud metadata theft, fileless execution, process injection, Kerberoasting, DCSync, AMSI/ETW patching, and SOCKS5 pivoting. The reporting places it in the same capability tier as Cobalt Strike or Sliver, frameworks that well-resourced threat actors have historically repurposed for malicious campaigns.
The CI/CD angle is what separates this from the usual malware headline. A package installed during a build pipeline runs with whatever permissions the build agent holds, and build agents commonly hold cloud credentials, repository secrets, and access to production infrastructure. Container escape capability in a CI runner is a different risk category than the same capability on an end-user laptop. Cloud metadata theft in that context can turn a single poisoned dependency into a foothold across an entire organization's cloud environment.
What the reporting does not give you is download counts, victim numbers, or any detail on whether the packages have been removed from the npm registry. Attribution is also absent: no threat actor group is named, and no infrastructure overlap with known campaigns is mentioned. Take the scope of any damage as genuinely unknown for now.
The clearest immediate action is to audit dependency manifests for these three package names and their specific versions. The broader implication is familiar. Automated package installation without lockfile pinning or signature verification is a standing invitation for this class of attack, and organizations that have delayed tightening CI/CD dependency review now have a concrete, named example to put in front of engineering leadership.
Originally reported by thehackernews.com
Read the original article →Original headline: NastyC2 npm Supply-Chain: Three Malicious Developer Packages Deliver Rust-Based Post-Exploitation Framework With 80+ Commands Comparable to Cobalt Strike