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.
github.com/xie-hui/crypto-visualizer-api
The backend API Gateway (reverse proxy) for Cypto-Visualizer
All AJAX requests toward https://crypto-visualizer-api.herokuapp.com/ will forward to https://min-api.cryptocompare.com/data/ with api_key
set.
example:
request to https://crypto-visualizer-api.herokuapp.com/price?fsym=BTC&tsyms=USD,JPY,EUR
will equal to https://min-api.cryptocompare.com/data/price?fsym=BTC&tsyms=USD,JPY,EUR?api_key=XXXXXXXXXXXXXXXXX
The data is fetched from cyptocompare api and reverse-proxy as API gateway.
You should create your own .env
in the root folder. example:
PROXY_URL=https://min-api.cryptocompare.com/data/
PORT=8000
SUFFIX=api_key=XXXXXXXXXXXXXXXXXXXX
after that, run source .env
to load the variable into environment
This api service uses Heroku for deployment. some tools and command used:
heroku login
heroku create [yourAppName]
git push heroku master
Procfile
(with no extension) is required for heroku to know how to start the app. Here, web: [yourRepositoryName]
will tell heroku that is app will be an http app.FAQs
Unknown package
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.