Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Package inspired on https://github.com/lukeed/tsm with extra features and support for watch mode and with extra fixes to follow the new TypeScript 4.5 extensions .mts
=>ESM
and .cts
=>CommonJS
.
pnpm add -D bob-tsm esbuild
yarn add -D bob-tsm esbuild
npm install -D bob-tsm esbuild
All the arguments that are not part of bob-tsm
are passed directly to the node
executable.
Usage: bob-tsm [options] [node arguments...]
Options:
-V, --version output the version number
--tsmconfig <config> Configuration file path (default: "tsm.js")
--watch <patterns...> Enable & specify watch mode
--ignore <patterns...> Ignore watch patterns
--node-env,--node_env <NODE_ENV> Automatically add the specified option as NODE_ENV environment variable, "prod" is an alias
for "production" and "dev" is an alias for "development" (choices: "production", "prod",
"development", "dev", "test")
-q, --quiet
--cjs Use CommonJS instead of ESM for ".ts" files. You still can use ".mts" to force ESM in
specific typescript files.
--paths Use tsconfig paths resolver. It only works as a fallback of the default path resolving and
you can use the environment variable TS_NODE_PROJECT to customize the tsconfig.json to use.
-h, --help display help for command
FAQs
[![npm](https://img.shields.io/npm/v/bob-tsm)](https://npm.im/bob-tsm)
We found that bob-tsm 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’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.