Threat Intelligence | TrapDoor Analysis: An Ecosystem-Wide Supply Chain Credential Theft Campaign

On May 24, 2026, the Socket.dev security research team disclosed a cross-ecosystem supply-chain poisoning campaign—dubbed “TrapDoor”—spanning npm, PyPI, and Crates.io. This campaign involved over 34 malicious packages, with a total of 384 versions published, targeting developers in cryptocurrency, DeFi, Solana, AI, and security domains.

Attackers leveraged each ecosystem’s native execution mechanisms—npm’s postinstall hooks, PyPI’s import entry points, and Crates.io’s build.rs compilation scripts—to automatically trigger malicious logic during package installation or compilation. This allowed them to steal high-value data including SSH keys, blockchain wallet configurations, cloud credentials, and browser login sessions. MistEye, SlowMist’s Web3 threat intelligence and dynamic security monitoring system, detected the malicious package publishing activities across all three ecosystems during ongoing threat hunting across open-source package repositories.

To deeply understand the attackers’ cross-ecosystem techniques, we selected one representative malicious package from each ecosystem among the 34 TrapDoor packages disclosed by Socket.dev’s security team for in-depth analysis:
git-config-sync on PyPI (masquerading as a Git configuration synchronization tool),
sui-framework-helpers on Crates.io (masquerading as an Sui Move development helper library), and
token-usage-tracker on npm (masquerading as a token usage tracking tool).

Notably, the Python and npm samples exhibit clear code-level linkage: both share the same remote configuration domain—ddjidd564.github.io. Additionally, the npm sample uses the unified attack identifier P-2024-001 and exhibits inter-package invocation with another malicious package in the same campaign, dev-env-bootstrapper. While the Rust sample targets overlapping developer communities (Sui/Solana developers) with the npm sample, it contains neither the shared domain nor the attack identifier in its source code. Its attribution to the TrapDoor campaign stems solely from external attribution by Socket.dev; this report does not independently verify that attribution at the code level.

MistEye is a Web3 threat intelligence and dynamic security monitoring system independently developed by SlowMist. It integrates real-time security monitoring and threat intelligence aggregation capabilities to deliver timely risk alerts and asset protection for users. During this TrapDoor campaign, MistEye fully tagged all malicious packages identified across PyPI, npm, and Crates.io. Building upon this coverage, we conducted deep-dive analyses on three representative samples—git-config-sync (PyPI), token-usage-tracker (npm), and sui-framework-helpers (Crates.io)—and fully reconstructed the full attack chain for each.

The core design philosophy behind the TrapDoor campaign is “write once, deploy across ecosystems.” Rather than writing malicious logic separately for each package ecosystem, attackers built a unified data collection and exfiltration framework—and then used each ecosystem’s native execution hooks to inject malicious behavior early in the package installation or compilation process. At the infrastructure layer, however, the degree of sharing across the three attack paths shows clear stratification.

A notable aspect of infrastructure selection is the attackers’ deliberate use of legitimate services commonly whitelisted in development environments as exfiltration channels. GitHub Pages (github.io) and GitHub Raw (raw.githubusercontent.com) are widely trusted resource hosting platforms relied upon daily by developers; api.github.com is a critical interface for CI/CD systems and development tools; and webhook.site is a broadly adopted webhook debugging service. These domains are rarely blocked by enterprise network policies, endpoint security software, or firewall rules—allowing malicious traffic to blend seamlessly into normal development communications and bypass outbound restrictions.

All three attack paths follow identical logic across the three core phases—“trigger → collect → exfiltrate”—but diverge significantly in propagation and persistence capability:
– The Python and Rust samples function strictly as one-time stealers—their malicious activity terminates upon process exit or completion of compilation.
– Only the npm sample includes complete propagation and persistence modules, achieving secondary diffusion across projects, repositories, and even hosts by modifying .cursorrules, CLAUDE.md, Git hooks, and shell RC files.

[SlowMist]

RichSilo Exclusive Analysis:

TrapDoor Supply Chain Attack: Implications for Crypto Security and Market Confidence

The recently disclosed TrapDoor supply chain attack represents a sophisticated, multi-ecosystem campaign that specifically targets crypto developers with significant implications for blockchain security infrastructure. This attack isn’t merely a technical vulnerability—it’s a direct assault on the foundation of crypto development ecosystems, with potentially far-reaching consequences for project security, developer trust, and market valuations.

Attack Analysis: A Multi-Vector Threat to Crypto Development

The TrapDoor campaign demonstrates an alarming level of coordination across npm, PyPI, and Crates.io—three critical package ecosystems for blockchain development. By leveraging native execution mechanisms like npm’s postinstall hooks, PyPI’s import entry points, and Crates.io’s build.rs compilation scripts, attackers achieved automatic execution of malicious code during routine developer workflows. This “write once, deploy across ecosystems” approach maximizes impact while minimizing detection.

🚀 Bybit Limited Time: The World's #1 Crypto Platform! Sign up to claim up to 30,000 USDT in rewards, and automatically activate a lifetime 20% Fee Discount!
Join Bybit Now

What sets this attack apart is its surgical targeting of crypto developers. The token-usage-tracker npm package and sui-framework-helpers Rust package specifically target communities working with Solana and Sui—high-value blockchain ecosystems where compromised credentials could lead to significant fund theft or repository takeovers. The attackers’ focus on stealing SSH keys, wallet configurations, and cloud credentials reveals a clear intent to compromise development infrastructure, not just individual machines.

Market Impact: Security Breaches as Catalysts for Volatility

For crypto investors, this attack introduces a new vector of risk that extends beyond traditional market factors. The immediate impact will likely manifest in several ways:

  1. Short-term price pressure on projects whose development teams were compromised. While few projects will acknowledge breaches directly, the market will eventually price in security concerns.

  2. Increased scrutiny of developer dependencies across the ecosystem. Projects with complex dependency trees or frequent updates to packages may face heightened skepticism from investors.

  3. Divergent performance between security-focused projects and those with lax development practices. We expect to see outperformance from teams that can demonstrate robust security protocols.

The most significant market impact may be on the burgeoning “security-as-a-service” sector. Projects like SlowMist, which detected and analyzed this campaign, are positioned as beneficiaries of growing awareness around developer security threats. Their unique ability to monitor and respond to sophisticated attacks creates a competitive moat that should translate into sustained investor interest.

Strategic Implications: Redefining Project Risk Assessment

Experienced investors must now incorporate supply chain security into their due diligence framework. This attack reveals several critical factors that should influence investment decisions:

  1. Developer security posture is becoming as important as code audits. Projects that fail to implement package signing, dependency scanning, and isolated development environments are now clearly at elevated risk.

  2. Infrastructure monocultures present systemic risks. The concentration of crypto development within these three package ecosystems creates a single point of failure that attackers have clearly exploited.

  3. Team security awareness is a differentiating factor. Development teams that demonstrate proactive security practices are likely better positioned to defend against increasingly sophisticated attacks.

We particularly caution against investments in projects that rely on community-maintained packages without proper security vetting. The npm ecosystem, with its 384 malicious versions in this campaign alone, presents particular risks for projects with rapid iteration cycles and frequent dependency updates.

Opportunities in the Wake of Security Threats

While this attack presents significant risks, it also creates compelling opportunities for investors who can identify security innovators:

  1. Supply chain security solutions that can detect and prevent malicious package insertion across multiple ecosystems will see increased demand. Projects offering multi-ecosystem monitoring capabilities are particularly well-positioned.

  2. Developer security tooling that integrates directly into development workflows—such as automated dependency scanning and code signing solutions—will benefit from heightened awareness.

  3. Alternative package ecosystems with stronger security models and verification processes may emerge as viable alternatives to the current landscape, creating investment opportunities in infrastructure projects.

The most promising opportunities lie in projects that can transform security from a cost center into a competitive advantage. As this attack demonstrates, the cost of inadequate security now extends far beyond individual breaches—it threatens the very foundation of crypto development.

Conclusion: Security as a Market Differentiator

The TrapDoor campaign signals a new era in crypto security threats, where sophisticated supply chain attacks specifically target developer infrastructure. For investors, this creates both risks and opportunities. Projects that prioritize developer security, implement robust supply chain protections, and demonstrate transparent security practices will likely outperform those that treat security as an afterthought.

In the coming months, we expect to see increased market differentiation based on security posture. The ability to defend against sophisticated multi-vector attacks like TrapDoor will become a key competitive advantage for blockchain projects, with direct implications for valuation and investor confidence. Security-focused investors who can identify and support projects with robust developer security practices will be well-positioned to capitalize on this emerging trend.

The crypto market has long been criticized for its security vulnerabilities, but sophisticated attacks like TrapDoor are forcing the industry to mature. Those projects that embrace this security-first approach will not only better protect their users but also gain a sustainable competitive edge in an increasingly crowded market.

🚀 Bybit Limited Time: The World's #1 Crypto Platform! Sign up to claim up to 30,000 USDT in rewards, and automatically activate a lifetime 20% Fee Discount!
Join Bybit Now