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.
Antena is an API to uniformely perform (a)synchronous http requests and websocket connections.
antena = require("antena/node")(host, secure)
host :: string | number
Example of valid host:
"localhost:8080"
"localhost"
Use default http ports (443 if secure is truthy else 80)."8080
Same as "localhost:8080"
8080
Same as "localhost:8080"
/tmp/unix-domain-socket.sock
Unix domain socket can only be used if secure is falsy.secure :: boolean
antena = require("antena/browser")(host, secure)
host :: string | undefined
"localhost:8080"
"localhost"
Use default http ports (443 if secure is truthy else 80).undefined
Same as providing the page's host (window.location.host
)secure :: boolean
Note that is the page is served accross https
, this parameter will be overwritten to true
;antena.request(method, path, headers, body, callback)
method :: string
path :: string
headers :: object
body :: string
callback(error, {status, message, headers, body})
error :: Error
status :: number
message :: string
headers :: object
body :: string
[status, message, headers2, body2] = antena.request(method, path, headers1, body1)
method :: string
path :: string
hearders1 :: object
body1 :: string
status :: number
message :: string
headers2 :: object
body2 :: string
websocket = antena.connect(path)
path :: string
websocket :: browser.WebSocket || ws.WebSocket
Browser style listeners: onopen
, onmessage
, onerror
and onclose
are isomorphic.antena2 = antena1.fork(prefix)
prefix :: string
FAQs
Simple messaging protocol for node's net socket
The npm package antena receives a total of 2 weekly downloads. As such, antena popularity was classified as not popular.
We found that antena 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.