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.
This gem aims to provide an interface to query HAProxy for statistics, and eventually management through the sockets API.
HAProxy is the Reliable, High Performance TCP/HTTP Load Balancer.
#! /usr/bin/env ruby
require 'haproxy'
require 'pp'
haproxy = HAProxy.read_stats '/path/to/haproxy.stats.socket'
pp haproxy.info
# {:name=>"HAProxy",
# :version=>"1.3.22",
# :release_date=>"2009/10/14",
# :nbproc=>"1",
# :process_num=>"1",
# :pid=>"10222",
# :uptime=>"0d 0h33m12s",
# :uptime_sec=>"1992",
# :memmax_mb=>"0",
# :ulimit_n=>"4013",
# :maxsock=>"4013",
# :maxconn=>"2000",
# :maxpipes=>"0",
# :currconns=>"1",
# :pipesused=>"0",
# :pipesfree=>"0",
# :tasks=>"1",
# :run_queue=>"1",
# :node=>"roke",
# :"description:"=>nil}
pp haproxy.stats
# [{:pxname=>"app1",
# :svname=>"thin1",
# :qcur=>"0",
# :qmax=>"0",
# :scur=>"0",
# :smax=>"0",
# :slim=>"",
# :stot=>"0",
# :bin=>"0",
# :bout=>"0",
# :dreq=>"",
# :dresp=>"0",
# :ereq=>"",
# :econ=>"0",
# :eresp=>"0",
# :wretr=>"0",
# :wredis=>"0",
# :status=>"no check",
# :weight=>"1",
# :act=>"1",
# :bck=>"0",
# :chkfail=>"",
# :chkdown=>"",
# :lastchg=>"",
# :downtime=>"",
# :qlimit=>"",
# :pid=>"1",
# :iid=>"1",
# :sid=>"1",
# :throttle=>"",
# :lbtot=>"0",
# :tracked=>"",
# :type=>"2",
# :rate=>"0",
# :rate_lim=>"",
# :rate_max=>"0"},...]
global
stats socket haproxy
defaults
mode http
option httplog
option httpclose
retries 3
option redispatch
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
stats uri /haproxy
listen app1 0.0.0.0:10000
balance roundrobin
server thin1 127.0.0.1:10001
server thin1 127.0.0.1:10002
server thin1 127.0.0.1:10003
server thin1 127.0.0.1:10004
server thin1 127.0.0.1:10005
frontend app2
bind 0.0.0.0:10011
default_backend app2
backend app2
balance roundrobin
server thin1 127.0.0.1:10006
server thin1 127.0.0.1:10007
server thin1 127.0.0.1:10008
server thin1 127.0.0.1:10009
server thin1 127.0.0.1:10010
FAQs
Unknown package
We found that haproxy 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.