
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
crypto_address_detector
Advanced tools
A lightweight cryptocurrency detector library
This module uses node.js, and can be installed through npm or yarn:
NPM:
npm install --save crypto_address_detector
Yarn:
yarn add crypto_address_detector
import CryptoDetector from 'crypto_address_detector'
let addr = 'bc1q7cyrfmck2ffu2ud3rn5l5a8yv6f0chkp0zpemf'
let res = CryptoDetect.detect(addr)
console.log(addr, 'result = ', res)
// bc1q7cyrfmck2ffu2ud3rn5l5a8yv6f0chkp0zpemf result = [ 'btc' ]
// An invalid address...should return null
addr = 'c1q7cyrfmck2ffu2ud3rn5l5a8yv6f0chkp0zpemf'
res = CryptoDetect.detect(addr)
console.log(addr, 'result = ', res)
// c1q7cyrfmck2ffu2ud3rn5l5a8yv6f0chkp0zpemf result = null
addr = '3PHictxPg9gCLbSuwnvDhPtm9xkAM32Xs4'
res = CryptoDetect.detect(addr)
console.log(addr, 'result = ', res)
// 3PHictxPg9gCLbSuwnvDhPtm9xkAM32Xs4 result = [ 'btc' ]
// an invalid etherum like address
addr = '0x3PHictxPg9gCLbSuwnvDhPtm9xkAM32Xs4'
res = CryptoDetect.detect(addr)
console.log(addr, 'result = ', res)
// 0x3PHictxPg9gCLbSuwnvDhPtm9xkAM32Xs4 result = null
// a valid ethereum compatible address
addr = '0xea674fdde714fd979de3edf0f56aa9716b898ec8'
res = CryptoDetect.detect(addr)
console.log(addr, 'result = ', res)
// 0xea674fdde714fd979de3edf0f56aa9716b898ec8 result = [ 'eth', 'bsc/bnb', 'polygon', 'avalanche/c' ]
FAQs
Detect and determine cryptocurrency by address.
We found that crypto_address_detector 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.