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.
zappem.net/pub/debug/vars
When running applications it helps, for debugging purposes, to support counting events in a standardized way. There are some elaborate packages out there for doing this, but this package is a bare bones version that I have found useful.
To set things up, you request some new metrics:
m := vars.New()
Then you can add to counters like this:
m.Add("my-counter", 2)
or simply set a metric:
m.Set("a-record", "green")
You can obtain the current value of a metric with:
value := m.Get("my-counter")
which simply returns nil
if the requested metric does not exist.
The vars
package is distributed with the same BSD 3-clause license
as that used by golang itself.
The vars
package was developed purely out of self-interest to help
debug other programs and packages. Should you find a bug or want to
suggest a feature addition, please use the bug
tracker.
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.