OpenSSF Malicious Packages is a community-maintained dataset and analysis effort focused on identifying software packages that appear to be malicious. It is used to help security teams and package ecosystem defenders recognise supply chain threats such as typosquatting, credential theft, and packages that execute harmful code during installation.
What the dataset captures and why it matters
OpenSSF Malicious Packages is not a vulnerability scanner or a single vendor feed, but a curated effort to identify packages that behave maliciously in ecosystems such as PyPI and npm. Its value is in helping defenders distinguish ordinary maintenance issues from packages that are intentionally designed to steal secrets, run harmful installation logic, or support a wider supply chain attack.
That distinction matters because malicious packages often look legitimate at first glance. The package name, metadata, or download pattern may appear normal while the real risk sits in installation-time behaviour, dependency confusion, or hidden payload delivery.
How malicious package activity shows up
Malicious packages commonly abuse trust in package registries and developer workflows. They may use typosquatting, impersonate popular libraries, or arrive through dependency confusion, then execute code during install or postinstall stages. In practice, that can turn a routine dependency update into a code execution event inside developer machines, build systems, or CI pipelines.
For defenders, the important signal is not just that a package exists, but that it exhibits a malicious pattern. That may include credential harvesting, environment-variable theft, webhooks that exfiltrate tokens, or scripts that stage second-stage payloads after installation.
Malicious Package and Dependency Confusion Guide explains the package abuse patterns that often sit behind these findings, including typosquats, install scripts and provenance controls.
How teams check exposure and contain it
Exposure checks start with asset and dependency inventory: which lockfiles, build images, developer workstations, and CI runners ever resolved the package, and whether any transitive dependency pulled it in. Teams also need to check registry history, install logs, and whether the package was ever fetched in an internet-connected environment that could have executed its payload.
Containment is usually broader than deleting the package from a manifest. If a malicious package may have executed, organisations should assume secrets, tokens, and sessions used on the affected machines may be exposed and treat the environment as potentially compromised.
Open source package compromise gives the consumer-side response sequence for confirming exposure, isolating systems and revoking credentials after a poisoned dependency event.
Detection, review and long-term controls
Detection depends on more than static package reputation. Security teams should look for unusual install-time network traffic, new process creation during package installation, unexpected writes to developer home directories, and outbound calls that coincide with package fetches. After removal or blocking, a post-incident review should check whether any tokens, SSH keys, API keys, or signing material were present on affected hosts and whether those secrets were reused elsewhere.
Longer term, malicious package defence is strongest when organisations combine registry intelligence with safe consumption controls. Pinning dependencies, reviewing publish provenance, reducing script execution, and tightening build permissions all make it harder for a malicious package to move from discovery to execution.
OSV and Open Source Vulnerability Databases is useful when teams need to pair malware records with vulnerability data and scanner workflows without treating every package alert as a conventional CVE finding.
OpenSSF provides the wider open source security ecosystem context that this dataset sits within, including guidance and projects aimed at improving package trust and supply chain resilience.
Risk and Threat Considerations
Malicious packages create a direct supply chain risk because the attack surface sits inside the software acquisition process itself. A compromised package can execute before traditional application controls are in place, which means the attacker may gain access to developer credentials, CI secrets, signing tokens or other sensitive material early in the software lifecycle.
Failure mechanism: The package is trusted at install time, but its scripts, dependency chain or payload behaviour abuse that trust to exfiltrate secrets, alter builds or establish persistence in developer and automation environments.
Impact: The result can be credential theft, poisoned builds, downstream compromise of released software, and wider exposure across repositories, build systems and internal services.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 and MITRE ATT&CK address the attack and risk surface, while SLSA, OWASP ASVS and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| SLSA | Supply chain levels for software artifacts | Malicious packages threaten artifact provenance and build integrity. |
| Recommendation — Strengthen build provenance so untrusted packages cannot silently enter release pipelines. | ||
| OWASP ASVS | V13 — Configuration | Package abuse often exploits insecure application and build configuration. |
| Recommendation — Harden build and dependency configuration to block unsafe package execution paths. | ||
| OWASP Non-Human Identity Top 10 | NHI-02 — Secret Leakage | Malicious packages often steal credentials, tokens and keys from developer or CI environments. |
| Recommendation — Rotate exposed secrets and reduce the blast radius of package-triggered credential theft. | ||
| CIS Controls v8 | CIS-5 — Account Management | Compromised packages can expose accounts, tokens and other access material that must be governed. |
| Recommendation — Review and revoke affected accounts and credentials after a malicious package event. | ||
| MITRE ATT&CK | T1195 — Supply Chain Compromise | The term directly describes malicious software distributed through trusted package supply chains. |
| Recommendation — Map package compromise indicators to T1195 and hunt for compromised dependency activity. | ||
Practitioner Guidance
Why practitioners should care: A malicious package finding is actionable only when it is tied to real exposure in your environment. The operational question is not whether the package is known to be bad in general, but whether it was resolved, installed, or executed in your fleet.
Practitioner note: Treat package intelligence, dependency inventory and secret hygiene as one workflow. If a malicious package may have run, review the package path, the machines that touched it, and the credentials that were present at the time.
Related resources from NHI Mgmt Group
- Guide: Open Source Security Guide
- What breaks when malicious npm packages execute during CI/CD installs?
- Why do malicious npm packages create more risk than ordinary code defects?
- How can teams reduce the impact of exposed secrets and malicious packages?
- Who is accountable when a stolen maintainer account pushes malicious packages?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org