Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@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 { UserAgent } = userAgent(agent)
{
"browser": { "name": "Chrome", "version": "119.0.0.0" },
"device": { "type": "desktop","os": "Windows 10.0","platform": "Microsoft Windows"},
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"
}
MIT
FAQs
A user agent request is a string of text that identifies the client software requesting online content.
The npm package @eternaljs/user-agent receives a total of 10 weekly downloads. As such, @eternaljs/user-agent popularity was classified as not popular.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.