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.
ghkv
is a gem (and corresponding CLI tool) to allow for quick and dirty
persistence when you really can't be bothered spining up a Redis instance.
require 'ghkv'
# token will be read from ENV['GHKV_TOKEN'] if not passed in
kv = Ghkv::Ghkv.new repo: 'consumer-data/github_build_notifier', token: '<some hex>'
kv['key'] = { "some" => "hash" }
kv['key'] # => { "some" => "hash" }
kv.keys # => ["some"]
# kv.delete 'key'
kv.save
If your repo is hosted on GitHub enterprise, you can pass in an api_url
parameter (e.g. https://git.example.com/api/v3
) or put it in
ENV['GHKV_API_URL']
.
Tip: Put the following in your ~/.bash_profile
for quicker usage:
# ~/.bash_profile
export GHKV_TOKEN=somehexvalue
$ ghkv
Usage:
ghkv [OPTIONS] SUBCOMMAND [ARG] ...
Parameters:
SUBCOMMAND subcommand
[ARG] ... subcommand arguments
Subcommands:
get Get value from KV and print to stdout
set Pass in value to store in KV by parameter or from stdin
list List all keys in KV, one per line
delete Delete key from KV
Options:
--repo REPO Qualified (user/repo) repo name
--token TOKEN GitHub API token (default: $GHKV_TOKEN)
--api API Base URL for enterprise GitHub (default: $GHKV_API_URL)
-h, --help print help
FAQs
Unknown package
We found that ghkv 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.