Join our Newsletter — 33% off our NHI Course

Why do Dependency Confusion campaigns spread across npm and PyPI?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 19717
Topic starter  

TL;DR: A weekly burst of more than 130 malicious packages across npm and PyPI points to campaigns, not one-off uploads, according to Xygeni. Build gates need to weigh publication patterns and namespace trust, not just package contents at review time.

Editorial analysis by NHI Mgmt Group, based on content published by Xygeni: “Xygeni Malicious Code Digest 74”.

Key questions

Q: Why do multi-day package campaigns create more risk than a single malicious release?

A: Because repeated publishing gives attackers more chances to evade review, reappear under nearby versions, and reach different consumers before one package is removed.

Q: How can security teams tell whether a package publication pattern is suspicious?

A: Look for clusters of sequential versions, reused family names, typosquat patterns, or publisher behaviour that does not match normal maintainer activity.

Q: What breaks when dependency confusion is allowed in CI/CD pipelines?

A: Build systems can install malicious public packages instead of trusted internal dependencies, which turns normal package installation into an execution path for secret theft.

Practitioner guidance

  • Harden internal package namespace governance Reserve private names, enforce registry precedence rules, and block public packages from satisfying names that belong to internal scopes or product families.
  • Flag burst publishing as a risk signal Alert on multiple releases from the same package name, maintainer, or closely related family over a short window, especially when the versions are inconsistent or heavily sequential.
  • Require provenance checks before build consumption Gate dependency ingestion on maintainer verification, package lineage, and approved registry source rather than package name alone.

Bottom line: Malicious package abuse is moving beyond isolated typosquats into sustained campaigns that exploit trust in registries, namespaces, and release cadence.

Glossary terms: Dependency Confusion, Typosquat Package, Prompt Flooding, Package provenance

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 1 day ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 6 months ago
Posts: 20207
 

Package publishing is now an identity problem, not just a malware problem: the trust decision is increasingly about who published a package, under what namespace, and with what release behaviour. That means software supply chain controls have to evaluate publisher identity and package provenance alongside static scanning. Practitioners should treat registry identity as part of access governance.

A question worth separating out:

Q: Should teams treat package provenance as part of identity governance?

A: Yes. In modern software supply chains, the publisher, namespace, and registry path are trust attributes that determine whether code should be admitted into a build. Identity governance is not limited to human users and service accounts; it also applies to the identities that publish and distribute code artifacts.

👉 Read our full editorial: Malicious package campaigns are becoming multi-day, multi-registry attacks



   
ReplyQuote
Share:

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.