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/jonasdoesthings/plavatar
A stateless microservice that returns placeholder avatars (=plavatars).
baseurl:port/laughing/<size>/<name>
baseurl:port/smiley/<size>/<name>
baseurl:port/happy/<size>/<name>
baseurl:port/gradient/<size>/<name>
baseurl:port/pixel/<size>/<name>
baseurl:port/marble/<size>/<name>
baseurl:port/solid/<size>/<name>
Without name:
baseurl:port/laughing/<size>
and so onsize
the image's size in pixels. has to be min 16, max 1024name
optional, the random number generator seed to use. given the same name the same picture will be returnedBy the default the program looks for a config file at <running_folder>/config/plavatar.json
. If you want to use an
alternative location you can override this behaviour using the argument --config <path_to_config>
. If there's neither
a config in the config/
folder, nor you supply a path with --config
the default configuration will be used.
{
"dimensions": {
"min": 128,
"max": 512
},
"webserver": {
"gzip": false,
"http": {
"enabled": true,
"host": "0.0.0.0",
"port": 7331
},
"https": {
"enabled": false,
"host": "0.0.0.0",
"port": 7332,
"cert": "testing.crt",
"key": "testing.key"
}
},
"caching": {
"enabled": true,
"ttl": "8h"
},
"metrics": {
"enabled": false,
"auth": {
"enabled": true,
"username": "",
"password": ""
}
}
}
To generate a self-signed certificate for testing purposes you can
use openssl req -newkey rsa:4096 -x509 -sha256 -days 3650 -nodes -out testing.crt -keyout testing.key
For benchmarking, you can use the provided k6 script under scripts/k6_plavatar_benchmark.js
.
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.