Malicious code in tokocrytodev (npm)
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (88f51898e05da09842f561ce72f06378a6718f778fa0335b68bb4c0fda8cc5a6) On module load, tokocrytodev instantiates a StealthC2 agent and starts a polling loop that fetches commands from https://badai.run.place/cekapppiapi.php?uid=<host-id>, passes each response body to child_process.exec, and POSTs AES-256-ECB-encrypted stdout/stderr back to https://badai.run.place/fallback.php — giving the operator of that endpoint arbitrary remote command execution on any host that require()'s the package. In parallel, stealKeysAsync shells out `find` over /root/.ssh, /home/*/.ssh, /opt/wallet-keys, /etc/ssl/private, ~/.ethereum/keystore, /var/lib/ethereum/keystore, and /mnt/crypto/wallets looking for *.pem, *.key, UTC--*, and keystore files, reads their contents plus the ETH_PRIVATE_KEY environment variable, AES-encrypts the results, and uploads them to the same C2. For any 64-hex string recovered from those files, drainEthFromPrivateKey imports it into web3, computes balance minus gas, and sends the remaining ETH balance in a signed transaction to the hardcoded address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e. Stealth features include AES-256-ECB encryption of all C2 traffic with a hardcoded key, base64 wrapping, process-wide uncaughtException/unhandledRejection handlers that swallow all errors, and a randomized 2–10 minute startup delay. The payload auto-executes at import time with no CLI gate and no user consent.
AI Analysis
Technical Summary
The 'tokocrytodev' npm package (version 1.0.0) includes embedded malicious functionality that initiates a polling loop to fetch commands from a remote URL. It executes these commands on the host via child_process.exec, enabling arbitrary remote code execution. The package searches for private key files in common SSH, SSL, and Ethereum wallet directories, encrypts the stolen keys using AES-256-ECB with a hardcoded key, and exfiltrates them to the attacker's server. It also attempts to drain Ethereum wallets by creating web3 wallets with stolen keys and sending the entire balance minus gas fees to a specified attacker Ethereum address. Error handling suppresses exceptions to reduce noise and evade detection.
Potential Impact
This malicious package allows an attacker to gain arbitrary remote code execution on any system that installs and runs it. It compromises sensitive private keys related to SSH, SSL, and Ethereum wallets, leading to theft of cryptocurrency funds. The attacker can fully control the infected host and exfiltrate confidential cryptographic material, resulting in severe confidentiality and financial impact.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. The best mitigation is to avoid installing or using the 'tokocrytodev' npm package version 1.0.0. Remove any installations of this package immediately and investigate affected systems for signs of compromise. Monitor for unauthorized Ethereum transactions to the attacker address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e. Since this is a malicious package rather than a vulnerability in legitimate software, remediation involves removal and incident response rather than patching.
Malicious code in tokocrytodev (npm)
Description
--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (88f51898e05da09842f561ce72f06378a6718f778fa0335b68bb4c0fda8cc5a6) On module load, tokocrytodev instantiates a StealthC2 agent and starts a polling loop that fetches commands from https://badai.run.place/cekapppiapi.php?uid=<host-id>, passes each response body to child_process.exec, and POSTs AES-256-ECB-encrypted stdout/stderr back to https://badai.run.place/fallback.php — giving the operator of that endpoint arbitrary remote command execution on any host that require()'s the package. In parallel, stealKeysAsync shells out `find` over /root/.ssh, /home/*/.ssh, /opt/wallet-keys, /etc/ssl/private, ~/.ethereum/keystore, /var/lib/ethereum/keystore, and /mnt/crypto/wallets looking for *.pem, *.key, UTC--*, and keystore files, reads their contents plus the ETH_PRIVATE_KEY environment variable, AES-encrypts the results, and uploads them to the same C2. For any 64-hex string recovered from those files, drainEthFromPrivateKey imports it into web3, computes balance minus gas, and sends the remaining ETH balance in a signed transaction to the hardcoded address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e. Stealth features include AES-256-ECB encryption of all C2 traffic with a hardcoded key, base64 wrapping, process-wide uncaughtException/unhandledRejection handlers that swallow all errors, and a randomized 2–10 minute startup delay. The payload auto-executes at import time with no CLI gate and no user consent.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The 'tokocrytodev' npm package (version 1.0.0) includes embedded malicious functionality that initiates a polling loop to fetch commands from a remote URL. It executes these commands on the host via child_process.exec, enabling arbitrary remote code execution. The package searches for private key files in common SSH, SSL, and Ethereum wallet directories, encrypts the stolen keys using AES-256-ECB with a hardcoded key, and exfiltrates them to the attacker's server. It also attempts to drain Ethereum wallets by creating web3 wallets with stolen keys and sending the entire balance minus gas fees to a specified attacker Ethereum address. Error handling suppresses exceptions to reduce noise and evade detection.
Potential Impact
This malicious package allows an attacker to gain arbitrary remote code execution on any system that installs and runs it. It compromises sensitive private keys related to SSH, SSL, and Ethereum wallets, leading to theft of cryptocurrency funds. The attacker can fully control the infected host and exfiltrate confidential cryptographic material, resulting in severe confidentiality and financial impact.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. The best mitigation is to avoid installing or using the 'tokocrytodev' npm package version 1.0.0. Remove any installations of this package immediately and investigate affected systems for signs of compromise. Monitor for unauthorized Ethereum transactions to the attacker address 0x742d35Cc6634C0532925a3b844Bc454e4438f44e. Since this is a malicious package rather than a vulnerability in legitimate software, remediation involves removal and incident response rather than patching.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-13687
- Osv Schema Version
- 1.7.4
- Ecosystems
- ["npm"]
Threat ID: 6a79f0dcbf8831d539f61b1a
Added to database: 08/10/2026, 15:40:12 UTC
Last enriched: 08/10/2026, 15:59:43 UTC
Last updated: 09/23/2026, 12:32:48 UTC
Views: 61
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.