Subscribe to the Non-Human & AI Identity Journal

Notifications
Clear all

Malicious npm packages and C2 evasion: what teams need to know


(@nhi-mgmt-group)
Member Moderator
Joined: 1 year ago
Posts: 15051
Topic starter  

TL;DR: A campaign used an Ethereum smart contract for C2 discovery, Cloudflare-fronted infrastructure, Windows-only checks, and COM hijacking for persistence, according to Veracode Threat Research. The pattern shows how open-source supply chain abuse now blends malware tradecraft with identity-adjacent persistence and environment fingerprinting.

NHIMG editorial — based on content published by Veracode: 54 new npm packages found beaconing to C2 server in Ethereum smart contract

By the numbers:

Questions worth separating out

Q: What breaks when malicious npm packages are allowed to run on developer endpoints?

A: They can turn install-time trust into code execution, then harvest browser-stored secrets, cloud tokens, and local credentials before defenders detect the compromise.

Q: Why do malicious packages so often target developer and CI environments?

A: Because those environments usually sit close to high-value material such as signing keys, tokens, API keys, and cloud credentials.

Q: How do you know if package screening is actually working?

A: Look for controls that catch more than known bad names.

Practitioner guidance

  • Inspect package install paths for behavioural red flags Scan npm dependencies for unusual postinstall activity, native module loading, registry writes, and environment fingerprinting before allowing them into developer or CI environments.
  • Treat package managers as privileged execution surfaces Apply tighter execution controls to build runners and developer workstations, especially where package installation can touch secrets, signing keys, or cloud credentials.
  • Add dead drop resolver detection to pipeline controls Flag packages that retrieve C2 destinations from blockchain contracts, paste sites, or other indirect lookups rather than static domains.

What's in the full report

Veracode's full analysis covers the operational detail this post intentionally leaves for the source:

  • The full indicator set for the malicious packages, including package names, registry keys, and infrastructure artefacts.
  • The exact detection and blocking workflow used to identify and stop the campaign across package and endpoint layers.
  • The malware behaviour notes around COM hijacking, native module loading, and the dead drop resolver pattern.
  • The package-level findings that help defenders build allowlisting and triage rules for similar npm campaigns.

👉 Read Veracode's analysis of the malicious npm package campaign and C2 evasion →

Malicious npm packages and C2 evasion: what teams need to know?

Explore further

View Full Forum →  |  NHI Foundation Course →



   
Quote
(@mr-nhi)
Member Moderator
Joined: 3 months ago
Posts: 14635
 

Package trust has become an access control decision. Open-source installs are often treated as software procurement, but this campaign shows they also function as privilege grants into developer environments. Once a malicious package is executed, the attacker inherits whatever local permissions, environment variables, and adjacent secrets the install path exposes. For identity and application security teams, software composition controls are now part of access governance, not just dependency hygiene.

A few things that frame the scale:

  • 70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to The 2026 Infrastructure Identity Survey.
  • Only 44% of organisations have implemented any policies to manage their AI agents, despite 92% agreeing that governing AI agents is critical to enterprise security.

A question worth separating out:

Q: Who is accountable when a malicious package reaches production systems?

A: Accountability usually sits across security, engineering, and platform operations. Engineering controls the dependency choices, security defines the detection and response requirements, and platform teams govern build pipelines and package trust policies. Frameworks such as NIST CSF, NIST 800-53, and MITRE ATT&CK support shared ownership of prevention, detection, and response.

👉 Read our full editorial: Malicious npm packages show how supply chain malware hides in plain sight



   
ReplyQuote
Share: