Contact Us
Skip to main content
HIGH RISK

TrapDoor Supply-Chain Attack Targets Crypto Developers Across Npm, PyPI, Crates.io

36 malicious packages across npm, PyPI, and Crates.io steal crypto wallet seeds, SSH keys, and AWS credentials from Solana, Sui, and Aptos developers.

Our Analysis

On May 22, 2026, security researchers at Socket identified a coordinated supply-chain campaign dubbed "TrapDoor" that planted 36 malicious packages spanning 384+ versions across three major package registries: npm, PyPI, and Crates.io. The attack specifically targets developers working on Solana, Sui, Aptos, and broader DeFi projects. While financial losses have not yet been quantified, the campaign's blast radius is significant, with malware designed to harvest crypto wallet seed phrases, SSH keys, AWS credentials, GitHub tokens, and browser extension data. The attack operates through registry-specific mechanisms. On npm, 21 packages — including names like wallet-security-checker, crypto-credential-scanner, and solidity-deploy-guard — deploy a shared 1,149-line payload called trap-core.js via postinstall hooks. All were published by the account "asdxzxc." On PyPI, seven packages auto-execute on import and download remote JavaScript payloads from the attacker-controlled GitHub Pages domain ddjidd564.github.io, published by accounts "asdmini67" and "dae5411." On Crates.io, six packages targeting Sui and Move developers use malicious build.rs scripts that encrypt stolen keystores with the hardcoded XOR key "cargo-build-helper-2026" and exfiltrate data to GitHub Gists. A novel dimension of this campaign is its weaponization of AI coding assistants. The attackers submitted pull requests to popular open-source projects including browser-use/browser-use, langchain-ai/langchain, and langflow-ai/langflow, injecting .cursorrules and CLAUDE.md files containing hidden instructions encoded with zero-width Unicode characters. These invisible directives trick AI tools like Cursor and Claude into executing what appear to be "security scans" that actually exfiltrate sensitive data from the developer's environment. This represents a significant escalation in software supply-chain attack sophistication. The campaign's command-and-control infrastructure centers on the GitHub account "ddjidd564" and its associated GitHub Pages domain. The attacker maintained detailed internal documentation — files named AUDIT-MATRIX.md, BYPASS.md, PAYLOAD.md, and SWARM.md — describing extraction frameworks, persistence methods, and scaling tactics. Persistence is achieved through multiple vectors including Git hooks, shell hooks, systemd services, cron jobs, and SSH-based lateral movement. The malware also validates stolen AWS and GitHub tokens before exfiltration, suggesting the attackers are selectively targeting high-value developer credentials. Developers working in the Solana, Sui, Aptos, and DeFi ecosystems should immediately audit their project dependencies for any of the 34 identified malicious package names. Key npm packages to check for include async-pipeline-builder, chain-key-validator, defi-env-auditor, eth-wallet-sentinel, and wallet-backup-verifier. On PyPI, watch for cryptowallet-safety, defi-risk-scanner, and eth-security-auditor. On Crates.io, the packages move-analyzer-build, sui-framework-helpers, and sui-move-build-helper should be flagged. Socket detected all packages within a median of 5 minutes and 27 seconds post-publication and reported them to the affected registries. Developers should also review any recent pull requests to their repositories for suspicious .cursorrules or CLAUDE.md file additions containing hidden Unicode characters.
RugPull NewsMay 22, 2026

Rug Pull Score

7.8/10
Based on our analysis

🚩 Red Flags Identified

  1. 36 malicious packages published across npm (21), PyPI (7), and Crates.io (6) targeting crypto developers
  2. 384+ package versions deployed in coordinated waves starting May 22, 2026 at 20:20 UTC
  3. Malware exfiltrates wallet seed phrases for Solana, Sui, and Aptos plus SSH keys, AWS credentials, and GitHub tokens
  4. AI coding assistants weaponized via hidden zero-width Unicode characters in .cursorrules and CLAUDE.md files
  5. Attacker infrastructure at ddjidd564.github.io uses GitHub Pages for C2 payload delivery
  6. Crates.io packages encrypt stolen keystores with hardcoded XOR key cargo-build-helper-2026 and exfiltrate to GitHub Gists
Disclaimer: This analysis is for informational purposes only and should not be considered financial advice. Always conduct your own research before making investment decisions.