TL;DR: TrapDoor is a multi-registry supply chain malware campaign spanning npm, PyPI, and Crates.io that targets developer workstations, CI runners, and AI coding environments for wallets, SSH keys, cloud credentials, and tokens, according to Corgea. The attack shows that package trust now extends beyond install scripts into import-time, build-time, and AI-agent surfaces, which makes secret governance and lifecycle controls the decisive defence.
NHIMG editorial — based on content published by Corgea: TrapDoor supply chain malware across npm, PyPI, and Crates.io
By the numbers:
- 64% of valid secrets leaked in 2022 are still valid and exploitable today, proving that detection alone is not enough without automated revocation.
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 developer workstations increase supply-chain risk so quickly?
A: Developer workstations concentrate source code, cloud credentials, CI/CD secrets, SSH keys, and repository permissions in one place.
Q: How do security teams know if a package compromise is actually contained?
A: They should confirm three things: the bad version no longer appears in lockfiles, SBOM records no longer resolve to it, and running services no longer load it.
Practitioner guidance
- Map developer secrets as NHI assets Inventory SSH keys, GitHub tokens, cloud keys, package registry credentials, and wallet material on developer laptops and CI runners.
- Block and hunt on package execution behaviour Detect install-time scripts, Python import loaders, and Cargo build.rs execution in dependency review, then flag packages that fetch remote JavaScript or create new persistence files.
- Review AI assistant context as sensitive input Treat .cursorrules, CLAUDE.md, Git hooks, shell profiles, and local agent instructions as governed files.
What's in the full analysis
Corgea's full report covers the operational detail this post intentionally leaves for the source:
- Package-by-package indicators for the 34 malicious names across npm, PyPI, and Crates.io
- Registry-specific execution behaviour, including install-time, import-time, and build-time triggers
- Filesystem and network indicators such as trap-core.js, ddjidd564.github.io, and suspicious AI context files
- Recommended response steps for rebuild, revocation, and hunting across developer estates
👉 Read Corgea's analysis of the TrapDoor supply chain malware campaign →
TrapDoor supply chain malware: what identity and secrets teams need?
Explore further
Secret governance has become supply chain defence. TrapDoor shows that package malware is now optimised for identity material, not just code execution. When malicious packages hunt for SSH keys, cloud tokens, wallet data, and registry credentials, the control problem shifts from malware detection to secret lifecycle management. Practitioners should treat developer credentials as high-risk NHI assets that require the same lifecycle rigor as production service accounts.
A few things that frame the scale:
- 28.65 million new hardcoded secrets were detected in public GitHub commits in 2025 alone, a 34% year-over-year increase and the largest single-year jump ever recorded.
- Also from our research: 64% of valid secrets leaked in 2022 are still valid and exploitable today, which means leaked developer credentials remain a live attack path long after discovery.
A question worth separating out:
Q: Who is accountable when a malicious dependency reaches a developer workstation?
A: Accountability usually spans application security, endpoint security, and the software delivery team because the failure sits at the intersection of dependency governance and runtime control. Frameworks like NIST SP 800-53 Rev 5 Security and Privacy Controls support shared responsibility across access, monitoring, and configuration management rather than leaving the issue to one team.
👉 Read our full editorial: TrapDoor supply chain malware expands secret theft across registries