TL;DR: Hundreds of malicious packages across npm, PyPI, VS Code, and OpenVSX were identified in May, with attackers increasingly impersonating AI tooling, abusing CI/CD, and targeting developer trust to steal credentials and persist in pipelines, according to Xygeni’s Malicious Code Digest. The pattern matters because supply chain controls now have to account for AI-assisted workflows, not just typosquatting and postinstall abuse.
NHIMG editorial — based on content published by Xygeni: May Malicious Code Digest on malicious packages and AI-native supply chain threats
By the numbers:
- When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes and as quickly as 9 minutes in some cases.
Questions worth separating out
Q: What breaks when malicious packages reach build pipelines unchecked?
A: Unchecked packages can execute before conventional controls inspect them, which means secrets, environment variables, and internal tokens can be exposed during install or runtime.
Q: Why do package supply chain attacks create NHI risk?
A: Because the attacker usually wants the non-human credentials behind the build and release process, not just the infected package.
Q: How do security teams know whether package installation risk is under control?
A: Look for three signals: scripts are blocked or tightly governed during install, runner memory and local secrets are minimized, and package provenance is checked before deployment.
Practitioner guidance
- Harden package provenance review Block or quarantine packages that use typosquatting, namespace impersonation, version inflation, or install-time execution until provenance is verified through policy and allowlists.
- Separate developer and build identities Issue distinct short-lived credentials for source control, cloud, and CI/CD tasks so a single stolen token cannot traverse the whole delivery pipeline.
- Monitor for staged loaders and sandbox checks Flag packages that fingerprint hosts, delay payloads, or change behaviour after environment validation, since those are common indicators of malicious staging.
What's in the full report
Xygeni's full Malicious Code Digest covers the operational detail this post intentionally leaves for the source:
- Per-package findings across the month, including the malicious npm, PyPI, VS Code, and OpenVSX entries that informed the digest.
- Campaign-level breakdowns of how impersonation, staged loaders, and environment fingerprinting were used in specific cases.
- The research team's validation notes and threat classification details for each malicious package family.
- The operational detection context behind Xygeni's prioritisation of exploitability, reachability, and impact.
👉 Read Xygeni's May Malicious Code Digest on malicious packages and AI-native supply chain threats →
AI-native supply chain malware: what does it mean for DevSecOps teams?
Explore further
AI-native supply chain malware is now an identity problem as much as an application security problem. Once a package executes inside a developer or build environment, the attacker is no longer just abusing code trust. They are probing the identities that power the workflow, especially tokens, service credentials, and cloud metadata. That intersection means IAM, PAM, and NHI governance have to be part of AppSec operating models, not an after-the-fact containment layer.
A question worth separating out:
Q: Should organisations treat AI-themed developer tooling differently from other dependencies?
A: Yes, but not because the label is inherently risky. AI-themed tooling attracts impersonation, shortcut adoption, and broad permissions in the same workflows attackers want to abuse. Organisations should apply stricter provenance checks, secret isolation, and runtime restrictions to any package that can influence code generation, builds, or deployment identities.
👉 Read our full editorial: AI-native supply chain malware is reshaping developer trust assumptions