crypto-validate-lib@1.0.0
Malicious code in crypto-validate-lib (npm)
Analysis
crypto-validate-lib@1.0.0 is a trojanized cryptocurrency address validator. The package exports a legitimate-looking address validation function, but on require() it waits 37 seconds then decodes a base64-encoded infostealer from test/fixtures/keypairs.dat, writes it to ~/.cache-db/.node-sync/syncd.js, and spawns it as a detached background process. The payload installs persistence via crontab (Linux), a launchd plist at ~/Library/LaunchAgents/com.apple.sync.plist (macOS), or a scheduled task named WinNodeSync (Windows). It hunts for Solana and Ethereum wallet files, seed phrases, SSH private keys, .env files, and any file containing crypto-related keywords (seed, mnemonic, recovery, wallet, private, backup, secret, keystore). Found credentials are RSA-OAEP-encrypted with a hardcoded public key and exfiltrated to api[.]pinata[.]cloud via POST /pinning/pinJSONToIPFS. The payload also checks IPFS gateways (gateway[.]pinata[.]cloud, ipfs[.]io, cloudflare-ipfs[.]com) for active dead-drop C2 commands before running, and only executes when the system is idle.
- analyzed by
- Leitwacht
- first seen
- Jul 14, 2026, 08:29 AM
- analyzed
- Jul 14, 2026, 08:30 AM
Related advisories
- layer2-sdk@1.0.1
- arb-kit@1.0.1
- eth-dev@1.0.2
- abi-encode@1.0.0
- chunk-parser@1.0.0
- free-anthropic-claude@5.3.0
- sort-btree@2.1.4
- npm-scanner@1.0.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.