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.
@eternaljs/user-agent
Advanced tools
A user agent request is a string of text that identifies the client software requesting online content.
A user agent request is a string of text that identifies the client software requesting online content. It's contained in the HTTP headers and is sent to the web server when connecting to a website.
Using npm:
$ npm install @eternaljs/user-agent
Using yarn:
$ yarn add @eternaljs/user-agent
These examples assume you're in node, or something similar:
// JavaScript
const { userAgent } = require("@eternaljs/user-agent");
// TypeScript
import { userAgent } from "@eternaljs/user-agent";
const agent = userAgent('Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36')
{
browser: 'Chrome',
version: '130.0.0.0',
os: 'Windows 10.0',
platform: 'Microsoft Windows',
source: 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36',
type: 'web'
}
MIT
FAQs
A user agent request is a string of text that identifies the client software requesting online content.
We found that @eternaljs/user-agent demonstrated a healthy version release cadence and project activity because the last version was released less than 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.