TrapDoor Attack Targets Dev Wallets Across npm, PyPI and Crates.io
Back to feed

TrapDoor Attack Targets Dev Wallets Across npm, PyPI and Crates.io

By our Crypto News Room Editorial Desk3 min read

A new crypto-theft campaign is going after the developers most likely to have wallet keys, cloud credentials and production access sitting on their machines. Researchers at security firm Socket said earlier this week they identified a supply-chain attack called TrapDoor spread across three major open-source programming registries, with more than 34 malicious packages and hundreds of related versions and artifacts. A key takeaway: attackers are getting more selective. Beyond social engineering targeting individuals with key information, these supply-chain attacks aren't built to catch random retail users. They're aimed at developers—the exact people who might have wallet files, SSH keys, GitHub tokens, cloud credentials and production access all on the same machine they use to build crypto and AI tools. Socket did not identify victims or stolen funds, but said the packages were live across npm, PyPI and Crates.io and contained payloads that could steal wallet data, exfiltrate credentials, test AWS and GitHub tokens and leave behind files to keep access active.

The packages, written in JavaScript, Python and Rust, were disguised as developer helpers, security scanners, wallet tools, Solidity utilities, AI prompt packages and Sui or Move build helpers. The names were deliberately boring: "wallet-security-checker," "defi-risk-scanner," "solidity-build-guard," "move-compiler-tools" and "llm-context-compressor" looked like the kind of small utilities a crypto or AI developer might install without much thought. Once installed, however, the payloads tried to pull far more than package data.

In the npm packages, the malware searched a developer's machine for private keys, passwords, GitHub tokens and cloud logins. It tested some stolen credentials, tried to move into other systems through SSH keys and left behind files to keep the infection active. SSH keys are login files developers use to access servers, code repositories and other machines. If stolen, they can let an attacker pivot from one compromised laptop into a company's wider infrastructure.

The attack also used files like .cursorrules and claude.md, which let developers give project-specific instructions to AI coding tools. Socket said the campaign planted hidden instructions using zero-width Unicode characters, apparently trying to make future AI assistant sessions run fake "security scans" that collected and exfiltrated secrets. That turned the attack from a standard package stealer into something closer to developer-environment malware. The package install is only the first step, with the real target being the workstation: wallets, repos, browser data, cloud keys, SSH access and whatever AI coding tools read next.

The Rust packages used malicious build.rs scripts to run during compilation, targeting sui and move developers. PyPI packages executed remote JavaScript on import. Packages on npm used postinstall hooks. Socket said it reported the packages to affected registries and classified the campaign as malicious. The company also warned that the attacker opened pull requests to AI and developer projects, trying to add .cursorrules and CLAUDE.md files through normal open-source contribution paths.

Share:
Keep Reading

Related Articles

View all
Publishercryptonewsroom.xyz
Published

Disclaimer: This content is for information and entertainment purposes only. It does not constitute financial, investment, legal, or tax advice. Always do your own research and consult with qualified professionals before making any financial decisions.

See our Terms of Service, Privacy Policy, and Editorial Policy.