TL;DR: More than 645 malicious packages were reported across npm, PyPI, and the VSCode marketplace in Xygeni’s June malicious code digest, with a marked shift toward AI tooling, agentic development workflows, and dependency confusion campaigns aimed at developer credentials and build environments. The pattern shows that package abuse is now reaching the same identity and trust boundaries that govern non-human access, making software supply chain controls an identity problem as much as a malware problem.
NHIMG editorial — based on content published by Xygeni: the June malicious code digest covering AI tooling and supply chain attacks
By the numbers:
- Xygeni’s security research team confirmed more than 645 malicious packages across npm, PyPI, and the VSCode extension marketplace in June.
Questions worth separating out
Q: How should security teams respond when malicious packages appear in npm or PyPI?
A: They should block unknown packages from automatic installation, verify maintainer provenance, and treat sudden version bursts as a compromise indicator.
Q: Why do AI tooling packages create higher supply chain risk than ordinary libraries?
A: AI tooling packages often sit closer to prompts, secrets, code, and runtime automation than standard libraries do.
Q: What breaks when dependency confusion is not controlled in monorepos?
A: Build systems can resolve a public package instead of an internal one when names are ambiguous or source selection is weak.
Practitioner guidance
- Enforce publisher verification on package intake Block or flag packages that do not match approved publishers, especially for AI tooling, utility packages, and namespace lookalikes.
- Inventory secrets reachable from developer tooling Map which CI tokens, cloud credentials, and vault paths are accessible from build agents, IDE extensions, and AI helper packages.
- Tighten internal namespace governance Reserve internal package names, monitor for public collisions, and require explicit source pinning for monorepo dependencies.
What's in the full report
Xygeni's full malicious code digest covers the operational detail this post intentionally leaves for the source:
- Per-campaign package lists and ecosystem breakdowns across npm, PyPI, and VSCode.
- Version-by-version evidence showing how republishing is used to stay ahead of takedowns.
- Package names and namespace patterns that help build allowlists and detection rules.
- The vendor's complete research context for AI tooling, dependency confusion, and developer environment targeting.
👉 Read Xygeni's June malicious code digest on AI tooling and supply chain attacks →
AI tooling supply chain attacks in agentic workflows: what changes now?
Explore further
AI supply chain security has become an identity governance problem, not just a malware problem. The article shows that malicious packages are after tokens, secrets, and delegated runtime trust, which means the control failure sits at the boundary between software distribution and access governance. NHI programmes that do not govern CI/CD credentials, workload identities, and developer tokens will keep treating the symptom instead of the trust path. Practitioners should align supply-chain controls with identity lifecycle and secrets governance.
A question worth separating out:
Q: Which controls matter most when protecting CI/CD credentials?
A: The most effective controls are least privilege by pipeline stage, pre-commit and CI scanning, immutable pinning of third-party actions, and short-lived credentials issued at runtime. Together they reduce exposure, limit lateral use, and make stolen pipeline secrets far less useful.
👉 Read our full editorial: AI tooling supply chain attacks are moving into agentic workflows