
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.
This repository provides library to sign any arbitrary message with an Bullish R1 key and produce an Bullish signature
This repository provides an example of signing any arbitrary message with an R1 key and produce an Bullish compatible signature
const getSignature = require('js-signer').getSignature
import { getSignature } from 'js-signer'
// import public private keys
// for demo: keys are hardcoded here
const privateKeyString = 'PVT_R1_ENSnpAGb4NHNA2chipxHQMVnAZdEAfRzHmJFEuxFkWvCXC5CG'
const publicKeyString = 'PUB_R1_8CHJquaQWe4Pkhp1fBR9deP5wkqfjuWdfhaKYDxGKCo7gQwU9C'
// create a function to generate singature for payload
// this functions internally calls getSignature from library
const signMessage = async message => {
// create singature from payload by using getSignature from library
const signature = await getSignature(message, publicKeyString, privateKeyString)
// use the signature to add in the header of the API communication
return signature
}
async function useSignature() {
console.time('Signature generate in: ')
// retrieve signature for the message
const signature = await signMessage({ message: 'A very secret message' })
// for demo: print the signature
console.log(signature)
console.timeEnd('Signature generate in: ')
}
useSignature()
FAQs
This repository provides library to sign any arbitrary message with an Bullish R1 key and produce an Bullish signature
We found that js-signer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.