
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
crypto-wallets-fork-1
Advanced tools
Javascript/Node library for generating cryptocurrency addresses and private keys.
Install crypto-wallets with npm install --save crypto-wallets
var cw = require('crypto-wallets');
var bitcoinWallet = cw.generateWallet('BTC');
console.log("Address: " + bitcoinWallet.address);
console.log("Private Key: " + bitcoinWallet.privateKey);
var cw = require('crypto-wallets');
var ethWallet = cw.generateWallet('ETH');
console.log("Address: " + ethWallet.address);
console.log("Private Key: " + ethWallet.privateKey);
Note: Generating Monero (XMR) and IOTA (IOTA) wallets are both asynchronous and return a promise, unlike the other currencies.
var cw = require('crypto-wallets');
cw.generateWallet('XMR').then(function(moneroWallet){
console.log("Address: " + moneroWallet.address);
console.log("Private Key: " + moneroWallet.privateKey);
});
crypto-wallets can also be used in the command line.
generate <currency> [number] [--save <file>]
Generates and prints wallets in given currency. If [number] is not given, it defaults to 1. If the optional --save flag is provided, the generated wallets will be saved to the specified file in CSV format.
>crypto-wallets generate btc
[ { currency: 'BTC',
privateKey: 'L3Qa2u7nkHaNYZdsQYi2gVmBEtpppk4JrvQqaSYx51HWG51uwaTa',
address: '1HMt2J3dQE428krHQEmFRFNDv2DyGAaMfb' } ]
>crypto-wallets generate doge 3
[ { currency: 'DOGE',
privateKey: 'QWgiPqSPNXTtTt32hffy8C1uvHT4BJcbo78TSJcEmvf6AyhE85L3',
address: 'DJnvD1NxRjgmXKGbCR98QEneFYcGGmnquc' },
{ currency: 'DOGE',
privateKey: 'QPfrc7ahUuXqqd8oeETGh4ZzCrS1wNhognEx4N5my6MK3e6qQh1o',
address: 'DN6uQWUNDfzjsXdaTtMhxwRK4hZ4RJJ357' },
{ currency: 'DOGE',
privateKey: 'QTgfpCVt8CW1bgw9PdfmsSNY1FKodM65bLYYkQeaoqm1CkNgD3MK',
address: 'DC7xVTob9XE6Soy6TjeWySinS3hG4cjR3F' } ]
>crypto-wallets generate xmr 100 --save xmrWallets.csv
Successfully saved to file: xmrWallets.csv
verify <currency> <privateKey> <address>
Checks if the given private key controls the given address.
>crypto-wallets verify doge QWgiPqSPNXTtTt32hffy8C1uvHT4BJcbo78TSJcEmvf6AyhE85L3 DJnvD1NxRjgmXKGbCR98QEneFYcGGmnquc
Success: The private key matches the address
>crypto-wallets verify btc foo bar
Failure: The private key does not match the address
This library uses other third party libraries to generate the cryptocurrency addresses. So this library is secure if you trust the other libraries.
The libraries used are:
FAQs
Simple cryptocurrency wallet generator for javascript
The npm package crypto-wallets-fork-1 receives a total of 6 weekly downloads. As such, crypto-wallets-fork-1 popularity was classified as not popular.
We found that crypto-wallets-fork-1 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.