![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.
@tramvai/tools-migrate
Advanced tools
Readme
Tool for executing code migrations for the tramvai modules.
How does it work:
__migrations__
contains migrations files for the executionpackage.json
, tramvai.json
and project source code.tramvai-migrate-applied.json
to the project rootTo disable migration add environment variable SKIP_TRAMVAI_MIGRATIONS
.
You can add new migration with command yarn generate:migration
. You will need to specify package name for the migration and the migration name itself.
Also add to this package's package.json
folder with the built migrations to the field files
if it wasn't specified before:
"files": [
"lib",
"__migrations__"
],
Migration is a function that accepts special api using which it implements changes to the source code or configs.
export interface Api {
packageJSON: PackageJSON; // object represented root package.json
tramvaiJSON: TramvaiJSON; // object represented tramvai.json
transform: (transformer: Transform, pathTransformer?: PathTransformer) => Promise<void>; // function that accepts transform function for `jscodeshift` and transform function for the file renames
}
Code transformations is done with jscodeshift
Rules:
null | undefined
or original source from the transform function in cases when migration doesn't change source code. Otherwise it will lead to unnecessary fs writing.j(source)
to make searches and transformsFAQs
Unknown package
We found that @tramvai/tools-migrate demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers 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.