![Malicious npm Package Typosquats react-login-page to Deploy Keylogger](https://cdn.sanity.io/images/cgdhsj6q/production/007b21d9cf9e03ae0bb3f577d1bd59b9d715645a-1024x1024.webp?w=400&fit=max&auto=format)
Research
Security News
Malicious npm Package Typosquats react-login-page to Deploy Keylogger
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
@resoc/create-img
Advanced tools
Readme
Use this package to turn a template and parameter values to an image.
Install:
npm install @resoc/create-img
Then, create an image:
createImage(
'path/to/resoc.manifest.json',
{
title: "A picture is worth a thousand words",
textColor: "#ffffff"
},
{
width: 1200,
height: 630
},
'path/to/output.jpg'
);
Puppeteer is used under the hood to generate images. You need to configure it depending on your environment.
In most environments, Puppeteer can be used directly. All you need is to install it:
npm install puppeteer
Resoc will just find it and use it.
Due to tight memory constraints, certain environments cannot use Puppeteer as is.
Install:
npm install puppeteer-core chrome-aws-lambda
Then, instanciate the browser yourself:
const chromium = require('chrome-aws-lambda');
const browser = await chromium.puppeteer.launch({
executablePath: await chromium.executablePath,
args: chromium.args,
headless: chromium.headless
});
createImage(
'path/to/resoc.manifest.json',
{
title: "A picture is worth a thousand words",
textColor: "#ffffff"
},
{ width: 1200, height: 630 },
'path/to/output.jpg',
{ browser }
);
FAQs
Unknown package
We found that @resoc/create-img 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
Socket researchers unpack a typosquatting package with malicious code that logs keystrokes and exfiltrates sensitive data to a remote server.
Security News
The JavaScript community has launched the e18e initiative to improve ecosystem performance by cleaning up dependency trees, speeding up critical parts of the ecosystem, and documenting lighter alternatives to established tools.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.